Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
where should i put dhcpcd to get it to run at boot time
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
daddio
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 145
Location: Orem, UT

PostPosted: Fri Nov 07, 2003 8:19 pm    Post subject: where should i put dhcpcd to get it to run at boot time Reply with quote

I did an emerge -e system

Now in order to access the network i have to run dhcpcd as root.

This is kind of a rudimentary question perhaps... but where should I put the reference to
the dhcpcd module so that it just runs every time?

for that matter I am having a hard time understanding the whole init thing. Can someone
point me to good information ?
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Fri Nov 07, 2003 8:24 pm    Post subject: Re: where should i put dhcpcd to get it to run at boot time Reply with quote

daddio wrote:
I did an emerge -e system

Now in order to access the network i have to run dhcpcd as root.

This is kind of a rudimentary question perhaps... but where should I put the reference to
the dhcpcd module so that it just runs every time?

for that matter I am having a hard time understanding the whole init thing. Can someone
point me to good information ?


It's said int the installation manual: http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap21

Inside /etc/conf.d/net you have to tell it that eth0 (if that's your network interface) to use dhcpcd.

Code:
Edit the /etc/conf.d/net script to get your network configured for your first boot.

Code listing 21.2: Boot time Network Configuration
 
# nano -w /etc/conf.d/net

If you want eth0 to automatically receive its IP, set iface_eth0 to dhcp. Otherwise fill in your IP, broadcast address and netmask. If you have several interfaces, do the same for iface_eth1, iface_eth2 etc.

Now add the net.eth0 initscript to the default runlevel if it isn't a PCMCIA network card:

Code listing 21.3: Automatically start the network interfaces during boot
 
# rc-update add net.eth0 default
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum