| Tutorial | : bsd |
| Title | : howto create VLAN on FreeBSD |
| Date | : August 4, 2008 |
| Tutorial bsd |
| howto create VLAN on FreeBSD |
| Kernel Option :
pseudo-device vlan 2 # IEEE 802.1Q VLAN Support or pseudo-device vlan # IEEE 802.1Q VLAN Support The number at the end defines how many VLAN-devices your machine gets. (on old kernels) ifconfig vlan_device create ifconfig vlan_device vlan vlan_id vlandev parent_device ex: ifconfig vlan0 vlan 10 vlandev xl0 ifconfig vlan0 inet 192.168.1.11 netmask 255.255.255.0 ifconfig vlan0 vlan 10 vlandev xl0 == vlan0 - device local on BSD vlan 10 - vlan with color 10 xl0 - NIC connected to the 802.1q-Trunk or add this line to /etc/rc.conf: cloned_interfaces="vlan0" ifconfig_xl0="up" ifconfig_vlan0=" inet 192.168.1.11 netmask 255.255.255.0 vlan 10 vlandev xl0" |
