FreeBSD VLAN configuration
Introduction
This is short text about setting 802.11q VLANs in FreeBSD. It uses new /etc/rc.conf
syntax.
/etc/rc.conf changes
Let’s assume that there are two physical interfaces bce0
and bce1
. First thing - rename them for better readability:
Next - setup outside
interface - one without VLANs:
Now the VLAN part:
This is sometimes required if there is no IP address assigned to untagged interface.
VLANs declarations for inside
interface:
Above declaration defines three VLANs. Now we have to assign VLAN numbers to them:
After that, we can configre each VLAN using standard way:
That’s it.