51-23
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 51 Configuring SPAN and RSPAN Configuring RSPAN
To remove one or more source VLANs from the RSPAN session, use the no monitor session
session_number source vlan vlan-id rx global configuration command.
This example shows how to clear any existing configuration on RSPAN session 2, configure RSPAN
session 2 to monitor received traffic on all ports belonging to VLANs 1 through 3, and send it to
destination remote VLAN 902. The configuration is then modified to also monitor received traffic on all
ports belonging to VLAN 10.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# no monitor session 2
Switch(config)# monitor session 2 source vlan 1 - 3 rx
Switch(config)# monitor session 2 destination remote vlan 902
Switch(config)# monitor session 2 source vlan 10 rx
Switch(config)# end
Specifying VLANs to Filter
To limit RSPAN source traffic to specific VLANs, perform this task:
Step 4 Switch(config)# monitor session
session_number destination remote
vlan vlan-id
Specifies the RSPAN session, the destination remote VLAN.
For session_number, specifies the session number identified with this
RSPAN session (1 through 6).
For vlan-id, specifies the RSPAN VLAN to carry the monitored traffic
to the destination port.
Step 5 Switch(config)# end Returns to privileged EXEC mode.
Step 6 Switch# show monitor [session
session_number]Verifies your entries.
Step 7 Switch# copy running-config
startup-config (Optional) Saves your entries in the configuration file.
Command Purpose
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# no monitor session
{session_number | all | local |
remote}
Clears any existing SPAN configuration for the session.
For session_number, specifies the session number identified with this
RSPAN session (1 through 6).
Specify all to remove all SPAN sessions, local to remove all local
sessions, or remote to remove all remote SPAN sessions.