Use it when a tunnel does not come up because the outer source address is wrong or down.
Tunnel Source
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.
source interface → underlay route → peer destination
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip address 10.255.0.1 255.255.255.252Evidence · 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 interfaces tunnel <n>— Tunnel source addressshow ip route <tunnel-destination>— underlay route
ReferenceWhat it is1 section · depth on demand
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
| Source | Use |
|---|---|
| Physical WAN interface | Single Internet link; the address changes if the interface's address changes |
| Loopback | Several paths to the peer; the tunnel survives one link failing (common inside a private WAN) |
| IP address instead of interface | Fixed source on an interface with several addresses |
Rules
| Rule | Reason |
|---|---|
| The source address must match what the peer has as destination | Otherwise the peer drops the packets |
| The route to the destination must not use the tunnel | Recursive routing brings the tunnel down |
Two tunnels with the same source and destination need a tunnel key | To tell them apart on receipt |
| Behind NAT, the peer's destination is the NAT public address | GRE 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.
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
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 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%