Command Line Interface
4-260
4
Mirror Port Commands
This section describes how to mirror traffic from a source port to a target port.
port monitor
This command configures a mirror session. Use the
no
form to clear a mirror
session.
Syntax
port monitor
{
interface
[
rx
|
tx
|
both
] |
vlan
vlan-id
|
mac-address
mac-address
}
no port monitor
interface
•
interface
-
ethernet
unit
/
port
(source port)
-
unit
- Stack unit. (Range: 1)
-
port
- Port number. (Range: 1-28/52)
•
rx
- Mirror received packets.
•
tx
- Mirror transmitted packets.
•
both
- Mirror both received and transmitted packets.
•
vlan-id
- VLAN ID (Range: 1-4094)
•
mac-address
- MAC address in the form of x-x-x-x-x-x or xxxxxxxxxxxx.
Default Setting
• No mirror session is defined.
• When enabled for an interface, default mirroring is for both received and
transmitted packets.
• When enabled for a VLAN or a MAC address, mirroring is restricted to
received packets.
Command Mode
Interface Configuration (Ethernet, destination port)
Command Usage
• You can mirror traffic 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.
• Set the destination port by specifying an Ethernet interface with the
interface
configuration command, and then use the port monitor command to specify
the source of the traffic to mirror.
Table 4-63 Mirror Port Commands
Command
Function
Mode
Page
port monitor
Configures a mirror session
IC
4-260
show port monitor
Shows the configuration for a mirror port
PE
4-261
Summary of Contents for 6152PL2 FICHE
Page 2: ......
Page 6: ...vi ...
Page 8: ...viii ...
Page 32: ...Tables xxxii ...
Page 38: ...Figures xxxviii ...
Page 56: ...Initial Configuration 2 10 2 ...
Page 378: ...Configuring the Switch 3 322 3 ...
Page 817: ......