ERSPAN
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.
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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
monitor session <id> type erspan-sourcePrimary Commands
Configuration and operational commands for this Topic.
monitor session <id> type erspan-sourceReferenceCreate an ERSPAN source session that sends copies over GRE.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixedsource interface <interface>ReferenceSet the source interface of an ERSPAN session.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixeddestinationReferenceEnter the destination configuration of an ERSPAN source session.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixederspan-id <id>ReferenceSet the ERSPAN session ID; it must match on source and destination.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixedip address <destination-ip>ReferenceSet the IP address of the ERSPAN destination.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixedorigin ip address <source-ip>ReferenceSet the source IP address used for ERSPAN GRE packets.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixedno shutdownConfigureEnable an administratively shut down interface.
Use when: Use at the Copper, Fiber and Ethernet Physical Links boundary after prerequisite state is verified.
Quick note: Operational guidance. Link-up does not prove clean signal, correct duplex, sufficient optical margin or loss-free forwarding under load.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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.
Subtopics
Go one level deeper into this subject.
ERSPAN encapsulates mirrored frames in GRE over IP so they can cross routed networks; the extra headers increase packet size, which can cause drops if MTU is too small.
Subtopic SourceThe ERSPAN source session defines which interfaces or VLANs and which direction to mirror, plus the destination IP, ERSPAN ID and origin address.
Subtopic DestinationThe ERSPAN destination session receives GRE-encapsulated mirrored traffic at the remote end, decapsulates it and sends it out to the analyzer port.
Subtopic ERSPAN IDThe ERSPAN ID identifies a mirroring session inside the GRE header so the destination can match it to the right destination session; source and destination must use the same ID.
Subtopic Origin IPThe ERSPAN origin IP address is the source address of the GRE packets sent by the source session; it must be reachable from the destination.
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)
| Point | Detail |
|---|---|
| Catalyst 9200 | Doesn't support ERSPAN |
| Licence | Requires a Cisco DNA licence |
| Encapsulation | GRE (protocol 47); ERSPAN protocol type 0x88be in captures |
Destinations
| Destination | Notes |
|---|---|
| Another switch with an ERSPAN destination session | Decapsulates to a local port |
| An analyser that understands ERSPAN | Wireshark decodes ERSPAN natively |
Considerations
| Consideration | Reason |
|---|---|
| Bandwidth across the WAN | Mirrored traffic can be large; filter sources |
| MTU | GRE plus ERSPAN headers increase packet size |
| QoS | Mark ERSPAN traffic low priority so it can't starve production |
| Security | Mirrored data may be sensitive; keep it on a management path |
Documented example, not captured output.
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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%Quick lookup tables
ERSPAN · operational reference
Compact state and interpretation boundaries for fast lookup.
| ERSPAN layer | Meaning |
|---|---|
| Mirror source | Traffic selected for replication |
| Outer IP/GRE | Routable transport for mirror |
| ERSPAN ID/session | Identifies replicated stream |
| Analyzer | Final receipt/decapsulation, separate evidence |