Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
autostarting dhcp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
linux_weenie
Guru
Guru


Joined: 25 Jun 2003
Posts: 365

PostPosted: Sun Jul 20, 2003 5:59 pm    Post subject: autostarting dhcp Reply with quote

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
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Sun Jul 20, 2003 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
linux_weenie
Guru
Guru


Joined: 25 Jun 2003
Posts: 365

PostPosted: Mon Jul 21, 2003 12:34 am    Post subject: Reply with quote

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
View user's profile Send private message
sproket81
n00b
n00b


Joined: 23 May 2003
Posts: 10
Location: Maryland

PostPosted: Mon Jul 21, 2003 1:27 am    Post subject: check /etc/conf.d/net Reply with quote

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
View user's profile Send private message
Hagbard Celine
n00b
n00b


Joined: 20 Jul 2003
Posts: 17
Location: Germany

PostPosted: Mon Jul 21, 2003 7:41 am    Post subject: Reply with quote

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
View user's profile Send private message
linux_weenie
Guru
Guru


Joined: 25 Jun 2003
Posts: 365

PostPosted: Tue Jul 22, 2003 12:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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