Allied Telesis AT-S39 User Manual
Page 120
![background image](/manuals/427793/120/background.png)
Chapter 13: VLAN Commands
120
mirrorport
Specifies a port on the switch where all traffic on the
VLAN will be mirrored. This function is useful in
troubleshooting a VLAN. It allows you to mirror the
VLAN traffic on another port where you can connect a
network analyzer. In most situations you will probably
not use this parameter.
Description
This command adds tagged and untagged ports to an existing VLAN.
You can also use this command to have the traffic on the VLAN mirrored
to another port on the switch.
Note
To remove ports from a VLAN, see the command DELETE VLAN.
This command has two syntaxes, just like the CREATE VLAN command.
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 untagged ports of a VLAN, the ports 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, if you add Port 4 as an untagged port to a VLAN, the port 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. This is because a tagged 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, Port 6 remains a member of any
current VLAN assignments as a tagged and untagged member.
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: