2

I installed Gentoo on Virtualbox with the minimal image. This is the first time I am running gentoo. I need to do

ifconfig eth0 192.168.0.10
route add default gw 192.168.0.1

everytime it boots on VM and then I need to start sshd. I've added sshd to startup with rc-update add default sshd But How can I avoid seting the UP manually each time on start up ?

  • How? Maybe this is interesting for someone in the same situation. (You cloud answer yourself :)) – sr_ Feb 9 '12 at 18:03
  • I added its in answer – Neel Basu Feb 10 '12 at 4:18
1

I fixed by doing

cd /etc/init.d/
ln -s net.lo net/eth0
cd /etc/conf.d/
vi /etc/conf.d/net

and write the followings in that file

config_eth0="192.168.0.10 netmask 255.255.255.0 brd 192.168.0.255"
routes_eth0="default via 192.168.0.1"

then add it to startup

rc-update add net.eth0 default

Done

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.