[Bug 242081] dhclient doesn't exit on link down event, and devd is only configured to start dhclient on link up.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 19 13:53:22 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242081

            Bug ID: 242081
           Summary: dhclient doesn't exit on link down event, and devd is
                    only configured to start dhclient on link up.
           Product: Base System
           Version: 11.3-RELEASE
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs at FreeBSD.org
          Reporter: msa at latt.net

dhclient does not exit when interfaces transition down, it merely unconfigures
the last lease on that interface, then sits there.

As devd.conf is only configured to start dhclient on link up events, not
restart dhclient if it's running, this causes hosts to fall off the network
(dhclient is running but does not do anything but poll() -- there may be a bug
in the state machine handling?)

I've been able to work around it for now by adding a devd.conf entry that stops
dhclient on link down events, causing the link up start entry to work properly.

Some options:
1) dhclient is fixed to exit correctly (as documented in the man page.)
   - This might be some sort of state machine handling bug that would be worth
digging into.
2) devd.conf's link up entry is modified to perform a restart, rather than a
start, to allow it to function if dhclient is still running.
3) devd.conf as shipped has a link down entry that stops dhclient.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list