Cisco Systems DOC-7814982 Stereo System User Manual


 
21-15
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 21 Configuring SPAN and RSPAN
Configuring RSPAN
You should create an RSPAN VLAN before configuring an RSPAN source or destination session.
If you enable VTP and VTP pruning, RSPAN traffic is pruned in the trunks to prevent the unwanted
flooding of RSPAN traffic across the network for VLAN-IDs that are lower than 1005.
Creating an RSPAN Session
First create an RSPAN VLAN that does not exist for the RSPAN session in any of the switches that will
participate in RSPAN. With VTP enabled in the network, you can create the RSPAN VLAN in one
switch, and VTP propagates it to the other switches in the VTP domain for VLAN-IDs that are lower
than 1005.
Use VTP pruning to get efficient flow of RSPAN traffic, or manually delete the RSPAN VLAN from all
trunks that do not need to carry the RSPAN traffic.
After creating the RSPAN VLAN, begin in privileged EXEC mode, and follow these steps to start an
RSPAN source session and to specify the source (monitored) ports and the destination RSPAN VLAN.
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
no monitor session {session_number | all |
local | remote}
Clear any existing RSPAN configuration for the session.
For session_number, specify 1 or 2.
Specify all to remove all RSPAN sessions, local to remove all local
sessions, or remote to remove all remote SPAN sessions.
Step 3
monitor session session_number source
interface interface-id [, | -] [both | rx | tx]
Specify the RSPAN session and the source port (monitored port).
For session_number, specify 1 or 2.
For interface-id, specify the source port to monitor. Valid interfaces
include physical interfaces and port-channel logical interfaces
(port-channel port-channel-number).
(Optional) [, | -] Specify a series or range of interfaces. Enter a space
after the comma; enter a space before and after the hyphen.
(Optional) Specify the direction of traffic to monitor. If you do not
specify a traffic direction, the source interface sends both sent and
received traffic. Only received (rx) traffic can be monitored on
additional source ports.
bothMonitor both received and sent traffic.
rxMonitor received traffic.
txMonitor sent traffic.
Step 4
monitor session session_number
destination remote vlan vlan-id
reflector-port interface
Specify the RSPAN session, the destination remote VLAN, and the
reflector port.
For session_number, enter 1 or 2.
For vlan-id, specify the RSPAN VLAN to carry the monitored traffic
to the destination port.
For interface, specify the interface that will flood the RSPAN traffic
onto the RSPAN VLAN.
Step 5
end Return to privileged EXEC mode.