Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 ?

share|improve this question
    
Fixed.......... –  Neel Basu Feb 9 '12 at 17:10
    
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 Answer 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

share|improve this answer
1  
The Handbook is your best friend. –  SleighBoy Feb 10 '12 at 7:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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