Use it when creating or troubleshooting a GRE or IPsec tunnel interface.
Tunnel Interface
A tunnel interface (interface Tunnel<n>) is a virtual interface with its own IP address; routing sends traffic into it and the router encapsulates it in GRE.
1. A tunnel interface is a logical interface with source and destination.
2. Up/up when the destination is routable (keepalives optional).
3. Has its own IP.
4. Routing protocols run over it.
5. Avoid learning the destination via the tunnel.
tunnel config → destination routable → up/up → routing over tunnel
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show interfaces Tunnel0Verification & 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 interfaces Tunnel0
show ip interface brief | include Tunnel
ping 172.16.0.2 source Tunnel0
show interfaces Tunnel0 | include packets|drops
"Tunnel0 is up, line protocol is down" usually means the destination is unreachable or keepalives fail; "%TUN-5-RECURDOWN" means recursive routing.
Step 2 Common mistakes Narrow the fault
- Tunnel source as a physical interface that can go down; use a loopback.
- Running a routing protocol that learns the tunnel destination via the tunnel.
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 interfaces tunnel <n>— up/up, source, destinationshow ip interface brief | include Tunnel— status
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
The tunnel interface: a virtual point-to-point link
On Cisco IOS XE, a GRE tunnel is configured as a Tunnel interface. It has its own IP address, appears in the routing table, and can run routing protocols. Packets routed into it are encapsulated as RFC 2784 describes: delivery (outer) IP header, GRE header, payload.
R1(config)# interface Tunnel10
R1(config-if)# description GRE to site B
R1(config-if)# ip address 172.31.10.1 255.255.255.252
R1(config-if)# ipv6 address 2001:db8:ff:10::1/64
R1(config-if)# tunnel source Loopback0
R1(config-if)# tunnel destination 203.0.113.2
R1(config-if)# tunnel mode gre ip
R1(config-if)# ip mtu 1400
R1(config-if)# ip tcp adjust-mss 1360
R1(config-if)# keepalive 10 3
R1(config)# router ospf 1
R1(config-router)# network 172.31.10.0 0.0.0.3 area 0
R1# show interfaces Tunnel10
Tunnel10 is up, line protocol is up
Hardware is Tunnel
Internet address is 172.31.10.1/30
MTU 9976 bytes, BW 100 Kbit/sec, DLY 50000 usec,
Encapsulation TUNNEL, loopback not set
Tunnel source 198.51.100.2 (GigabitEthernet0/0/0), destination 203.0.113.2
Tunnel protocol/transport GRE/IP
Key disabled, sequencing disabled
Checksumming of packets disabled
Tunnel TTL 255, Fast tunneling enabled
Tunnel transport MTU 1476 bytes
R1# show ip ospf neighbor Tunnel10
Key settings
| Setting | Purpose |
|---|---|
ip address | The tunnel's inner subnet (often a /30 or /31) |
tunnel source | The local outer address (interface or IP) |
tunnel destination | The remote outer address |
tunnel mode | gre ip (default), gre ipv6, gre multipoint (DMVPN), ipsec ipv4 (VTI) |
ip mtu / ip tcp adjust-mss | Avoid fragmentation of tunnelled packets |
keepalive | Detects a dead far end; without it a GRE tunnel stays up/up as long as the source is up and a route to the destination exists |
Interface state
| State | Typical reason |
|---|---|
| up/up | Source up and a route to the destination exists |
| up/down | No route to the destination, keepalives failing, or recursive routing |
Bandwidth
Tunnel interfaces default to a low bandwidth value (100 kb/s above). EIGRP, OSPF cost and QoS percentages use it, so set bandwidth to the real path capacity.
Recursive routing
The tunnel destination must be reachable through the underlying network, not through the tunnel. If a routing protocol learns the destination over the tunnel itself, the tunnel goes down (%TUN-5-RECURDOWN). Filter the destination prefix from the tunnel's routing protocol, or use a static route.
Documented example, not captured output.
Quick reference
A tunnel interface is a virtual point-to-point link built on top of an existing IP network. GRE, the simplest tunnelling protocol, wraps the original packet in a new IP header so it can cross networks that could not carry it directly. The tunnel then behaves like a normal interface: it gets an IP address, routing protocols can run over it, and routes can point into it.
A GRE tunnel interface is a logical point-to-point interface that encapsulates packets in IP protocol 47.
interface Tunnel10
ip address 172.31.10.1 255.255.255.252
ip mtu 1400
ip tcp adjust-mss 1360
tunnel source Loopback0
tunnel destination 203.0.113.20
keepalive 5 3
show interfaces Tunnel10
show ip route 172.31.10.0
The tunnel line protocol is up as soon as a route to the destination exists, unless keepalives are configured — without them a dead far end can keep attracting traffic.
ReferenceConfiguration & state1 section · depth on demand
Configuration
interface Tunnel0
ip address 172.16.0.1 255.255.255.252
tunnel source GigabitEthernet0/0/0
tunnel destination 198.51.100.2
ip mtu 1400
ip tcp adjust-mss 1360
keepalive 10 3
Documented example, not captured output. The tunnel is up/up once the destination is routable (and keepalives answer, if enabled). Do not route the tunnel destination through the tunnel itself, or it flaps with "recursive routing".
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 Interface. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2784.html · confidence 94%