Bug 260317

Summary: Dual dhclient misbehaves
Product: Ports & Packages Reporter: Ott Köstner <ottkostner>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Works As Intended    
Severity: Affects Many People Keywords: needs-qa
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://forums.freebsd.org/threads/please-help-to-solve-the-random-network-problem.83233/

Description Ott Köstner 2021-12-10 14:27:00 UTC
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.
Comment 1 Ott Köstner 2021-12-10 15:06:22 UTC
Seems that with the latest net/dual-dhclient/ the script is correct.