Summary of steps required
pkg install dnsmasqservice resolv disableservice resolv stopservice dnsmasq enableservice dnsmasq start
Assume we have a switchport with an untagged (native) VLAN 10, plus two tagged VLANs 20 & 30 (see attached switch config). The device connected to that switchport has an internal interface eth0. Use this in /etc/rc.conf:
# SYNCDHCP makes the boot process wait for address assignment
ifconfig_eth0="SYNCDHCP"
vlans_eth0="20 30"
| Complex network topology between host and jail with vlan aware bridges and epair trunks. Network set up to ping from one side to the other while traversing the trunk at the host/jail border half a dozen times. tcpdump shows the vlan at the crossings. |