AMX NXA-ENET24 Switch User Manual


 
CLI (Command Line Interface)
237
NXA-ENET24 - Software Management Guide
Mirror Port Commands
This section describes how to mirror traffic from a source port to a target port.
Mirror Port Commands
Command Function
port monitor
This command configures
a mirror session.
Use the no form to clear a
mirror session.
Syntax:
port monitor interface [rx | tx]
no port monitor interface
interface - ethernet unit/port (source port)
unit - Stack unit. (Range: 1-8)
port - Port number. (Range: 1-26)
rx - Mirror received packets.
tx - Mirror transmitted packets.
Default Setting: No mirror session is defined.
Command Mode: Interface Configuration (Ethernet, destination port)
Command Usage: You can mirror traffic from any source port to a destination
port for real-time analysis. You can then attach a logic analyzer or RMON probe to
the destination port and study the traffic crossing the source port in a completely
unobtrusive manner.
The destination port is set by specifying an Ethernet interface.
The mirror port and monitor port speeds should match, otherwise traffic may be
dropped from the monitor port.
You can create multiple mirror sessions, but all sessions must share the same
destination port. However, you should avoid sending too much traffic to the desti-
nation port from multiple source ports.
Example: The following example configures the switch to mirror received packets
from port 6 to 11:
Console(config)#interface ethernet 1/11
Console(config-if)#port monitor ethernet 1/6 rx
Console(config-if)#
show port monitor
This command displays
mirror information.
Syntax: show port monitor [interface]
interface - ethernet unit/port (source port)
unit - Stack unit. (Range: 1-8)
port - Port number. (Range: 1-26)
Default Setting: Shows all sessions.
Command Mode: Privileged Exec
Command Usage: This command displays the currently configured source port,
destination port, and mirror mode (i.e., RX, TX).
Example: The following shows mirroring configured from port 6 to port 11:
Console(config)#interface ethernet 1/11
Console(config-if)#port monitor ethernet 1/6 rx
Console(config-if)#end
Console#show port monitor
Port Mirroring
-------------------------------------
Destination port(listen port):Eth1/11
Source port(monitored port) :Eth1/6
Mode :RX
Console#