30-23
Catalyst 3750-E and 3560-E Switch Software Configuration Guide
OL-9775-08
Chapter 30 Configuring SPAN and RSPAN
Configuring SPAN and RSPAN
To monitor all VLANs on the trunk port, use the no monitor session session_number filter vlan global
configuration command.
This example shows how to remove any existing configuration on RSPAN session 2, configure RSPAN
se
ssion 2 to monitor traffic received on trunk port 2, and send traffic for only VLANs 1 through 5 and 9
to
destination RSPAN VLAN 902.
Switch(config)# no monitor session 2
Switch(config)# monitor session 2 source interface gigabitethern
et1/0/2 rx
Switch(config)# monitor session 2 filter vlan 1 - 5 , 9
Switch(config)# monitor session 2 destination remote vlan 902
Switch(config)# end
On the Catalyst 3560E-12D switch, this example shows how to remove any existing configuration on
RSPAN session 2, configure RSPAN session 2 to monitor traffic received on trunk port 2, and send
t
raffic for only VLANs 1 through 5 and 9 to destination RSPAN VLAN 902.
Switch(config)# no monitor session 1
Switch(config)# monitor session 1 source interface gigabitethern
et0/2 rx
Switch(config)# monitor session 1 filter vlan 1 - 5 , 9
Switch(config)# monitor session 1 destination remote vlan 902 de
stination-port group a
Switch(config)# end
Step 5
On a switch other than the
Catalyst 3560E-12D switch:
monitor session se
ssion_number
destination remote vlan vlan-id
On the Catalyst 3560E0-12D switch:
monitor session se
ssion_number
destination remote vlan vlan-id
destination-port group {a | b | c}
Specify the RSPAN session and the destination remote VLAN
(
RSPAN VLAN).
For sess
ion_number, enter the session number specified in Step 3.
For vl
an-id, specify the RSPAN VLAN to carry the monitored traffic
to the destination port.
For the Catalyst 3560E-12D switch, enter d
estination-port group {a
| b | c} to specify the ports that carry RSPAN traffic.
Step 6
end Return to privileged EXEC mode.
Step 7
show monitor [session session_number]
show running-config
Verify the configuration.
Step 8
copy running-config startup-config (Optional) Save the configuration in the configuration file.
Command Purpose