M
IRROR

P

ORT

C

OMMANDS

3-175

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 source and destination port speeds should match,
otherwise traffic may be dropped from the source port.
You can create only one port mirror session.
The source and destination ports have to be either both in the
port range 1-12 or both in the port range 13-24.
Example
The following example configures the switch to mirror all packets
from port 6 to port 11:
Related Commands
show port monitor (3-175)

show port monitor

Use this command to display mirror information.
Syntax
show port monitor [interface]
interface
ethernet unit/port (source port)
-unit - Switch (unit 1).
-port - Port number.
Console(config)#interface ethernet 1/11
Console(config-if)#port monitor ethernet 1/6 both
Console(config-if)#
b_mgmt.book Page 175 Tuesday, July 8, 2003 5:24 PM