VLAN

From OpenVZ Linux Containers Wiki

Jump to: navigation, search

A virtual LAN, commonly known as a vLAN or as a VLAN, is a method of creating independent logical networks within a physical network. Several VLANs can co-exist within such a network. This helps in reducing the broadcast domain and administratively separating logical segments of LAN (like company departments) which should not exchange data using LAN (they still can by routing).

A VLAN consists of a network of computers that behave as if connected to the same wire - even though they may actually be physically connected to different segments of a LAN. Network administrators configure VLANs through software rather than hardware, which makes them extremely flexible. One of the biggest advantages of VLANs emerges when physically moving a computer to another location: it can stay on the same VLAN without the need for any hardware reconfiguration.

VLAN 1 is the default VLAN; it can never be deleted. All untagged traffic falls into this VLAN by default.

[edit] Advantages of VLAN

[edit] Common VLAN configurations for container

VLAN can be used in following ways:

host #  vconfig add eth0 <vlan_id>
host #  vzctl set <CTID> --netif_add eth0.<vlan_id> --save
ve #  vconfig add eth0 <vlan_id>

The second option is available only in kernel with virtualized VLAN (since 2.6.18-028test005 version).

[edit] External links

Retrieved from "http://wiki.openvz.org/VLAN"
Personal tools
Namespaces
Variants
Actions
Navigation
Sites
Toolbox