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
Содержание 6152PL2 FICHE
Страница 2: ......
Страница 6: ...vi ...
Страница 8: ...viii ...
Страница 32: ...Tables xxxii ...
Страница 38: ...Figures xxxviii ...
Страница 56: ...Initial Configuration 2 10 2 ...
Страница 378: ...Configuring the Switch 3 322 3 ...
Страница 651: ...Address Table Commands 4 273 4 Example Console show mac address table aging time Aging time 100 sec Console ...
Страница 817: ......
Страница 818: ...SMC6128PL2 SMC6152PL2 149100000007A R01 ...