Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

ERSPAN

Direct answer

ERSPAN copies traffic on one device, wraps it in GRE and sends it to an IP address — another device or an analyser — so mirrored traffic can cross routed networks.

When to use this

Use it when the analyser is in another subnet or site, beyond the reach of SPAN or RSPAN.

First 30 seconds

1. show monitor session <n> detail — type erspan-source, sources, destination IP, origin IP, ERSPAN ID?

2. Destination IP reachable from the origin address?

3. Receiving device: an erspan-destination session with the same ERSPAN ID?

4. Analyser receiving GRE but no frames → it must decode ERSPAN, or the IDs differ.

5. Large frames missing → MTU on the path.

Operational verification

erspan-source session with sources, origin IP, destination IP and ID → GRE packets routed to the destination → (erspan-destination session with matching ID, or an analyser decoding ERSPAN) → frames delivered

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 commandmonitor session <id> type erspan-source
Scope / prerequisiteUse it when the analyser is in another subnet or site, beyond the reach of SPAN or RSPAN.
Configure · 1Show · 1Reference · 6
What next?3 suggested next steps
Child topics (this level)5
Catalog command links8
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.

3 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 selection, ERSPAN session state, underlay route and analyzer decapsulation before interpreting a missing capture.

Verification chain: source frames → ERSPAN session → GRE encapsulation → underlay route → remote decapsulation → analyzer capture

Stop condition: A configured ERSPAN session does not show the GRE path or remote analyzer is receiving mirrored traffic.

Step 2 Verification and output interpretation Verify boundary

Use show monitor session and ERSPAN-specific session output to verify source selection, direction, origin IP, destination IP and identifiers. Confirm the outer destination is reachable through the intended route and that the source address used by the ERSPAN packets is valid. Packet capture in the underlay can show GRE/ERSPAN packets leave the source, while the analyzer shows arrival and decapsulation. If local source counters increase but no ERSPAN packets leave, inspect session state; if encapsulated packets leave but the analyzer is empty, move to underlay routing, policy, MTU and receiver configuration. Compare capture rate with source volume when fidelity matters.

Step 3 Step-by-step troubleshooting Narrow the fault

Boundary rule: A configured ERSPAN session does not show the GRE path or remote analyzer is receiving mirrored traffic.

Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

The source session needs an origin IP, a destination IP and an ERSPAN ID that the receiving end expects. The encapsulation adds about 50 bytes; large frames may be dropped. Mirrored traffic uses bandwidth on every link it crosses.

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

What it is

SPAN mirrors locally, RSPAN transports mirrored frames over a dedicated VLAN, and ERSPAN carries mirrored traffic over an IP/GRE path.

Path: Networking → Network Assurance → ERSPAN. Local intent: ERSPAN: GRE Encapsulation, Source, Destination, ERSPAN ID.

ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

ERSPAN: mirroring across routed networks

ERSPAN encapsulates mirrored traffic in GRE so it can be routed to an analyser anywhere. Cisco's Catalyst 9000 SPAN technote shows an ERSPAN source session (type erspan-source) with a source VLAN and a destination block setting the ERSPAN ID, the destination IP and the origin IP, and a matching erspan-destination session on the receiving switch; the ERSPAN ID must match on both sides. The traffic travels in GRE (IP protocol 47).

SW-SRC(config)# monitor session 4 type erspan-source
SW-SRC(config-mon-erspan-src)# source vlan 110 rx
SW-SRC(config-mon-erspan-src)# destination
SW-SRC(config-mon-erspan-src-dst)# erspan-id 40
SW-SRC(config-mon-erspan-src-dst)# ip address 10.99.0.40
SW-SRC(config-mon-erspan-src-dst)# origin ip address 10.255.0.11
SW-SRC(config-mon-erspan-src)# no shutdown
SW-DST(config)# monitor session 4 type erspan-destination
SW-DST(config-mon-erspan-dst)# destination interface TwentyFiveGigE1/0/3
SW-DST(config-mon-erspan-dst)# source
SW-DST(config-mon-erspan-dst-src)# erspan-id 40
SW-DST(config-mon-erspan-dst-src)# ip address 10.99.0.40
SW-SRC# show monitor session 4
Session 4
---------
Type                     : ERSPAN Source Session
Status                   : Admin Enabled
Source VLANs             :
    RX Only              : 110
