Alcatel-Lucent 6850-48 网络指南

下载
页码 1162
Diagnosing Switch Problems
Port Mirroring
OmniSwitch AOS Release 6 Network Configuration Guide
September 2009
page 45-19
In the following example, 1/2 through 1/6 and 1/9, 2/7, and 3/5 are mirrored on destination port 2/4 in 
session 1:
-> port mirroring 1 source 1/2-6 1/9 2/7 3/5 destination 2/4
Note. Ports can be added after a port mirroring session has been configured.
Unblocking Ports (Protection from Spanning Tree)
If the mirroring port monitors mirrored traffic on an RMON probe belonging to a different VLAN than the 
mirrored port, it should be protected from blocking due to Spanning Tree updates. To create a mirroring 
session that protects the mirroring port from being blocked (default) due to changes in Spanning Tree, 
enter the 
CLI command and include the port mirroring session ID 
number, source and destination slot/ports, and unblocked VLAN ID number, as shown in the following 
example:
-> port mirroring 6 source 2/3 destination 2/4 unblocked 750
This command line specifies mirroring session 6, with the source (mirrored) port located in slot 2/port 3, 
and the destination (mirroring) port located in slot 2/port 4. The mirroring port on VLAN 750 is protected 
from Spanning Tree updates.
Note. If the unblocked VLAN identifier is not specified, the mirroring port could be blocked due to 
changes in Spanning Tree.
Enabling or Disabling Mirroring Status
Mirroring Status is the parameter using which you can enable or disable a mirroring session (i.e., turn port 
mirroring on or off). There are two ways to do this:
• Creating a Mirroring Session and Enabling Mirroring Status or Disabling a Mirroring Session 
(Disabling Mirroring Status). These procedures are described below and on the following page.
• Enabling or Disabling a Port Mirroring Session—“shorthand” versions of the above commands that 
require fewer keystrokes. Only the port mirroring session ID number needs to be specified, rather than 
the entire original command line syntax (e.g., source and destination slot/ports and optional unblocked 
VLAN ID number). See 
for details.
Disabling a Mirroring Session (Disabling Mirroring Status)
To disable the mirroring status of the configured session between a mirrored port and a mirroring port 
(turning port mirroring off), use the 
CLI command. Be sure to include 
the port mirroring session ID number and the keyword disable.
In this example, the command specifies port mirroring session 6, with the mirrored (active) port located in 
slot 2/port 3, and the mirroring port located in slot 6/port 4. The mirroring status is disabled (i.e., port 
mirroring is turned off):
-> port mirroring 6 source disable