Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Tunnel Source

Direct answer

The tunnel source is the local underlay address or interface used as the outer source IP (tunnel source <if|ip>); it must be the address the far end uses as its destination.

When to use this

Use it when a tunnel does not come up because the outer source address is wrong or down.

First 30 seconds

1. Tunnel source should be a stable interface (loopback).

2. Must match the peer's destination.

3. Underlay must route it.

4. Source down means tunnel down.

5. Use VRF-aware tunnel source where needed.

Operational verification

source interface → underlay route → peer destination

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Tunnel source an interface whose IP changes (DHCP) without updating the peer's destination.
  • Source behind NAT without GRE NAT support — use IPsec with NAT-T or a different design.
  • Source interface down while another path exists — use a loopback with routing.
Platform / version applicability
Protocol standard + deployed implementation
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.

PlatformProtocol standard · IOS/IOS XE
Key commandip address 10.255.0.1 255.255.255.252
Scope / prerequisiteUse it when a tunnel does not come up because the outer source address is wrong or down.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
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
  • GRE uses IP protocol 47, not TCP/UDP port 47
  • Tunnel line protocol depends on local source and recursive reachability to the destination
  • GRE adds overhead and can expose MTU, MSS and fragmentation problems
  • GRE alone provides no encryption, integrity or peer authentication.
Key checks
  • show interfaces tunnel <n> — Tunnel source address
  • show ip route <tunnel-destination> — underlay route
ReferenceWhat it is1 section · depth on demand

Choosing the source

Use an interface or loopback that is reachable from the peer and stable. On the far end, tunnel destination must equal this address (after any NAT). With several WAN links, a loopback source plus routing gives resilience; with DHCP addresses, use the interface name as source.

ReferenceWhy it matters1 section · depth on demand

When to use it

Use GRE when an overlay must carry routing or multicast across an IP underlay; add separate protection when confidentiality is required.

ReferenceImportant terms & boundaries2 sections · depth on demand

Quick reference

The tunnel source and destination define the two ends of the tunnel in the underlying network. They must be reachable through the normal routing table — not through the tunnel itself, or the tunnel collapses as soon as it comes up. Choosing a stable source address and protecting the route to the destination are the main design decisions.

The tunnel source is the local address used in the outer IP header; the far end's tunnel destination must match it.

Good practice: use a loopback (stable, reachable over several paths) or the WAN interface for internet tunnels. Avoid recursive routing: if the route to the tunnel destination is learned through the tunnel itself, the tunnel flaps (%TUN-5-RECURDOWN). Fix with a static route for the destination via the physical next hop, or filter the destination prefix out of the routing protocol running over the tunnel.

In depth

Tunnel source and destination: the outer header addresses

RFC 2784 describes a GRE packet as a delivery header, a GRE header and the payload. On Cisco IOS XE, tunnel source and tunnel destination fill in the delivery header's source and destination addresses. They must be reachable addresses in the underlying (transport) network.

R1(config)# interface Tunnel10
R1(config-if)# tunnel source GigabitEthernet0/0/0
R1(config-if)# tunnel destination 203.0.113.2
R2(config)# interface Tunnel10
R2(config-if)# tunnel source 203.0.113.2
R2(config-if)# tunnel destination 198.51.100.2
R1# show interfaces Tunnel10 | include Tunnel source
  Tunnel source 198.51.100.2 (GigabitEthernet0/0/0), destination 203.0.113.2
R1# show ip route 203.0.113.2
Routing entry for 0.0.0.0/0, supernet
  Known via "static", distance 1, metric 0, candidate default path
  * 198.51.100.1, via GigabitEthernet0/0/0

Each end's source is the other end's destination.

Choosing the source

SourceUse
Physical WAN interfaceSingle Internet link; the address changes if the interface's address changes
LoopbackSeveral paths to the peer; the tunnel survives one link failing (common inside a private WAN)
IP address instead of interfaceFixed source on an interface with several addresses

Rules

RuleReason
The source address must match what the peer has as destinationOtherwise the peer drops the packets
The route to the destination must not use the tunnelRecursive routing brings the tunnel down
Two tunnels with the same source and destination need a tunnel keyTo tell them apart on receipt
Behind NAT, the peer's destination is the NAT public addressGRE has no ports, so only one-to-one NAT works; PAT breaks plain GRE

Firewalls

Allow IP protocol 47 between the two outer addresses. With GRE over IPsec, the outer traffic is ESP (protocol 50) plus UDP 500 and 4500 for IKE and NAT traversal instead.

Dynamic addresses

If a site's outer address is assigned by DHCP, the remote side can't use a fixed tunnel destination. DMVPN (multipoint GRE) or a dynamic VTI on a hub handles that case.

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.
ReferenceConfiguration & state1 section · depth on demand

Configuration

interface Tunnel0
 ip address 10.255.0.1 255.255.255.252
 tunnel source Loopback0
 tunnel destination 198.51.100.2
interface Loopback0
 ip address 203.0.113.1 255.255.255.255

Documented example, not captured output. A loopback source keeps the tunnel up when one physical interface fails, if the loopback is reachable via another path.

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 docProtocol standard + deployed implementation RFC 2784

Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → GRE → Tunnel Source. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc2784.html · confidence 94%
Confirmation

Confirm action

Continue?