Local SPAN works only on a single switch.
But what if your traffic collector is connected to another switch?This is where Remote SPAN (RSPAN) becomes useful.
RSPAN allows you to mirror traffic on one switch and transport that mirrored traffic to another switch using a dedicated VLAN.How Does RSPAN Work?
Look at the topology below.
PC1 sends traffic to a destination in the network through SW1.
Figure 1 – RSPAN traffic flow
Unlike Local SPAN, the mirrored traffic does not go directly to a local interface.
Instead, it is placed into a special VLAN called the RSPAN VLAN.Answer the question below
Which VLAN transports mirrored traffic between switches in RSPAN?
RSPAN VLAN
A dedicated VLAN is created for RSPAN.
This VLAN is used only to transport mirrored traffic across trunk links between switches.
Figure 2 – RSPAN VLAN trunk
Because the RSPAN VLAN is carried over a trunk, the mirrored traffic can travel from the source switch to the destination switch.
This also provides isolation, since the VLAN is reserved for SPAN traffic only.Answer the question below
What type of link carries the RSPAN VLAN between switches?
In our example, traffic from the source interface is mirrored into the RSPAN VLAN and transported across the trunk link.

Figure 3 – RSPAN VLAN mirroring
When the mirrored traffic reaches the destination switch, it is removed from the RSPAN VLAN.

Figure 4 – Traffic forwarded to Traffic Collector
The destination switch then forwards the mirrored traffic to the traffic collector.
Answer the question below
What happens to mirrored traffic when it reaches the destination switch?
Now that you understand how RSPAN works, let’s configure it step by step.
To configure RSPAN, you must complete three main tasks:
Create the RSPAN VLAN
Allow the VLAN on the trunk link
Configure the source and destination sessions

Figure 5 – RSPAN Configuration Topology
Step 1 – Create the RSPAN VLAN
Before anything else, you must create a dedicated VLAN for RSPAN traffic.
In this example, we will use VLAN 999 and configure it as a remote-span VLAN.On SW1
SW1# conf t Enter configuration commands, one per line. End with CNTL/Z. SW1(config)# vlan 999 SW1(config-vlan)# name RSPAN_VLAN SW1(config-vlan)# remote-span SW1(config-vlan)# exitHere, you are telling the switch:
Create VLAN 999
Name it RSPAN_VLAN
Mark it as a remote-span VLAN
Giving the VLAN a name makes your configuration easier to understand later.
On SW2
You must apply the same configuration on the destination switch.
SW2# conf t Enter configuration commands, one per line. End with CNTL/Z. SW2(config)# vlan 999 SW2(config-vlan)# name RSPAN_VLAN SW2(config-vlan)# remote-span SW2(config-vlan)# exitRemember:
The RSPAN VLAN must exist on all switches involved in the RSPAN session.Step 2 – Allow the RSPAN VLAN on the Trunk
Now you must make sure that VLAN 999 is allowed on the trunk link between SW1 and SW2.
If the VLAN is not allowed on the trunk, the mirrored traffic will never reach the destination switch.
Figure 5 – RSPAN Configuration TopologyOn SW1
SW1(config)# int g0/1 SW1(config-if)# switchport trunk encapsulation dot1q SW1(config-if)# switchport mode trunk SW1(config-if)# switchport trunk allowed vlan add 999 SW1(config-if)# exitHere, you are:
Configuring G0/1 as a trunk
Allowing VLAN 999 on the trunk
On SW2
SW2(config)# int g0/1 SW2(config-if)# switchport trunk encapsulation dot1q SW2(config-if)# switchport mode trunk SW2(config-if)# switchport trunk allowed vlan add 999 SW2(config-if)# exitAt this point, the RSPAN VLAN can travel between the two switches.
Step 3 – Configure the RSPAN Source (SW1)
Now you must define what traffic you want to capture.
In this example, we will monitor interface G0/0.SW1(config)# monitor session 1 source interface g0/0 SW1(config)# monitor session 1 destination remote vlan 999 SW1(config)# exitHere’s what you are telling SW1:
Mirror traffic from G0/0
Send the mirrored traffic into VLAN 999
This makes SW1 a Remote Source Session.
Step 4 – Configure the RSPAN Destination (SW2)
On the destination switch, you must tell the switch:
The mirrored traffic is coming from VLAN 999
Send it to the interface connected to the traffic collector
SW2(config)# monitor session 1 source remote vlan 999 SW2(config)# monitor session 1 destination interface g0/2 SW2(config)# exitNow:
VLAN 999 is the RSPAN source
G0/2 is the destination port connected to the traffic collector
SW2 is now acting as a Remote Destination Session.
At this stage, your RSPAN configuration is complete.
The next step is to verify that both switches are correctly configured.Answer the question below
Which keyword converts VLAN 999 into an RSPAN VLAN?
Once the configuration is complete, you should always verify that both switches are correctly configured.
You must check the configuration on both switches because RSPAN involves:
A source switch
A destination switch
Verify the RSPAN Source (SW1)
To verify the source switch, use:
SW1# show monitor session 1 Session 1 --------- Type : Remote Source Session Source Ports : Both : Gi0/0 Dest RSPAN VLAN : 999Let’s analyze this output:
Type : Remote Source Session
This confirms that SW1 is acting as the RSPAN source switch.Both : Gi0/0
This means both incoming (RX) and outgoing (TX) traffic are being mirrored from interface G0/0.Dest RSPAN VLAN : 999
This confirms that the mirrored traffic is being sent into VLAN 999.
If you see this output, SW1 is correctly configured as the RSPAN source.
Verify the RSPAN Destination (SW2)
Now verify the destination switch:
SW2# show monitor session 1 Session 1 --------- Type : Remote Destination Session Source RSPAN VLAN : 999 Destination Ports : Gi0/2 Encapsulation : NativeHere is what you should check:
Type : Remote Destination Session
This confirms that SW2 is acting as the RSPAN destination switch.Source RSPAN VLAN : 999
This shows that SW2 is receiving mirrored traffic from VLAN 999.Destination Ports : Gi0/2
This confirms that the mirrored traffic is being forwarded to interface G0/2, where the traffic collector is connected.
If these values match your configuration, your RSPAN session is operating correctly.
Answer the question below
What session type should appear on SW1 during RSPAN verification?
Answer the question below
Which encapsulation does SW2 apply to the mirrored frames it sends out of Gi0/2?