Allied Telesis AT-S63 User Manual
Page 263
AT-S63 Stack Command Line Interface User’s Guide
Section IV: Virtual LANs
263
This command has two syntaxes. Either syntax can be used to add ports
to a VLAN. The difference between the two is that Syntax 1 can add only
one type of port, tagged or untagged, at a time to a VLAN, while Syntax 2
can add both in the same command. This is illustrated in Examples below.
When you add an untagged port to a VLAN, the port is automatically
removed from its current untagged VLAN assignment, because a port can
be an untagged member of only one VLAN at a time. For example, if you
add port 4 as an untagged port to a VLAN, it is automatically removed from
whichever VLAN it is currently an untagged member.
Adding a tagged port to a VLAN does not change the port’s current tagged
and untagged VLAN assignments, because this type of port can belong to
more than one VLAN at a time. For instance, if you add port 6 as an
tagged port to a new VLAN, it remains a tagged and untagged member of
its other VLAN assignments.
Examples
The following command uses Syntax 1 to add ports 2.4 and 2.7 as
untagged members to a VLAN called Sales:
add vlan=sales ports=2.4,2.7 frame=untagged
The following command does the same thing using Syntax 2:
add vlan=sales untaggedports=2.4,2.7
The following command uses Syntax 1 to add port 4.3 as a tagged
member to a VLAN called Production:
add vlan=production ports=4.3 frame=tagged
The following command does the same thing using Syntax 2:
add vlan=production untaggedports=4.3
Adding both tagged and untagged ports to a VLAN using Syntax 1 takes
two commands, one command for each port type. For example, if you had
a VLAN called Service and you wanted to add port 5.5 as a tagged port
and ports 1.7 and 1.8 as untagged ports, the commands would be:
add vlan=Service ports=5.5 frame=tagged
add vlan=Service ports=1.7,1.8 frame=untagged
Using Syntax 2, you can add both types of ports with just one command:
add vlan=Service untaggedports=1.7,1.8 taggedports=5.5