Configuring RSPAN

RSPAN enables remote monitoring of multiple devices across a network. The following configuration demonstrates an RSPAN for both ingress and egress traffic.
  1. On the source device, enter the configure terminal command to access global configuration mode.
    device1# configure terminal
    
  2. Enter the rspan-vlan command, specifying a VLAN ID, to define an RSPAN VLAN on the source device.
    device1(config)# rspan-vlan 4000
    
  3. Enter the tagged ethernet command, specifying an interface, to add a member port.
    device1(config-rspan-vlan-4000)# tagged ethernet 1/1/2 
    
  4. Enter the rspan destination command, specifying an interface, to configure the RSPAN destination port.
    device1(config-rspan-vlan-4000)# rspan destination ethernet 1/1/2
    
  5. Enter the rspan source command with the monitor-both keyword, specifying an interface, to configure the RSPAN source port and specify that both ingress and egress traffic is monitored.
    device1(config-rspan-vlan-4000)# rspan source monitor-both ethernet 1/1/1
    
  6. On the intermediate device, enter the configure terminal command to access global configuration mode.
    device2# configure terminal
    
  7. Enter the rspan-vlan command, specifying a VLAN ID, to define an RSPAN VLAN on the intermediate device.
    device2(config)# rspan-vlan 4000
    
  8. Enter the tagged ethernet command with the ethernet keyword, specifying an interface, to add member ports.
    device2(config-rspan-vlan-4000)# tagged ethernet 1/1/1 ethernet 1/1/2 
    
  9. On the destination device, enter the configure terminal command to access global configuration mode.
    device3# configure terminal
    
  10. Enter the rspan-vlan command, specifying a VLAN ID, to define an RSPAN VLAN on the destination device.
    device3(config)# rspan-vlan 4000
    
  11. Enter the tagged ethernet command with the ethernet keyword, specifying an interface, to add member ports.
    device3(config-rspan-vlan-4000)# tagged ethernet 1/1/1 ethernet 1/1/2 
    
  12. Enter the rspan destination command, specifying an interface, to specify the RSPAN destination port.
    device3(config-rspan-vlan-4000)# rspan destination ethernet 1/1/2
    

The following example configures an RSPAN for ingress and egress traffic.

Source device:

device1# configure terminal
device1(config)# rspan-vlan 4000
device1(config-rspan-vlan-4000)# tagged ethernet 1/1/2 
device1(config-rspan-vlan-4000)# rspan destination ethernet 1/1/2
device1(config-rspan-vlan-4000)# rspan source monitor-both ethernet 1/1/1

Intermediate device:

device2# configure terminal
device2(config)# rspan-vlan 4000
device2(config-rspan-vlan-4000)# tagged ethernet 1/1/1 ethernet 1/1/2 

Destination device:

device3# configure terminal
device3(config)# rspan-vlan 4000
device3(config-rspan-vlan-4000)# tagged ethernet 1/1/1 ethernet 1/1/2 
device3(config-rspan-vlan-4000)# rspan destination ethernet 1/1/2