User Manual

Traffic direction Description
transmit Transmitter
[Initial value]
no mirror interface
[Input mode]
interface mode
[Description]
Mirrors the traffic specified by direct, with the applicable interface as the mirror port and ifname as the monitor port.
If this command is executed with the "no" syntax, the mirroring setting is deleted.
[Note]
This command can be specified only for LAN/SFP port.
Only one interface can be specified as the mirror port.
[Example]
With LAN port #1 as the mirror port, mirror the transmitted and received frames of LAN port #4 and the transmitted frames of
LAN port #5.
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#mirror interface port1.4 direction both
SWR2311P(config-if)#mirror interface port1.5 direction transmit
5.1.10 Show port mirroring status
[Syntax]
show mirror
[
interface ifname]
[Keyword]
interface : Specify the monitor port to show
[Parameter]
ifname : Interface name of the LAN/SFP port
Monitor port to show
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the port mirroring setting. If interface is omitted, the settings for all monitor ports are shown.
The following items are shown for each monitor port.
Item Description
Monitor Port Interface name of the monitor port
Mirror Port Interface name of the mirror port
Mirror Option Whether port mirroring is enabled or disabled
Mirror Direction Direction of traffic that is mirrored
[Example]
Show the mirroring port settings.
SWR2311P#show mirror
Monitor Port Mirror Port Mirror Option Direction
============= ============ ============== ==========
port1.1 port1.4 enable both
port1.1 port1.5 enable transmit
126 | Command Reference |
Interface control