In reading the FreeBSD handbook and various blog posts, it would seem there are at least two ways to initialize a VLAN interface via /etc/rc.conf. I'm assuming the "preferred" method is the FreeBSD handbook method, but are there any performance/security/etc. benefits to one method vs. the other?
FreeBSD handbook method:
Alternative method:
One thing that I have noticed is that I am unable to make use of the jng script if I use the handbook method, whereas the jng script works perfectly with the alternative method.
FreeBSD handbook method:
Code:
vlans_igb0="25"
ifconfig_igb0_25="inet 172.16.25.1/24 up"
Alternative method:
Code:
cloned_interfaces="vlan25"
ifconfig_vlan25="inet 172.16.25.1/24 vlandev igb0 vlan 25 up"
One thing that I have noticed is that I am unable to make use of the jng script if I use the handbook method, whereas the jng script works perfectly with the alternative method.