Summary: | eth0 on router VERY slow to come up (1 min) (baselayout ?) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | JoWilly <jowilly> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
JoWilly
2004-03-29 15:23:12 UTC
The net.eth0 script installed by baselayout no longer includes the carrier detection (it was bug 33272, which is still open for some reason, though it no longer applies). Since you say it takes 1 minute, since you're using DHCP, and since 60 seconds is the exact default timeout used for dhcpcd, it sounds very likely that either there is no DHCP server on your network to answer, or the DHCP server isn't responding to you (or perhaps just isn't giving you an IP). Take a look in your error logs - /var/log/syslog particularly - to see if you see dhcpcd error messages such as: dhcpcd[9581]: timed out waiting for a valid DHCP server response Personally I've added a "-t 10" to my dhcpcd_eth1 variable to /etc/conf.d/net on my notebook so that I don't have to wait a full minute when I boot it without a network connection. There seems to be no error in the logs. After 1 minute eth0 comes always up right, only that it takes 1 minute. I have added the "-t 10" option as you suggested and eth0 now comes up very fast. Now I wonder why it is waiting for the full minute if the default timeout is set ? Is there still something wrong with the scripts ? Thanks a lot for your help. default dhcp timeout is 60 seconds Well, as I understand it, a default timeout of 60 seconds means that if nothing happens or it can't get a response, it won't wait longer than 60 seconds, but if it gets a response after 5 seconds it exits the loop and doesn't wait any longer). So, as it seems now, ALL gentoo boxes with the default config have to wait the full 60 seconds at every boot up ? That's rather strange to me... as it was working quite well in earlier versions of baselayout when eth0 was up in 1 or 2 seconds... For this reason, I am reopening the bug. If I am wrong, and *everyone* really *has to* wait 60 seconds at every boot up please mark it resolved-invalid again. Thanks for your time. No, dhcpcd normally gets an address long before the timeout. This works fine for most people so I believe the problem is in your DHCP server. You should try using the -d option to dhcpcd to enable debugging and watch the system log to see what is happening. See dhcpcd(8) If you narrow this down to a proven problem in the Gentoo startup, please feel free to re-open this bug. |