Allied Telesis AT-S39 User Manual

Page 121

Advertising
background image

AT-S39 Command Line Interface User’s Guide

121

When you create a new VLAN, untagged ports of the new VLAN are
automatically removed from their current untagged VLAN assignment.
This is because a port can be an untagged member of only one VLAN at a
time. For example, creating a new VLAN with untagged Ports 1 to 4
automatically removes these ports from whichever VLAN where they are
currently untagged members.

The PVID of an untagged port is automatically changed to match the VID
number of the VLAN to which it is added. For instance, if you make Port 4
an untagged member of a VLAN with a VID of 15, Port 4’s PVID is
changed to 15 automatically.

Tagged ports of the new VLAN remain as tagged and untagged
members of their current VLAN assignments. No change is made to a
tagged port’s current VLAN assignments, other than its addition to the
new VLAN. This is because a tagged port can belong to more than one
VLAN at a time. For example, if you add Port 6 as an tagged port to a new
VLAN, Port 6 remains a member of any current VLAN assignments as
untagged and tagged members.

Examples

The following command uses Syntax 1 to create a port-based VLAN
called Sales with a VID of 3 and untagged ports 4-9 and 14:

create vlan name=Sales vid=3 ports=4-9,14
frame=untagged

The following command uses Syntax 2 to create the same VLAN:

create vlan name=Sales vid=3 untaggedports=4-9,14

The following command uses Syntax 1 to create a tagged VLAN called
Production with a VID of 22 and tagged ports 3 and 6:

create vlan name=Production vid=22 ports=3,6
frame=tagged

The following command uses Syntax 2 to create the same VLAN:

create vlan name=Sales vid=22 taggedports=3,6

Now let’s try creating an tagged VLAN that contains both untagged and
tagged ports. Suppose you wanted to create a VLAN called Service with
a VID of 16 and untagged ports 1, 4, 5-7 and tagged ports 11 and 14. You
could not create this VLAN using Syntax 1 with just one command. It
would actually take two commands. You would first create the VLAN,
specifying either the untagged or tagged ports. For example:

Advertising