Use it when configuring which interfaces ERSPAN mirrors.
Source
1. ERSPAN source defines what is mirrored (interfaces, VLANs, direction).
2. Keep scope small.
3. Filter with ACLs if supported.
4. Watch oversubscription.
5. Remove sessions after use.
source ports/VLANs → mirror → ERSPAN
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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 Common mistakes Narrow the fault
Step 2 Where it fails Narrow the fault
Closure requires original-test success plus independent verification that no collateral route, VLAN, peer, tunnel, queue, security policy or redundant path regressed. For Source, document the exact failure point and why adjacent layers are excluded. Source-backed expectations remain separate from observed Evidence.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
show monitor session <n>— source interfaces/VLANs and direction
ReferenceWhat it is1 section · depth on demand
Source session example
monitor session 1 type erspan-source
source interface GigabitEthernet1/0/10 both
filter vlan 10
destination
erspan-id 10
ip address 10.99.0.50
origin ip address 10.0.0.1
no shutdown
Documented example, not captured output. Mirroring both directions of busy ports can exceed the uplink capacity; mirrored traffic has lower priority and may be dropped first.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
The ERSPAN source session defines what is mirrored and where it is tunnelled
ERSPAN wraps mirrored frames in GRE and routes them to a collector anywhere on the IP network. On Catalyst 9300 the configuration guide describes the source session:
C9300(config)# monitor session 10 type erspan-source
C9300(config-mon-erspan-src)# description Mirror server uplink to analyser
C9300(config-mon-erspan-src)# source interface Gi1/0/24 both
C9300(config-mon-erspan-src)# filter ip access-group ERSPAN-FILTER
C9300(config-mon-erspan-src)# destination
C9300(config-mon-erspan-src-dst)# erspan-id 10
C9300(config-mon-erspan-src-dst)# ip address 10.20.30.40
C9300(config-mon-erspan-src-dst)# origin ip address 10.0.0.11
C9300(config-mon-erspan-src-dst)# ip ttl 32
C9300(config-mon-erspan-src-dst)# ip dscp 0
C9300(config-mon-erspan-src-dst)# exit
C9300(config-mon-erspan-src)# no shutdown
C9300# show monitor session 10
Source options
| Option | Detail |
|---|---|
source interface ... rx \| tx \| both | Ports to mirror |
source vlan <id> | Mirror VLANs instead (not mixed with ports) |
filter | ACL, SGT or VLAN filter to reduce the volume |
header-type 3 | ERSPAN Type III; Type II is the default |
Documented restrictions
- Session ID and type can't be changed after creation. Remove and recreate the session.
- Disabling
ip routing(oripv6 unicast-routing) stops ERSPAN traffic. - Sessions restored from a backup configuration come up disabled and must be enabled.
- ERSPAN does not support QoS shaping or policing of the mirrored traffic.
- Source sessions do not copy locally sourced ERSPAN GRE traffic or RSPAN VLAN traffic.
Platform notes from Cisco TAC
Cisco's SPAN and ERSPAN verification guide for Catalyst 9000 notes that the Catalyst 9200 does not support ERSPAN, and that a DNA Advantage licence is required on platforms that do.
Size filters so the mirrored stream fits the path to the collector. ERSPAN traffic competes with production traffic on every routed hop.
Documented example, not captured output.
Quick reference
The ERSPAN source is the switch or router where traffic is copied and encapsulated. Its session defines what to mirror, where to send it and which identifier to use. Many platforms create these sessions in a disabled state, so enabling the session is part of the configuration.
ERSPAN source session (IOS XE):
monitor session 10 type erspan-source
source interface Gi1/0/5 both
destination
erspan-id 10
ip address 10.50.0.20
origin ip address 10.255.0.11
no shutdown
show monitor session 10
Sessions are created shut by default on many platforms — no shutdown is easy to forget.
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 → Source. 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%