Bug 260317 - Dual dhclient misbehaves
Summary: Dual dhclient misbehaves
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL: https://forums.freebsd.org/threads/pl...
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2021-12-10 14:27 UTC by Ott Köstner
Modified: 2021-12-10 15:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.