View previous topic :: View next topic |
Author |
Message |
linux_weenie Guru
Joined: 25 Jun 2003 Posts: 365
|
Posted: Sun Jul 20, 2003 5:59 pm Post subject: autostarting dhcp |
|
|
i have recently fixed the new portage bug/error whatever its definition was and let etc-update clobber one too many files. and now my dhcpcd won't autostart on boot. how to add this back to the startup routine. i've tried:
Code: |
rc-update add dhcpcd default
and
rc-update add dhcpc default
|
neither work. this is probably a simple fix but how does one make dhcp automatically start at boot up? thanks for the time.
-Will |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Sun Jul 20, 2003 6:10 pm Post subject: |
|
|
I am not sure what bug you are refering to, but the /etc/init.d/net.ethX scripts call dhcpcd (as definded in /etc/conf.d/net) and configure your NIC. Is net.ethX in your default runlevel? |
|
Back to top |
|
|
linux_weenie Guru
Joined: 25 Jun 2003 Posts: 365
|
Posted: Mon Jul 21, 2003 12:34 am Post subject: |
|
|
yea its already installed under the default runlevel. the rc script brings my ethernet card up just fine, but it won't launch dhcp like it used too. the bug or whatever it was with portage where you get those wierd blocks because they changed the way the they use blocking or something like that is what i was referring to.
-Will |
|
Back to top |
|
|
sproket81 n00b
Joined: 23 May 2003 Posts: 10 Location: Maryland
|
Posted: Mon Jul 21, 2003 1:27 am Post subject: check /etc/conf.d/net |
|
|
If you accidentally let /etc/conf.d/net be clobbered you probably were reverted to the original, static ip that gentoo sets up. Just check that that file has iface_eth0="dhcp" instead of iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" or anything like that. |
|
Back to top |
|
|
Hagbard Celine n00b
Joined: 20 Jul 2003 Posts: 17 Location: Germany
|
Posted: Mon Jul 21, 2003 7:41 am Post subject: |
|
|
linux_weenie wrote: | yea its already installed under the default runlevel. the rc script brings my ethernet card up just fine, but it won't launch dhcp like it used too. |
Maybe your problem is related to the bug mentioned in thread https://forums.gentoo.org/viewtopic.php?t=62024. Still no solution for this but maybe someone else has any ideas on how to fix this.
BTW: IIRC net.ethx stop will not 'down' the interface upon stopping so next time one tries to 'up' it with net.ethx start we'll get the same problem again... the interface is already up and no dhcp will get started. Or is dhcpcd -k ethx enough to 'down' the interface and will it not only stop the dhcpcd?
hc |
|
Back to top |
|
|
linux_weenie Guru
Joined: 25 Jun 2003 Posts: 365
|
Posted: Tue Jul 22, 2003 12:01 am Post subject: |
|
|
sproket81,
that was the problem thanks for you help. i haven't setup it up in so long i'd probably have gone through the whole install manual again . thanks for saving me some time.
-Will |
|
Back to top |
|
|
|