37-20
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter37 Configuring SPAN and RSPAN
Configuring RSPAN
This example shows how to configure VLAN 901 as the source remote VLAN and how to configure the
destination port for ingress traffic on VLAN 5 by using a security device that suppor ts 802.1Q
encapsulation:
Switch(config)# monitor session 1 source remote vlan 901
Switch(config)# monitor session 1 destination interface gigabitEthernet1/2 ingress vlan 5
Switch(config)# end
Step3 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 will be 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 will also be 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.
Step4 Switch(config)# end Returns to privileged EXEC mode.
Step5 Switch# show monitor [session
session_number
]
Verifies your entries.
Step6 Switch# copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Command Purpose