Assigning Ports to VLANs Configuring VLANs
page 4-8 OmniSwitch AOS Release 7 Network Configuration Guide June 2013
Tagged and Untagged Traffic Network
Switch 1 and 2 have three VLANs, one for untagged traffic and two for tagged traffic. The ports connect-
ing Switch 1 and 2 are configured in such a manner that the ports accept both tagged traffic for VLANS 2
and 3 and untagged traffic for VLAN 1.
A port can only be assigned to one untagged VLAN (in every case, this is the default VLAN
configuration). In this example the default VLAN for port 2/1 and port 4/3 is VLAN 1. The port can be
assigned to as many 802.1Q-tagged VLANs as necessary.
Configuring 802.1Q Tagging
To set a port to be a tagged port, use the vlan members tagged command and specify a VLAN identifica-
tion (VID) number and a port number. For example, to configure port 3/4 to carry traffic for VLAN 5,
enter the following command at the CLI prompt:
-> vlan 5 members port 4/3 tagged
Port 4/3 is now configured to carry packets tagged with VLAN 5, even though VLAN 5 is not the default
VLAN for the port.
To enable tagging on link aggregation groups, enter the link aggregation group identification number in
place of the slot and port number, as shown:
-> vlan 5 members linkagg 8 tagged
(For further information on creating link aggregation groups, see Chapter 7, “Configuring Static Link
Aggregation,” or Chapter 8, “Configuring Dynamic Link Aggregation.”)
To remove 802.1Q tagging from a selected port or link aggregate, use the untagged parameter.
-> vlan 5 members linkagg 8 untagged
To display all VLANs, enter the following command:
-> show vlan port
Note. The link aggregation group must be created first before it can be set to use 802.1Q tagging
VLAN 1
untagged
VLAN 2
tagged
VLAN 3
tagged
VLAN 1
untagged
VLAN 2
tagged
VLAN 3
tagged
Switch 1
Switch 2
port 2/1
port 4/3