Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Source

Direct answer

The ERSPAN source session defines which interfaces or VLANs and which direction to mirror, plus the destination IP, ERSPAN ID and origin address.

When to use this

Use it when configuring which interfaces ERSPAN mirrors.

First 30 seconds

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.

Operational verification

source ports/VLANs → mirror → ERSPAN

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
Scope / prerequisiteUse it when configuring which interfaces ERSPAN mirrors.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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 Common mistakes Narrow the fault
  • Source and destination ERSPAN IDs not matching.
  • Origin IP not reachable from the destination.
  • Ignoring the GRE overhead on the transport path MTU.
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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • The ERSPAN source session defines source ports, direction, destination IP, ERSPAN ID and origin IP.
  • Configure with monitor session <n> type erspan-source.
  • The destination IP must be routable from the source.
Key checks
  • 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

OptionDetail
source interface ... rx \| tx \| bothPorts to mirror
source vlan <id>Mirror VLANs instead (not mixed with ports)
filterACL, SGT or VLAN filter to reduce the volume
header-type 3ERSPAN 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 (or ipv6 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.

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

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 → 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%
Confirmation

Confirm action

Continue?