Posts from September 2006.

VLAN Trunking in FreeBSD 6

Configure your switch to trunk (802.1q) desired VLANs on port connected to rl0 on FreeBSD box.

/etc/rc.conf:
ifconfig_rl0=”up”
cloned_interfaces=”vlan5 vlan6″
ifconfig_vlan5=”inet 192.168.5.254 netmask 255.255.255.0 vlan 5 vlandev rl0″
ifconfig_vlan6=”inet 192.168.6.254 netmask 255.255.255.0 vlan 6 vlandev rl0″

vlan5 and vlan6 interfaces will show up:

vlan5: flags=8843 mtu 1500
inet 192.168.5.254 netmask 0xffffff00 broadcast 192.168.5.255
ether 00:11:XX:XX:XX:XX
media: Ethernet autoselect (100baseTX )
status: active
vlan: 5 parent interface: rl0

vlan6: flags=8843 mtu 1500
inet 192.168.6.254 netmask 0xffffff00 broadcast 192.168.6.255
ether 00:11:XX:XX:XX:XX
media: Ethernet autoselect (100baseTX )
status: active
vlan: 6 parent interface: rl0