PurposeCommand or Action
Removes any existing SPAN configuration for the session.
no monitor session {session_number | all |
local | remote}
Step 6
•
For session_number, the range is 1 to 66.
Example:
Switch(config)# no monitor session 1
• all—Removes all SPAN sessions.
• local—Removes all local sessions.
• remote—Removes all remote SPAN sessions.
Specifies the RSPAN session and the source RSPAN VLAN.
monitor session session_number source
remote vlan vlan-id
Step 7
•
For session_number, the range is 1 to 66.
Example:
Switch(config)# monitor session 1 source
remote vlan 901
•
For vlan-id, specify the source RSPAN VLAN to monitor.
Specifies the RSPAN session and the destination interface.
monitor session session_number destination
interface interface-id
Step 8
•
For session_number, enter the number defined in Step 7.
Example:
Switch(config)# monitor session 1
In an RSPAN destination session, you must use the same session
number for the source RSPAN VLAN and the destination port.
•
For interface-id, specify the destination interface. The destination
interface must be a physical interface.
destination interface
gigabitethernet2/0/1
•
Though visible in the command-line help string, encapsulation
replicate is not supported for RSPAN. The original VLAN ID
is overwritten by the RSPAN VLAN ID, and all packets appear
on the destination port as untagged.
Returns to privileged EXEC mode.end
Example:
Switch(config)# end
Step 9
Verifies your entries.show running-config
Example:
Switch# show running-config
Step 10
(Optional) Saves your entries in the configuration file.copy running-config startup-config
Example:
Switch# copy running-config
Step 11
startup-config
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
498
How to Configure SPAN and RSPAN