
Diagnosing Switch Problems
Port Mirroring
OmniSwitch AOS Release 7 Network Configuration Guide
June 2013
page 32-21
Keep in mind that the port mirroring session configuration remains valid, even though port mirroring has
been turned off.
Note.
The port mirroring session identifier and slot/port locations of the designated interfaces must always
be specified.
Configuring Port Mirroring Direction
By default, port mirroring sessions are bidirectional. To configure the direction of a port mirroring session
between a mirrored port and a mirroring port, use the
port-mirroring source destination
CLI command
by entering port mirroring, followed by the port mirroring session ID number, the source and destination
slot/ports, and
bidirectional
,
inport
, or
outport
.
Note.
Optionally, you can also specify the optional unblocked VLAN ID number and either
enable
or
disable
on the same command line.
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 direction is unidirectional and
inward bound:
-> port-mirroring 6 source 2/3 destination 6/4 inport
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 direction is unidirectional and
outward bound:
-> port-mirroring 6 source 2/3 destination 6/4 outport
You can use the bidirectional keyword to restore a mirroring session to its default bidirectional
configuration. For example:
-> port-mirroring 6 source 2/3 destination 6/4 bidirectional
Note.
The port mirroring session identifier and slot/port locations of the designated interfaces must always
be specified.
Enabling or Disabling a Port Mirroring Session (Shorthand)
Once a port mirroring session configuration has been created, this command is useful for enabling or
disabling it (turning port mirroring on or off) without having to re-enter the source and destination ports
and unblocked VLAN ID command line parameters.
To enable a port mirroring session, enter the
command, followed by the port mirroring
session ID number and the keyword
enable
. The following command enables port mirroring session 6
(turning port mirroring on):
-> port-mirroring 6 enable