4 Command Line Interface

Mirror Port Commands

This section describes how to mirror traffic from a source port to a target port.

Table 4-46 Mirror Port Commands

Command

Function

Mode

Page

 

 

 

 

port monitor

Configures a mirror session

IC

4-134

 

 

 

 

show port monitor

Shows the configuration for a mirror port

PE

4-135

 

 

 

 

port monitor

This command configures a mirror session. Use the no form to clear a mirror session.

Syntax

port monitor interface [rx tx both] no port monitor interface

interface - ethernet unit/port (source port)

-unit - This is unit 1.

-port - Port number. (Range: 1-8)

rx - Mirror received packets.

tx - Mirror transmitted packets.

both - Mirror both received and transmitted packets.

Default Setting

No mirror session is defined. When enabled, the default mirroring is for both received and transmitted packets.

Command Mode

Interface Configuration (Ethernet Ports 1-8, 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 destination port from multiple source ports.

4-134