Hi everyone,
I'm attempting to setup a couple of jails with VLANs not just to continue educating myself on FreeBSD networking, but also to configure some testing infrastructure that'll hopefully help me to debug a problem I'm having with my pfSense CE router and my real VLANs after upgrading the former to 2.8.1.
The host of the jails is a TrueNAS CORE 13.5 server, in which I have a 13.5 VNET jail attached to a bridge which, in turn, connects the former via a vtnet NIC to a bhyve VM where I'm running the testing pfSense CE 2.8.1 instance.
I configure the jail with a
and the DHCP lease comes right in without any issues at jail startup time, with the
What I believe is the sole problem I'm still facing with this configuration for now is that the jail's
Needless to say, I can easily rewrite the
Tips, comments, and even critiques on my setup most welcome, thanks!
I'm attempting to setup a couple of jails with VLANs not just to continue educating myself on FreeBSD networking, but also to configure some testing infrastructure that'll hopefully help me to debug a problem I'm having with my pfSense CE router and my real VLANs after upgrading the former to 2.8.1.
The host of the jails is a TrueNAS CORE 13.5 server, in which I have a 13.5 VNET jail attached to a bridge which, in turn, connects the former via a vtnet NIC to a bhyve VM where I'm running the testing pfSense CE 2.8.1 instance.
I configure the jail with a
10.80.1.2 static IP on its epair0B interface and intentionally with no initial resolver information, and via the bridge I can ping the 10.80.1.1 vtnet-based interface on the testing pfSense router. Further, this testing pfSense router instance has a VLAN interface on top of its vtnet NIC, with VLAN tag 10 and static IP 10.80.10.1, on which it's running a DHCP server, and I'm attempting to acquire a DHCP lease off it from inside the testing jail. For this purpose, I configure a VLAN directly inside the jail as so:
Code:
cloned_interfaces="vlan8010"
ifconfig_vlan8010="vlan 10 vlandev epair0b SYNCDHCP"
and the DHCP lease comes right in without any issues at jail startup time, with the
vlan8010 interface being configured correctly with IP address and netmask, and a route for the 10.80.10.0/24 network even being added to the jail's routing table.What I believe is the sole problem I'm still facing with this configuration for now is that the jail's
/etc/resolv.conf file remains empty after receiving the DHCP lease and, as an obvious result, DNS resolution fails. I have confirmed several times by attaching tcpdump(1) to the bridge on the TrueNAS CORE host that DNS information is indeed being included in the DHCP reply from the target DHCP server, and probably all I'm lacking is some rc and/or dhclient and/or resolvconf configuration to instruct the jail to regenerate its /etc/resolv.conf file upon receiving the new DHCP lease. However, for the life of me, I cannot figure out what that could be.Needless to say, I can easily rewrite the
/etc/resolv.conf file manually with the appropriate information to continue with my testing, but I'd love to learn what's keeping the jail from doing so automatically upon receiving the DHCP lease, if that's at all even possible.Tips, comments, and even critiques on my setup most welcome, thanks!

