Bug 263534

Summary: dhclient-script not working right with if_urndis/ue0
Product: Base System Reporter: Michael <michael.hmich>
Component: binAssignee: freebsd-net (Nobody) <net>
Status: Closed FIXED    
Severity: Affects Some People CC: zlei
Priority: --- Keywords: needs-patch, needs-qa
Version: 13.1-STABLE   
Hardware: amd64   
OS: Any   
URL: https://github.com/freebsd/freebsd-src/tree/main/sbin/dhclient

Description Michael 2022-04-24 19:23:48 UTC
until 13-RELEASE a simple line in rc.conf worked perfectly getting ip-address on boot and after disconnect and reconnect the device

ifconfig_ue0="SYNCDHCP"

now on 13.1-Stable I need to issue "sudo /etc/rc.d/dhclient start ue0", or, after fiddling this out, set in rc.conf:

network_interfaces="ue0"
netwait_if="ue0"
ifconfig_ue0="SYNCDHCP"
background_ntpdate="YES"

that is ok even if not written anywhere, or I didn't found it

but still it just assigns IP on boot, disconnecting the device dhclient-script seems to kill itself and does not restart after reconnecting the device, so far I could not find out where the problem is but suspect dhclient-script, until then I need manual execute  

sudo /etc/rc.d/dhclient start ue0

some solution for this?
Comment 1 Michael 2022-04-25 12:06:17 UTC
I added this block to devd.conf

notify 0 {
match "system" "IFNET";
device-name "ue0";
action "service dhclient quietstart $device-name";
};

and it is working now

certainly a workaround for me, but I think that should be in there by default