Use it when ERSPAN packets do not reach the destination because of the source address.
Origin IP
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.
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.
origin IP → routed path → destination
Context & applicabilityCommon mistakes · platform/version boundaries
- Origin IP on an interface that goes down.
- Origin IP not routable to the destination.
- Source address changes after reloads, breaking collector filters.
Operational reference
Fast context before you go deeper.
show monitor session 10 detailVerification & 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 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 · 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> detail— origin ip addressping <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
| Layer | Content |
|---|---|
| Outer IP | src = origin IP (10.0.0.11), dst = 10.20.30.40, protocol 47 (GRE), DSCP/TTL from the session |
| GRE | Protocol type for ERSPAN |
| ERSPAN header | Session ID (erspan-id), version (Type II or III) |
| Inner frame | The mirrored Ethernet frame |
Choosing the origin IP
| Choice | Reason |
|---|---|
| A loopback address | Stays up regardless of physical interface state |
| Reachable from the collector's network | Return routing is not needed for GRE, but firewalls and ACLs filter by source |
| In the right VRF | Use vrf when the collector sits in a management VRF |
| Unique per switch | The 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.
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.
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 → 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%