[Bug 280913] [patch] Unexpected state of vnet-jails with ifconfig_DEFAULT="DHCP" in rc.conf(5)
Date: Mon, 19 Aug 2024 13:02:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280913
crest@rlwinm.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |crest@rlwinm.de
--- Comment #1 from crest@rlwinm.de ---
As you already identified the problem is that ifconfig_<name>="... DHCP"
doesn't work inside a vnet jail.
The reason for this is that DHCP instead of SYNCDHCP relies on devd to respond
to link up events and which is impossible inside a jail since it would require
opening /dev/devctl inside the jail to get events into the kernel and that
device support only one opening at a time (like tun and tap device).
You have to use SYNCDHCP inside the jail or configure the host's devd to match
on the jail interface name(s) with a higher priority than the default rules to
make async DHCP work and use jexec to run the same script inside the correct
jail with jexec.
--
You are receiving this mail because:
You are the assignee for the bug.