Allied Telesis AT-S39 User Manual
Page 118
Chapter 13: VLAN Commands
118
This command, just like the CREATE VLAN command, has two syntaxes.
You can use either command 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 a port as an untagged port to a VLAN, it is automatically
removed from its current untagged VLAN assignment. A port can be an
untagged member of only one VLAN at a time. For example, adding Port
4 as an untagged port to a VLAN automatically removes it from
whichever VLAN where it is an untagged member.
Adding a tagged port to a VLAN does not change the port’s current
tagged and untagged VLAN assignments. A tagged port can belong to
more than one VLAN at a time. For instance, adding Port 6 as an tagged
port to a new VLAN does not alter the port’s other current VLAN
assignments.
Examples
The following command uses Syntax 1 to add Ports 4 and 7 as untagged
members to a VLAN called Sales:
add vlan name=sales port=4,7 frame=untagged
The following command does the same thing using Syntax 2:
add vlan name=sales untaggedports=4,7
The following command uses Syntax 1 to add Port 3 as a tagged
member to a VLAN called Production:
add vlan name=production port=3 frame=tagged
The following command does the same thing using Syntax 2:
add vlan name=production untaggedports=3
To add both tagged and untagged ports to a VLAN using Syntax 1 takes
two commands. For example, if you had a VLAN called Service and you
wanted to add Port 5 as a tagged port and Ports 10 to 12 as untagged
ports, the commands would be:
add vlan name=Service ports=5 frame=tagged
add vlan name=Service ports=10-12 frame=untagged
Using Syntax 2, you can do the whole thing with just one command:
add vlan name=Service untaggedports=10-12
taggedports=5