User Manual

Table Of Contents
Traffic direction Description
both Both receiver and transmitter
receive Receiver
transmit Transmitter
[Initial value]
none
[Input mode]
interface mode
[Description]
Mirrors the traffic specified by direct, with the applicable interface as the sniffer port and ifname as the monitored 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 sniffer port.
[Example]
With LAN port #1 as the sniffer port, mirror the transmitted and received frames of LAN port #4 and the transmitted frames of
LAN port #5.
SWR2310(config)#interface port1.1
SWR2310(config-if)#mirror interface port1.4 direction both
SWR2310(config-if)#mirror interface port1.5 direction transmit
5.1.10 Show port mirroring status
[Syntax]
show mirror [interface ifname]
[Keyword]
interface : Specify the monitored port to show
[Parameter]
ifname : Interface name of the LAN/SFP port
Monitored port to show
[Input mode]
unprivileged EXEC mode, privileged EXEC mode
[Description]
Shows the port mirroring setting. If interface is omitted, the settings for all monitored ports are shown.
The following items are shown for each monitored port.
Item Description
Monitored Port Interface name of the monitored port
Sniffer Port Interface name of the sniffer port
Direction >Direction of traffic that is mirrored
[Example]
Show the mirroring port settings.
SWR2310#show mirror
Sniffer Port Monitored Port Direction
============= ============== ==========
port1.1 port1.4 both
port1.1 port1.5 transmit
Command Reference | Interface control | 149