Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCPCD times out waiting for a response.
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
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Sat Oct 05, 2002 10:28 pm    Post subject: DHCPCD times out waiting for a response. Reply with quote

I just installed Gentoo 1.4 rc1 with the 2.5.40 kernel. For some reason whenever it tries to get an address from the DHCP server the connection times out. My first thought was that it had my two NICs mixed up, or that I had the wrong drivers for the one I was tyring to use, but the same thing occurs with both NICs. They'll both work on my LAN with a static IP, but not on the cable modem with DHCP. I also tried recompiling the kernel with a few more options installed, but nothing that I could think has fixed it.

When running under RedHat 8, it works just fine. All I can think of is that it must be a problem with the way DHCP is configured under Gentoo, but I don't know enough about it to just start mucking around. Can anyone help me out?
Back to top
View user's profile Send private message
obsidian
n00b
n00b


Joined: 14 Jul 2002
Posts: 12
Location: Germany

PostPosted: Sun Oct 06, 2002 2:35 pm    Post subject: Kernel 2.5.. Reply with quote

Hi,

could just as well be that your kernel does the broadcasting or whatever different from the way dhcpd expects. The unstable 2.5 series is definitely interesting, but I'd recommend trying 2.4. Maybe that fixes your problem.

Cheers,

Kevin
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Sun Oct 06, 2002 8:15 pm    Post subject: Reply with quote

The problem with using the 2.4 kernel is that, for some reason, I can't get it to compile with USB HID support, and my motherboard is a no-legacy ABIT AT7.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Oct 06, 2002 8:26 pm    Post subject: Reply with quote

How is your /etc/conf.d/net file configured?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Sun Oct 06, 2002 8:34 pm    Post subject: Reply with quote

It's basically just:
Code:
iface_eth0="dhcp"
As far as I know there's no options that need to be passed. When booting off the install cd I just do "dhcpcd eth0" and it works.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Oct 07, 2002 12:01 am    Post subject: Reply with quote

Is dhcpd is running?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Mon Oct 07, 2002 1:45 am    Post subject: Reply with quote

Nope, dhcpd is not running.

I also installed pump, and that doesn't work either. I tried recompiling the kernel again with less extraneous options and made sure that I have everything that I can think of that would possibly be related to making DHCP work, and I'm still having the same problem.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Mon Oct 07, 2002 2:11 am    Post subject: Reply with quote

You can increase timeout with -t option

I had similar problems when using dhcp under WinXP and then booting under Gentoo. RH 7.3 worked well. It uses -d as an option for pump .

nonhuman wrote:
Nope, dhcpd is not running.

I also installed pump, and that doesn't work either. I tried recompiling the kernel again with less extraneous options and made sure that I have everything that I can think of that would possibly be related to making DHCP work, and I'm still having the same problem.
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Mon Oct 07, 2002 2:41 am    Post subject: Reply with quote

I gave dhcpcd a timeout of 120, and now it works! Thanks!

Just to make sure, if I want to have it use a timeout of 120 at startup I add to the /etc/conf.d/net:
Code:
dhcpcd_eth1="-t 120"
right?
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Mon Oct 07, 2002 2:51 am    Post subject: Reply with quote

It seems the DHCP problem was just indicitive of a broader problem. For some reason all networking under Gentoo is incredibly slow. It will sometimes take long enough to resolve a hostname that the connection will time out.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Mon Oct 07, 2002 3:36 am    Post subject: Reply with quote

If you are using eth1, correct.

Take a look at you resolv.conf before and after getting the IP.

Verify also if you don t have resource conflicts (like IRQs).


nonhuman wrote:
I gave dhcpcd a timeout of 120, and now it works! Thanks!

Just to make sure, if I want to have it use a timeout of 120 at startup I add to the /etc/conf.d/net:
Code:
dhcpcd_eth1="-t 120"
right?
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Thu Nov 07, 2002 8:10 am    Post subject: Reply with quote

After a long hiatus in RedHat world, I've finally got the time to work on getting Gentoo up and running again. In my tinkerings tonight I've discovered that for some reason, Gentoo doesn't seem to like eth0 (the integrated NIC on my mobo) at all, while eth1, a tulip family card, works (compared to eth0). I still have the problem that the internet is so slow (nearly 1 min pings on everything) that connections tend to time out before anything can actually happen. I can't really think of what the problem might be, and I'm not really experienced enough with this sort of thing to start trouble shooting on my own. Does anyone have any ideas?

Oh, and I'm now using the 2.5.46 kernel (the 2.4s still won't compile with the options I need).
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Fri Nov 08, 2002 9:46 pm    Post subject: Reply with quote

Has anyone else had this problem? I'm really running out of things to try here.
Back to top
View user's profile Send private message
tomkamphuys
n00b
n00b


Joined: 21 Jun 2002
Posts: 74
Location: The Netherlands, Den Ham (Ov.)

PostPosted: Sun Nov 10, 2002 5:21 pm    Post subject: Reply with quote

I've no idea about the slow connection, but the onboard nic problem sounds familiar. I had to add 'noapic' to the line in menu.lst containing kernel and root.

An other guy mentioned he had to disable USB, because there was something wrong with the irq's
_________________
tap = hijskraan
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