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:

  ifconfig vlan110 create
  

Then assign a tag (VLAN ID) to this VLAN as well as the physical interface on which it should be created:

  ifconfig vlan110 vlan 110 vlandev sis1
  

And finally, assign it a specific IP address:

  ifconfig vlan110 inet 192.168.110.254 netmask 255.255.255.0
  

Statique

Now, to keep this configuration active when the machine restarts (/etc/hostname.vlan110):

  inet 192.168.110.254 255.255.255.0 NONE vlan 110 vlandev sis1
  

Last updated 04 Aug 2010, 07:24 CEST. history