beautypg.com

Allied Telesis AT-S39 User Manual

Page 115

background image

AT-S39 Command Line Interface User’s Guide

115

ports will be tagged or untagged. Syntax 1 is limited in that it allows you
to specify either tagged or untagged ports, but not both at the same
time. Syntax 2 on the other hand can create a VLAN that has both types
of ports. This will be illustrated in the section Examples below.

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 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 a
untagged and tagged member.

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 very same VLAN:

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

Here’s another example. 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 very same VLAN:

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