AT-S62 Command Line User’s Guide
437
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 a tagged port to a new
VLAN, port 6 remains a member of its other current untagged and
tagged VLAN assignments.
Examples
The following command uses Syntax 1 to create a port-based VLAN
called Sales with a VID of 3. The VLAN will consist of ports 4 to 8 and
ports 12 to 16. All ports will be untagged ports in the VLAN:
create vlan=Sales vid=3 port=4-8,12-16
frame=untagged
The following command uses Syntax 2 to create the same VLAN:
create vlan=Sales vid=3 untaggedports=4-8,12-16
In the following command, Syntax 1 is used to create a tagged VLAN
called Production with a VID of 22. The VLAN will consist of two tagged
ports, ports 3 and 6:
create vlan=Production vid=22 port=3,6
frame=tagged
The following command uses Syntax 2 to create the same VLAN:
create vlan=Sales vid=22 taggedports=3,6
You cannot use Syntax 1 to create a tagged VLAN that contains both
untagged and tagged ports. For instance, 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 12. Creating this VLAN using Syntax 1 would
actually require two commands. You would first need to create the
VLAN, specifying either the untagged or tagged ports. As an example,
the following command creates the VLAN and specifies the untagged
ports:
create vlan=Service vid=16 port=1,4,5-7
frame=untagged
Then, to add the other ports (in this case tagged ports), you would need
to use the ADD VLAN command.