156
4.3.3.1 port monitor
Command:port monitor interface <interface-list> {rx| tx| both}
no
port monitor interface <interface-list>
Function:
Specifies port of mirror source;the “
no
port monitor interface
<interface-list>
” command deletes the mirror source port.
Parameter:<interface-list>
is the mirror source port list, in which special characters
such as “-”
、
“;” are available;
rx
is the flow received from the source port by the mirror;
tx
is the flow sent from the source port by the mirror;
both
refers to the flow both into and
out from the mirror source
Command Mode:
Port mode
Usage Guide:
This command is for configuring the source port of the mirror. There is not
limitation on the switch to the mirror source port, which can be one port or many ports,
and not only can the bilateral flow be sent out from or received into the mirror source port,
but also the sent and received flows are available on single mirror source port. While
mirroring several ports, their direction can vary but have to be configured by several
times. The speed rate of the mirror source port and the destination port should be the
same or else the packet may be lost.
Example:
Configure the sent flow of the 1/1-4 mirror source port and the receiving flow of
the 1/5 mirror port
Switch(Config-If-Ethernet1/5)#port monitor interface ethernet 1/1-4 tx
4.3.3.2 show port monitor
Command:show port monitor [interface <interface-list>]
Function:
Show the mirror source and destination port information
Parameter:<interface-list>
is the mirror source port list
Command Mode:
Admin Mode
Usage Guide
This command will show current mirror source port and destination port.
Example:
Switch#show port monitor
4.3.4 Device Mirroring Troubleshooting Help
If a problems occurs configuring port mirroring, please check the following first for
causes:
&
Whether the mirror destination port is a member of a trunk group or not, if yes,
modify the trunk group.
&
If the throughput of mirror destination port is smaller than the total throughput of
mirror source port(s), the destination port will not be able to duplicate all source