This patch is copied from TrueNAS/FreeNAS as it resolves an issue when vlan + bridge + vimage/vnet is involved. Patch originally created by Xin Li for FreeNAS, see: https://bugs.pcbsd.org/issues/3676
Issue:
In a jail environment, with vlan + bridge in use utilizing VIMAGE, tearing down inet interfaces for the jail causes the ethernet mac addresses to switch as reported as follows:
Apr 12 02:54:45 uat kernel: arp: 192.168.6.103 moved from 20:e8:83:05:00:f8 to 02:ff:c0:00:09:0b on epair106b
The patch has been tested by me and it has proven reliable for over 2 weeks, and has been in FreeNAS/TrueNAS/TrueOS for over 2+ years. It's about time to get this into 11-CURRENT for those of us who have jails with vlan tagging using the "new" vimage/vnet framework..
PR: 208910