Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Origin IP

Direct answer

The ERSPAN origin IP address is the source address of the GRE packets sent by the source session; it must be reachable from the destination.

When to use this

Use it when ERSPAN packets do not reach the destination because of the source address.

First 30 seconds

1. The origin IP is the source address of ERSPAN packets.

2. Must be routable to the destination.

3. Use a loopback.

4. Filtering may block it.

5. Match ACLs on the path.

Operational verification

origin IP → routed path → destination

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Origin IP on an interface that goes down.
  • Origin IP not routable to the destination.
  • Source address changes after reloads, breaking collector filters.
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 commandshow monitor session 10 detail
Scope / prerequisiteUse it when ERSPAN packets do not reach the destination because of the source address.
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.

1 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 Checks Verify boundary
show monitor session 10 detail
ping 10.99.0.50 source <origin-ip>

The origin IP must be configured on the device (loopback or interface) and reachable from the collector's network for any return traffic or troubleshooting.

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 origin IP is the source address of the GRE packets.
  • Usually a loopback on the source switch.
  • It must be reachable from the destination.
Key checks
  • show monitor session <n> detail — origin ip address
  • ping <destination> source <origin-ip> — reachability
ReferenceWhat it is1 section · depth on demand

Requirements

The origin IP becomes the source of the GRE packets. It should be a stable address on the source switch (often a loopback) that is routable to the collector, and allowed through firewalls and ACLs on the path. ERSPAN adds about 50 bytes; if the path MTU is too small, mirrored packets are dropped or truncated.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

The origin IP is the source address of the GRE tunnel

The Catalyst 9300 ERSPAN guide explains that the destination IP and the origin IP form the outer GRE envelope: destination address and source address, respectively. The optional ip dscp and ip ttl values also apply to that outer header. Encapsulation follows GRE as defined in RFC 2784.

C9300(config)# interface Loopback0
C9300(config-if)# ip address 10.0.0.11 255.255.255.255
C9300(config)# monitor session 10 type erspan-source
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)# vrf MGMT

Packet on the wire

LayerContent
Outer IPsrc = origin IP (10.0.0.11), dst = 10.20.30.40, protocol 47 (GRE), DSCP/TTL from the session
GREProtocol type for ERSPAN
ERSPAN headerSession ID (erspan-id), version (Type II or III)
Inner frameThe mirrored Ethernet frame

Choosing the origin IP

ChoiceReason
A loopback addressStays up regardless of physical interface state
Reachable from the collector's networkReturn routing is not needed for GRE, but firewalls and ACLs filter by source
In the right VRFUse vrf when the collector sits in a management VRF
Unique per switchThe collector can tell sources apart

Firewalls and ACLs

Permit IP protocol 47 from the origin IP to the destination IP along the path. ERSPAN does not use TCP or UDP ports.

Overhead

GRE plus the ERSPAN header adds tens of bytes per frame. Full-size mirrored frames on a path with MTU 1500 get fragmented or dropped. Raise the MTU on the path, or use the session's mtu option to truncate mirrored frames.

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 origin IP address is the source address placed on ERSPAN packets. It should be a stable address — normally a loopback — that the analyser and any firewalls in between expect and allow.

The origin IP address is the outer source of the ERSPAN GRE packets — normally a loopback reachable from the analyser.

origin ip address 10.255.0.11

If firewalls sit between source and analyser, allow GRE from this address; mismatches between the configured origin and the routed path cause RPF or firewall drops.

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 → Origin IP. 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?