Destination IP Address   : 10.99.0.40
Origin IP Address        : 10.255.0.11
ERSPAN ID                : 40

Platform notes (technote)

PointDetail
Catalyst 9200Doesn't support ERSPAN
LicenceRequires a Cisco DNA licence
EncapsulationGRE (protocol 47); ERSPAN protocol type 0x88be in captures

Destinations

DestinationNotes
Another switch with an ERSPAN destination sessionDecapsulates to a local port
An analyser that understands ERSPANWireshark decodes ERSPAN natively

Considerations

ConsiderationReason
Bandwidth across the WANMirrored traffic can be large; filter sources
MTUGRE plus ERSPAN headers increase packet size
QoSMark ERSPAN traffic low priority so it can't starve production
SecurityMirrored data may be sensitive; keep it on a management path

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

ERSPAN encapsulates mirrored traffic in GRE so it can be routed across Layer 3 networks to a remote analyser. The source session specifies the destination IP, ERSPAN ID and origin IP; the receiver can be another switch or a capture tool that decodes ERSPAN.

monitor session 1 type erspan-source
 source interface Gi1/0/10 both
 destination
  erspan-id 10
  ip address 10.0.0.40
  origin ip address 10.0.0.1
 no shutdown

Documented example, not captured output.

Wireshark decodes ERSPAN natively, so a capture server can receive it without a destination switch.

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

Encapsulated Remote SPAN copies selected source traffic and carries the mirror through a routable IP underlay using GRE-based ERSPAN encapsulation. The source device wraps mirrored frames with outer IP/GRE/ERSPAN headers, the network routes those packets toward an ERSPAN destination or analyzer, and the receiver decapsulates or captures them. Session/ERSPAN IDs help correlate the encapsulated mirror stream. Because the mirrored traffic now depends on an IP path, underlay routing, source-address selection, ACLs and MTU become part of the observation pipeline. ERSPAN can therefore cross Layer 3 boundaries that RSPAN cannot, but it is not independent of the production or management network carrying the encapsulated copy.

Limits and common misconceptions

ERSPAN is still a mirrored copy, not an inline record of forwarding, and the copy can be lost independently of original traffic. Outer-path reachability does not guarantee the analyzer can decode the configured ERSPAN type/session. GRE encapsulation adds overhead, so a path that carries ordinary 1500-byte traffic can still drop or fragment larger ERSPAN packets. Successful ERSPAN delivery shows the mirror path worked for observed copies, not that every source packet was replicated. Do not infer production packet loss from gaps in ERSPAN until mirror-source capacity, underlay loss and analyzer performance have been considered.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Choose source interfaces/VLANs and direction as with SPAN, then configure an intentional ERSPAN origin/source IP, destination IP and ERSPAN/session identifiers that match the receiving analyzer or destination device. Ensure the outer IP path is routable and that any firewall/ACL policy permits the GRE-based traffic. Account for additional encapsulation overhead when the monitored traffic may already approach path MTU; fragmentation or drops in the mirror path can reduce capture fidelity. If the platform supports source interfaces or VRFs, bind them deliberately so path selection is stable. Limit high-volume sessions because mirrored packets consume underlay bandwidth and may contend with other traffic.

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 → ERSPAN. 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

ERSPAN · operational reference

Compact state and interpretation boundaries for fast lookup.

ERSPAN layerMeaning
Mirror sourceTraffic selected for replication
Outer IP/GRERoutable transport for mirror
ERSPAN ID/sessionIdentifies replicated stream
AnalyzerFinal receipt/decapsulation, separate evidence
Confirmation

Confirm action

Continue?