Free tech learning for everyone, from basics to pro

Routing & SwitchingNetworking SecurityIntermediate

IPv6 over IPv4 tunnels on Cisco IOS: manual 6in4, GRE and the legacy automatic types

In short: When two IPv6 networks are separated by an IPv4-only path, a tunnel wraps each IPv6 packet in an IPv4 packet. Manual 6in4 tunnels (protocol 41) and GRE tunnels are simple to build on Cisco IOS. Automatic types such as 6to4 and ISATAP still appear in old documentation but are deprecated or rarely used today.

When you need a tunnel

The best way to run IPv6 is dual stack: every link and device runs IPv4 and IPv6 side by side. Sometimes that is not possible yet, for example when a branch connects over an IPv4-only provider network, or when a lab needs IPv6 across an old core. A tunnel lets the two IPv6 islands talk while the path in the middle stays IPv4.

IPv6 carried inside IPv4 (6in4)IPv4 headerprotocol 41, tunnel endpointsIPv6 headerreal source and destinationTCP or UDPthe application data
Figure 1. A manual 6in4 tunnel adds a 20-byte IPv4 header. GRE adds 4 more bytes for its own header.

Manual 6in4 tunnel

A manual tunnel is a point-to-point link with fixed IPv4 endpoints. The IPv6 packet goes straight inside IPv4 with protocol number 41:

interface Tunnel0
 description IPv6 to Branch-2
 ipv6 address 2001:db8:ff:1::1/64
 tunnel source GigabitEthernet0/1
 tunnel destination 203.0.113.20
 tunnel mode ipv6ip
!
ipv6 route 2001:db8:20::/48 Tunnel0

The other router mirrors this with the source and destination swapped. You can run OSPFv3 or EIGRP for IPv6 over the tunnel instead of static routes. Some firewalls and NAT devices drop protocol 41 because it is neither TCP nor UDP, so check the path first.

GRE tunnel carrying IPv6

A GRE tunnel (tunnel mode gre ip, the default) can carry IPv6, IPv4 and multicast at the same time. That makes it a good choice when you also need to run routing protocols for both versions over the same tunnel:

interface Tunnel1
 ip address 10.255.1.1 255.255.255.252
 ipv6 address 2001:db8:ff:2::1/64
 tunnel source GigabitEthernet0/1
 tunnel destination 203.0.113.20

MTU: the usual problem

IPv6 routers never fragment packets in transit. If the tunnel adds 20 or 24 bytes and the path MTU is 1500, packets of 1500 bytes cannot fit. Path MTU discovery should handle this using ICMPv6 Packet Too Big messages, but these are often blocked by firewalls. Set ipv6 mtu 1480 (6in4) or ipv6 mtu 1476 (GRE) on the tunnel, and allow ICMPv6 type 2 through every firewall on the path.

Automatic tunnels: know them, avoid them

  • 6to4 built tunnel endpoints automatically from the 2002::/16 prefix. Public relay routers were unreliable and the anycast relay prefix was deprecated in RFC 7526.
  • ISATAP let hosts inside an IPv4 site tunnel to a router. It was common in early Windows networks and is now disabled by default.
  • Teredo tunnelled IPv6 through NAT over UDP for single hosts and has also been retired by Microsoft.

You may meet these in older exam material and in legacy configurations, but new designs should use dual stack, a manual tunnel or a provider service such as an IPv6-capable VPN.

Real-world example: video calls that froze

A company joined two IPv6 lab sites with a GRE tunnel. Web pages worked, but large file transfers and screen-sharing over IPv6 froze after a few seconds. The firewall at one site dropped all ICMPv6, so Packet Too Big messages never reached the senders. Allowing ICMPv6 type 2 and setting ipv6 mtu 1476 on the tunnel stopped the freezes.

Practice

Which IPv4 protocol number does a manual 6in4 tunnel use?
Protocol 41.
Why is MTU especially important for IPv6 tunnels?
IPv6 routers do not fragment in transit, so oversized packets are dropped and rely on ICMPv6 Packet Too Big messages, which firewalls often block.
Why should new designs avoid 6to4?
It depends on unreliable public relays, and its anycast relay prefix has been deprecated.

Key takeaways

  • Dual stack is the preferred design; tunnels bridge IPv4-only gaps.
  • Manual 6in4 uses protocol 41; GRE can carry IPv6, IPv4 and multicast together.
  • Lower the tunnel IPv6 MTU and allow ICMPv6 Packet Too Big.
  • 6to4, ISATAP and Teredo are legacy and should not be used in new designs.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: