Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Tunnel Interface

Direct answer

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.

When to use this

Use it when creating or troubleshooting a GRE or IPsec tunnel interface.

First 30 seconds

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.

Operational verification

tunnel config → destination routable → up/up → routing over tunnel

Context & applicabilityCommon mistakes · platform/version boundaries
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 · Cisco IOS XE
Key commandshow interfaces Tunnel0
Scope / prerequisiteUse it when creating or troubleshooting a GRE or IPsec tunnel interface.
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.

2 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 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
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> — up/up, source, destination
  • show ip interface brief | include Tunnel — status
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

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

SettingPurpose
ip addressThe tunnel's inner subnet (often a /30 or /31)
tunnel sourceThe local outer address (interface or IP)
tunnel destinationThe remote outer address
tunnel modegre ip (default), gre ipv6, gre multipoint (DMVPN), ipsec ipv4 (VTI)
ip mtu / ip tcp adjust-mssAvoid fragmentation of tunnelled packets
keepaliveDetects 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

StateTypical reason
up/upSource up and a route to the destination exists
up/downNo 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
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 Interface. 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?