GNOME Bugzilla – Bug 511581
Retry connecting to DHCP server in future if unable to get IP address
Last modified: 2011-07-19 19:13:51 UTC
When unable to get an IP address from the DHCP server, keep contacting the DHCP server at some interval to try and acquire an IP in the future instead of giving up. Note: Filed RFE per Dan Williams recommendation on networkmanager mailing list.
*** Bug 575482 has been marked as a duplicate of this bug. ***
We might want to broadent this [enh] to include static IP connections as well. Two behaviors here: 1) Should clear wired connections from the invalid list if the carrier drops 2) if the carrier hasn't dropped, should periodically retry DHCP connections with a suitable backoff interval
*** Bug 595066 has been marked as a duplicate of this bug. ***
*** Bug 595361 has been marked as a duplicate of this bug. ***
*** Bug 602734 has been marked as a duplicate of this bug. ***
Yes, an important detail here is not to just ignore carrier/link status and just implement a backoff-and-retry, but to also work intelligently with somebody plugging in the ethernet cable, if the hardware and driver support it. When I plug in a cable, I should (more or less) immediately get an address, not have to sit waiting for the backoff/timeout to expire.
a similar approach is needed for 3g+ connections, where the problem is somewhat deeper. often the modems/sticks can't find the carrier fast enough and modemmanager gives up and nm marks the connection as invalid. after some (upto 15 or so in my case) retries nm finally connects. i have something like a "keep trying" checkbox as logical child of the "connect automatically" checkbox in mind. under the hood nm should keep trying to connect as long as a matching device is present (with backing off as described above). (if someone has an idea for a workaround, id be happy to try it :)
Is someone working on this?
jklimes did a patch to clear the invalid marker on failed connections after a few minutes, which should handle the wired DHCP failure case. Commit fdfbe00aac3f17b19bb8d84cba1c8f210d90e8a0 from Jun 17th.