51-20
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 51 Configuring SPAN and RSPAN
Configuring RSPAN
Creating an RSPAN Destination Session and Enabling Ingress Traffic
To create an RSPAN destination session, to specify the source RSPAN VLAN, and to enable ingress
traffic on the destination port for a network security device (such as a Cisco IDS [Intrusion Detection
System] sensor appliance), perform this task:
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# monitor session
{session_number} source vlan vlan_IDs Specifies the RSPAN session and the source RSPAN VLAN.
For session_number, specifies the session number identified with this
RSPAN session (1 through 6).
For vlan_IDs, specifies the source VLAN or VLANs to monitor.
Valid VLANs are in the range from 1 to 4094.
Step 3 Switch(config)# [monitor session
session_number destination interface
interface-id [encapsulation {dot1q
[ingress vlan vlan id] | ISL [ingress]}
| ingress vlan vlan id] [learning]]
Specifies the RSPAN session, the destination port, the packet
encapsulation, and the ingress VLAN.
For session_number, specifies the session number identified with this
RSPAN session (1 through 6).
For interface-id, specifies the destination port. Valid interfaces
include physical interfaces.
(Optional) Specifies the encapsulation of the packets transmitted on
the RSPAN destination port. If no encapsulation is specified, all
transmitted packets are sent in native format (untagged).
Enter encapsulation dot1q to send native VLAN packets
untagged, and all other VLAN tx packets tagged dot1q.
Enter encapsulation isl to send all tx packets encapsulated using
ISL.
(Optional) Specifies whether forwarding is enabled for ingress traffic
on the RSPAN destination port.
For native (untagged) and dot1q encapsulation, specify ingress
vlan vlan id to enable ingress forwarding with vlan id as the
native VLAN; vlan id is also used as the native VLAN for
transmitted packets.
Specify ingress to enable ingress forwarding when using ISL
encapsulation.
Specify learning to enable learning when ingress is enabled.
Step 4 Switch(config)# end Returns to privileged EXEC mode.
Step 5 Switch# show monitor [session
session_number]Verifies your entries.
Step 6 Switch# copy running-config
startup-config (Optional) Saves your entries in the configuration file.