[Bug 260317] Dual dhclient misbehaves

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 10 Dec 2021 14:27:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260317

            Bug ID: 260317
           Summary: Dual dhclient misbehaves
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://forums.freebsd.org/threads/please-help-to-solv
                    e-the-random-network-problem.83233/
                OS: Any
            Status: New
          Keywords: needs-qa
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ottkostner@gmail.com

When installed the net/dual-dhclient/ randomly looses IPv4 connection.

This ports installs a small script. The port description states that
"This port provides a script which spawns both /sbin/dhclient and
/usr/local/sbin/dhclient -6; this simplifies the configuration needed to
run DHCP on both protocols of a dual-stack network."

By description it should runt the base dhclient for IPv4 and ISC dhclient
(net/isc-dhcp44-client) for IPv6.

In fact the script runs ISC clinet for both IP versions (v4 and v6). The script
is this:

#!/bin/sh

# Public domain

/usr/local/sbin/dhclient "$@"
/usr/local/sbin/dhclient -6 -nw -D LL "$@"


Seems that there is a bug in net/isc-dhcp44-client/ so that after some random
time (probably lease expiration) the IPv4 connection is lost. The IPv6
connection keeps running.

Manually changing the script to run base dhclient for IPv4 fixes the problem.

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