Configuration Example: RSPAN Source
The following example shows how RSPAN session 2 to monitor bidirectional traffic from source interface
Gigabit Ethernet 0/0/1:
Router(config)# monitor session 2 type RSPAN-source
Router(config-mon-RSPAN-src)# source interface gigabitEthernet0/0/1 [tx |rx|both]
Router(config-mon-RSPAN-src)# destination remote VLAN 100
Router(config-mon-RSPAN-src)# no shutdown
Router(config-mon-RSPAN-src)# end
The following example shows how RSPAN session 3 to monitor bidirectional traffic from source Vlan 20:
Router(config)# monitor session 3 type RSPAN-source
Router(config-mon-RSPAN-src)# source VLAN 20 rx
Router(config-mon-RSPAN-src)# destination remote VLAN 100
Router(config-mon-RSPAN-src)# no shutdown
Router(config-mon-RSPAN-src)# end
Configuration Example: RSPAN Destination
The following example shows how to configure interface Gigabit Ethernet 0/0/1 as the destination for RSPAN
session 2:
Router(config)# monitor session 2 type RSPAN-destination
Router(config-mon-RSPAN-dst)# source remote VLAN 100
Router(config-mon-RSPAN-dst)# destination interface gigabitEthernet 0/0/1
Router(config-mon-RSPAN-dst)# end
Verifying Local SPAN and RSPAN
Use the show monitor session command to view the sessions configured.
•
The following example shows the RSPAN source session with Gigabit Ethernet interface 0/0/1 as source:
Router# show monitor session 2
Session 2
---------
Type : Remote Source Session
Status : Admin Enabled
Source Ports :
Both : Gi0/0/1
MTU : 1464
•
The following example shows the RSPAN source session with Vlan 20 as source:
Router# show monitor session 3
Session 3
---------
Type : Remote Source Session
Status : Admin Enabled
Source VLANs :
RX Only : 20
MTU : 1464
Carrier Ethernet Configuration Guide (Cisco ASR 920 Series)
396
Configuring Switched Port Analyzer
Configuration Example: RSPAN Source