User guide
3-10 B
LACK
D
IAMOND
U
SER
G
UIDE
C
ONFIGURING
S
LOTS
AND
P
ORTS
• VLAN — All data to and from a particular VLAN, regardless of the physical port
configuration, is copied to the monitor port.
• Virtual port — All data specific to a VLAN on a specific port is copied to the
monitor port.
Up to 8 mirroring filters and one monitor port can be configured. Once a port is
specified as a monitor port, it cannot be used for any other function.
Frames that contain errors are not mirrored.
P
ORT
-M
IRRORING
C
OMMANDS
Port-mirroring commands are described in Table 3-5.
P
ORT
-M
IRRORING
E
XAMPLE
The following example selects port 3 on slot 7 as the mirror port, and sends all traffic
coming into or out of the BlackDiamond on slot 7, port 1 to the mirror port:
enable mirroring port 7:3
config mirroring add port 7:1
Table 3-5:
Port-Mirroring Configuration Commands
Command Description
enable mirroring port <slot:port> Dedicates a port to be the mirror port.
config mirroring add [mac <mac_address>
| vlan <name> | port <slot:port> | vlan
<name> port <slot:port>]
Adds a single mirroring filter definition. Up to eight
mirroring definitions can be added. You can mirror
traffic from a MAC address, a VLAN, a physical
port, or a specific VLAN/port combination.
config mirroring delete [mac
<mac_address> | vlan <name> | port
<slot:port> | vlan <name> port <slot:port> |
all}
Deletes a particular mirroring filter definition, or all
mirroring filter definitions.
disable mirroring Disables port-mirroring.
show mirroring Displays the port-mirroring configuration.