rspan-transit-vlan

Allows intermediate switches to forward mirrored traffic from multiple access switches with different RSPAN VLANs
Syntax
rspan-transit-vlan { vlan-id }
no rspan-transit-vlan { vlan-id }
Parameters
vlan-id
Number that identifies the RSPAN transit VLAN.
Modes

Global configuration mode

Usage Guidelines

The no form of the command removes the VLAN.

The rspan-transit-vlan command is needed only in the following cases:

  • On intermediate switches where the user needs to configure multiple RSPAN transit VLANs , as it is not possible to configure multiple RSPAN VLANs on a switch
  • For topologies where the user does not want to enable MAC learning on transient VLANs for intermediate switches.

The rspan-transit-vlan command creates a transit VLAN that forwards RSPAN mirrored traffic from access switches, and MAC learning is disabled on the VLAN.

Examples

The following example configures access Router 1 and Router 2 for RSPAN. Both Router 1 and Router 2 are configured to filter out mirrored traffic on VLANs 100 through 108. The example configures an intermediate Router 3 with RSPAN transit VLANs that are the same VLANs configured for RSPAN on Router 1 and Router 2 (VLANs 191 and 197).

device# configure terminal <-Configure R1 RSPAN
device(config)# rspan-vlan 191
device(config-rspan-vlan-191)# tagged ethernet 1/2/1
device(config-rspan-vlan-191)# rspan destination ethernet 1/2/1
device(config-rspan-vlan-191)# rspan source monitor-in ethernet 1/1/1 ethernet 2/1/1
device(config-rspan-vlan-191)# exit

device(config)# mirror-filter source vlan 100 to 108 VLANs filtered (R1)
device(config)# exit

device# show vlan brief ethernet 1/1/1 <-Verify R1 VLANs
Port 1/1/1 is a member of 11 VLANs
VLANs 100 to 110 
Untagged VLAN   :
Tagged   VLANs  : 100 to 110 
device# show vlan brief ethernet 2/1/1 
Port 2/1/1 is a member of 10 VLANs
VLANs 3000 to 3009 
Untagged VLAN   :
Tagged   VLANs  : 3000 to 3009

device# configure terminal <-Configure R2 RSPAN
device(config)# rspan-vlan 197
device(config-rspan-vlan-197)# tagged ethernet 2/2/1
device(config-rspan-vlan-197)# rspan destination ethernet 2/2/1
device(config-rspan-vlan-197)# rspan source monitor-in ethernet 1/1/2 ethernet 2/1/2
device(config-rspan-vlan-197)# exit

device(config)# mirror-filter source vlan 100 to 108 <-VLANs filtered (R2)
device(config)# exit

device# show vlan brief ethernet 1/1/2 <-Verify R2 VLAN members
Port 1/1/2 is a member of 11 VLANs
VLANs 100 to 110 
Untagged VLAN   :
Tagged   VLANs  : 100 to 110 

device# show vlan brief ethernet 2/1/2
Port 2/1/2 is a member of 10 VLANs
VLANs 3000 to 3009 
Untagged VLAN   :
Tagged   VLANs  : 3000 to 3009

device# configure terminal <-Configure intermediate R3 RSPAN transit VLANs
device(config)# rspan-transit-vlan 191
device(config-rspan-transit-vlan-191)# tagged ethernet 1/2/1 ethernet 1/1/19
device(config-rspan-transit-191)# exit
device(config)# rspan-transit-vlan 197
device(config-rspan-transit-vlan-197)# tagged ethernet 2/2/1 ethernet 1/1/19
device(config-rspan-transit-vlan-197)# end
History
Release version Command history
08.0.90k This command was introduced.