31
Port Mirroring Commands Set
Commands Command Level Description Defaults Example
port monitor
[RX|TX|Both |Disable]
PortList
Or
no port monitor
Interface
configuration mode
Use the port monitor
interface configuration
command to enable Switch
Port Analyzer (SPAN) port
monitoring on a port. Use
the no form of this
command to return the port
to its default value.
N/A
Switch (config)# Interface
fastEthernet 0/8
Switch (config-if)# port monitor
both 3
show port monitor Interface
configuration mode
Use the show port monitor
privileged EXEC command
to display the ports for
which Switched Port
Analyzer (SPAN) port
monitoring is enabled.
Switch (config-if)# show port
monitor
State: ENABLE
AnalysisPortId: 8
Port 1 Rx: Monitor Port 1 Rx:
Monitor
Port 2 Rx: Port 2 Rx:
Port 3 Rx: Monitor Por
t 3 Rx:
Monitor
Port 4 Rx: Port 4 Rx:
Port 5 Rx: Port 5 Rx:
Port 6 Rx: Port 6 Rx:
Port 7 Rx: Port 7 Rx:
Port 8 Rx: Analysis Port 8 Tx:
Analysis
Port 9 Rx: Port 9 Rx: