| Summary: | net-misc/dhcp-3.1.0: dhclient does not wait for DHCP lease long enough | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Martin Mokrejš <mmokrejs> |
| Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | gentoo.bugs, jer |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Martin Mokrejš
2009-02-06 10:45:16 UTC
The default timeout in version 3.1.1 (current stable) appears to be 60 seconds. Can't you set up an /etc/dhcp/dhclient.conf that sets a higher timeout? Yes, I could raise the 60 sec timeout value, but still, the retry option should kick in after 5 minutes. It does not. It appears to me that the interface is shutdown already by the rc script and nothing is ever retried. At least from the logs. (In reply to comment #2) > Yes, I could raise the 60 sec timeout value, but still, the retry option should > kick in after 5 minutes. It does not. It appears to me that the interface is > shutdown already by the rc script and nothing is ever retried. At least from > the logs. > Basically, dhclient tries to get a lease, if it does not succeed, then it exits, and the init.d script also, leaving the interface in an unconfigured state. Manual intervention (/etc/init.d/net.xxx start) is needed to force the machine into to try to get an address again. This behaviour is unacceptable for any serious server-like machine. Increasing the timeout or the number of retries does not solve the issue, as then the machine will wait in the start script until getting an address. If this never happens, the machine never finishes booting up. For example, we have cable-modem-type Internet connection, where we get the address by DHCP from the ISP. If the service is unavailable for any reason, right when our server boots up, dhclient will never ask again until told so by the administrator. Please retest w/ 3.1.3_p1, and re-open if needed. |