Contents |
This article will give a brief overview on VLANs and VLAN trunking to be used in pfSense.
There is a lot more detail on VLANs, security issues with VLANs, pfSense VLAN configuration, VLAN switch configuration, and more in pfSense: The Definitive Guide.
VLANs are virtual LAN segments of a managed switch, and when pfSense is plugged into a trunk port it can utilize VLANs to have multiple virtual interfaces, one for each available VLAN. In this manner, you can have pfSense talk to a large number of networks without the need for more physical interfaces.
In pfSense, you must create a new VLAN under Interfaces > (assign), on the VLANs tab. After creating the VLAN interface, it can be assigned just like any other interface.
Switch>enable Switch#vlan database Switch(vlan)#vlan 10
Switch#configure terminal Switch(config)#interface fastEthernet 0/1 Switch(config-if)#switchport mode trunk Switch(config-if)#switchport trunk encapsulation dot1q Switch#show interface fastEthernet 0/1 switchport
See also HOWTO setup vlans with pfSense