Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

RSPAN

Direct answer

RSPAN copies traffic on one switch into a dedicated remote-span VLAN, which trunks carry to another switch where it is sent out of a destination port to the analyser.

When to use this

Use it when the analyser is on a different switch from the traffic, within the same switched network.

First 30 seconds

1. Source switch: show monitor session <n> detail — sources and the RSPAN VLAN as destination?

2. show vlan remote-span on every switch on the path.

3. show interfaces trunk — the VLAN allowed and forwarding on each trunk?

4. Destination switch: session with the RSPAN VLAN as source and the analyser port as destination?

5. Destination port's output counters rising?

Operational verification

session configured → source ports or VLANs and direction → (RSPAN VLAN carried / ERSPAN GRE tunnel reachable) → destination port up → copies leave the destination → analyser captures them

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Key commandvlan <id>
Scope / prerequisiteUse it when the analyser is on a different switch from the traffic, within the same switched network.
Show · 1Reference · 4
What next?3 suggested next steps
Child topics (this level)4
Catalog command links5
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 First 30 seconds Verify boundary

Immediate answer: Verify source session, RSPAN VLAN carriage and destination session independently before trusting a remote packet capture.

Verification chain: source frames → source SPAN session → RSPAN VLAN → trunk/STP path → destination SPAN session → analyzer capture

Stop condition: An active source session does not show the RSPAN VLAN traverses every switch or that the analyzer receives the frames.

Step 2 Verification and output interpretation Verify boundary

Verify show monitor session on both source and destination switches, then confirm the RSPAN VLAN exists with the correct special designation and is allowed/forwarding across each intermediate trunk. Analyzer traffic on the destination port should correlate with known source flows. If the source session appears healthy but the analyzer is empty, move through the transport chain: RSPAN VLAN presence, trunk allowed list, STP forwarding state and destination-session mapping. Interface counters on intermediate trunks can provide supporting evidence but do not identify RSPAN frames by themselves unless filtered/captured. A healthy RSPAN control configuration does not show lossless mirrored transport under congestion.

Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

The VLAN must be created with remote-span on every switch it crosses, and allowed on every trunk on the path. It carries only mirrored traffic — no hosts in it. MAC learning is disabled in it.

Key checks
  • show monitor session all — every session with sources, direction and destination.
  • show monitor session <n> detail — full detail, including VLANs and filters.
  • show vlan remote-span — VLANs marked for RSPAN.
  • show interfaces <destination> counters — whether copies are being sent out.
  • show interfaces trunk — the RSPAN VLAN carried on the trunks.
ReferenceWhat it is1 section · depth on demand
ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

RSPAN: remote SPAN across switches

RSPAN carries mirrored traffic over a dedicated VLAN to an analyser on another switch. Cisco's SPAN technote explains the mechanics: the RSPAN VLAN must be created as a remote-span VLAN, all inter-switch links carrying it must be trunks, a source session on the switch with the monitored ports sends copies into the VLAN, and a destination session on the analyser's switch takes them out to a port; intermediate switches just carry the VLAN.

Behaviour (technote)

PointDetail
MAC learningDisabled on the RSPAN VLAN so traffic floods to the destination
FloodingMirrored traffic reaches every switch carrying the VLAN; prune it where not needed
STPRuns on the RSPAN VLAN; BPDUs can't be monitored
Layer 2 onlyRSPAN can't cross a Layer 3 device; use ERSPAN for routed paths
VTPCan span VTP domains if the RSPAN VLAN exists in each and no router is in between
SW-SRC(config)# vlan 999
SW-SRC(config-vlan)# name RSPAN
SW-SRC(config-vlan)# remote-span
SW-SRC(config)# monitor session 2 source interface GigabitEthernet1/0/5 both
SW-SRC(config)# monitor session 2 destination remote vlan 999
SW-SRC(config)# interface TenGigabitEthernet1/1/1
SW-SRC(config-if)# switchport trunk allowed vlan add 999
SW-DST(config)# vlan 999
SW-DST(config-vlan)# remote-span
SW-DST(config)# monitor session 3 source remote vlan 999
SW-DST(config)# monitor session 3 destination interface GigabitEthernet1/0/48
SW-DST# show monitor session 3
Session 3
---------
Type                     : Remote Destination Session
Source RSPAN VLAN        : 999
Destination Ports        : Gi1/0/48

Design considerations

ConsiderationReason
Trunk bandwidthMirrored traffic competes with production traffic on uplinks
Prune the RSPAN VLANLimit flooding to the path towards the analyser
Dedicated VLAN numberDocument it; never use it for hosts
Platform supportCheck RSPAN support and session limits per switch

RSPAN is useful for central analysers (IDS, troubleshooting probes) in a campus; for captures across sites, use ERSPAN.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

RSPAN mirrors traffic to an analyser on a different switch by carrying the copies in a dedicated RSPAN VLAN across trunks. The source switch puts copies into the VLAN; the destination switch sends them out its analyser port.

vlan 900
 remote-span
! source switch
monitor session 1 source interface Gi1/0/10 both
monitor session 1 destination remote vlan 900
! destination switch
monitor session 1 source remote vlan 900
monitor session 1 destination interface Gi1/0/48

Documented example, not captured output.

Every trunk between the switches must allow the RSPAN VLAN, and mirrored traffic competes for trunk bandwidth.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

State model and protocol mechanics

Remote SPAN separates the mirror source and analyzer onto different switches by using a special RSPAN VLAN as the transport. The source switch copies selected traffic into that VLAN, intermediate switches carry the VLAN across trunks, and the destination switch maps the RSPAN VLAN to a local analyzer port. The VLAN is flagged for RSPAN behavior so MAC learning and ordinary endpoint semantics differ from a standard user VLAN. Because transport is Layer 2, every trunk in the path must carry the RSPAN VLAN and the remote switches must agree on its identity. Mirrored bandwidth still consumes trunk capacity, and congestion can drop the copy independently of original production traffic.

Limits and common misconceptions

RSPAN is not a routed remote capture mechanism. It depends on a contiguous Layer 2 transport for the dedicated VLAN; crossing a Layer 3 boundary requires a different mechanism such as ERSPAN. The mirrored VLAN should not be treated like a user VLAN, and its presence in the VLAN database does not show every trunk forwards it. As with SPAN, mirror loss can occur independently of production loss. A packet missing from the remote analyzer might have been dropped in the mirror transport even though the original reached its destination. Keep source replication, Layer 2 transport, destination replication and analyzer capture as separate evidence stages.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Create and mark a dedicated VLAN as the RSPAN VLAN on all relevant switches, ensure it is allowed through the required trunks, configure the source session to send mirrored traffic into that VLAN, and configure the destination session to receive from the RSPAN VLAN into the analyzer port. Keep the VLAN out of normal access-port usage and document its operational purpose. Select source direction carefully because sending both directions from high-volume links can consume significant trunk bandwidth. In redundant Layer 2 topologies, understand the active forwarding path for the RSPAN VLAN so the mirror actually reaches the analyzer switch. Do not assume VTP or another provisioning mechanism automatically makes the VLAN usable end to end without validating trunk allowance and spanning-tree state.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Network Assurance → RSPAN. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Embedded reference data

Quick lookup tables

RSPAN · operational reference

Compact state and interpretation boundaries for fast lookup.

RSPAN stageCanonical evidence
Source switchSession mirrors into RSPAN VLAN
RSPAN VLANMarked remote-span, not user access
Intermediate trunksVLAN allowed and STP forwarding
Destination switchVLAN mapped to local analyzer port
Confirmation

Confirm action

Continue?