39
address]
community
[word]
192.168.1.50
community public
snmp
system-name
[word]
Global
configuration
mode
Set SNMP agent
system name
N/A
Switch (config)#
snmp system-name
l2switch
Port Mirroring Commands Set
Commands
Command
Level
Description
Defaults
Example
port monitor
[RX|TX|both]
[port ID]
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
Privileged
EXEC mode
Use the show port
monitor privileged
EXEC command
to display the
ports for which
Switched Port
Analyzer (SPAN)
port monitoring is
Switch #
show port
monitor
State: Enable
AnalysisPortId: 8
Port 01 TxRx: Monitor
Port 02 TxRx:
Port 03 TxRx:
Port 04 TxRx: