VLAN: Creating a VLAN Interface on OpenBSD
Introduction
A virtual local area network, commonly called VLAN (for Virtual LAN), is an independent logical computer network. Many VLANs can coexist on the same network switch.
Configuration
Dynamique
To create a VLAN interface on the fly:
Then assign a tag (VLAN ID) to this VLAN as well as the physical interface on which it should be created:
And finally, assign it a specific IP address:
Statique
Now, to keep this configuration active when the machine restarts (/etc/hostname.vlan110
):