Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCP and booting problems...
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
Newbie123
n00b
n00b


Joined: 09 Jun 2002
Posts: 43

PostPosted: Wed May 14, 2003 1:08 am    Post subject: DHCP and booting problems... Reply with quote

I just finished installing gentoo. I am connected to the internet via NAT through a DHCP server on my lan.

All of the other clients on the network are windows machines, and selecting 'Select an IP address automatically' correctly configures them for DHCP. Once they boot up, they work fine.

The server is running an older version of linux mandrake 7 or 8 I think.

My computer is running gentoo. The problem is, if I configure it so that it checks DHCP for boot, it always fails after waiting for about 2 or 3 minutes before finishing booting. I have edited net.eth0 such that $iface='dhcp' (don't remember exact syntax) and I have run 'rc-update add net.eth0 default'.

The strange thing is, the following works from the console.

root> dhcpd eth0
*** wait about 30-60 seconds while the program seems to hang, then CTRL-C ***
root> dhcpd eth0
*** It finishes immediately, and my internet connection works ***

If I just run 'dhcpd eth0' once from the console, it will run for 2 or 3 minutes, and then fail, just like bootup - yet the abovemention method works.

This is really frustrating for me, and I have no idea what to do. When I am at college, with a set IP, my internet connection is established by the time I am done booting, but not at home with DHCP.

Does anyone have any suggestions? Do you guys think this might be a server problem, even though none of the windows machines have any problems?

Thanks alot for your help.
Back to top
View user's profile Send private message
error26
n00b
n00b


Joined: 22 Feb 2003
Posts: 65
Location: Vienna

PostPosted: Mon May 19, 2003 6:12 pm    Post subject: Reply with quote

i have this problem too
Back to top
View user's profile Send private message
ARC2300
Apprentice
Apprentice


Joined: 30 Mar 2003
Posts: 265

PostPosted: Mon May 19, 2003 7:06 pm    Post subject: Reply with quote

THis may be pointless, but have you tried to update your DHCP software?? I have no problems whatsoever.

Also, have you tried giving out a fixed address to that machine via DHCP to see if that works??? When you Gentoo is connected, does the connection seem really, really slow???

Or even restarting the DHCP daemon on your Mandrake computer?
Back to top
View user's profile Send private message
DefconAlpha
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 151
Location: Alabama

PostPosted: Mon May 19, 2003 7:09 pm    Post subject: NIC refuse DHCP Reply with quote

I have a similar problem with a few NIC's on my work campus. Something happened to a few machines (read lightning... or "something") and one of them would *not* pull an IP from the router. Pulled the NIC and replaced it with a different one, and presto! works just fine... For shits-and-giggles i put the NIC that wouldn't pull DHCP and put it in a Gentoo backup server i am making (right now actually... damn slow bootstrapping). dhcpcd eth0 would never work; it would just time out after a few minutes. If i statically assigned an IP to the card it worked just fine...

So moral of the story is borrow (or steal, whatever...) another NIC and see if you can pull an IP through DHCP. That would at least narrow it down to drivers (not likely) or hardware (more probable). If that router has a static IP (probably does, since it is the router) you could always use the NIC that won't pull an IP in the router :)
_________________
In the end, the love you get is equal to the love you make
--John Lennon & Paul McCartney (The End - Abbey Road,
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