Ipv6 Over Ipv4 Tunneling: Feature Overview and Configuration Guide
Ipv6 Over Ipv4 Tunneling: Feature Overview and Configuration Guide
Ipv6 Over Ipv4 Tunneling: Feature Overview and Configuration Guide
Introduction
This guide describes IPv6 over IPv4 tunneling and how to configure it. IPv6 over IPv4 tunnels are
point-to-point tunnels made by encapsulating IPv6 packets within IPv4 headers to carry them over
IPv4 routing infrastructures. This allows isolated IPv6 end systems and devices to communicate
without the need to upgrade the IPv4 infrastructure that exists between them.
Moving a network from IPv4 addressing to IPv6 addressing cannot be performed in a single step.
The transition necessarily proceeds in stages, with islands of IPv6 developing within the IPv4
network, and gradually growing until they cover the whole network. During this transition process,
the islands of IPv6 need to be able to communicate with each other across the IPv4 network.
Additionally, it is desirable to be able to transition some network functions across to IPv6 while the
majority of the network is still using IPv4. During early transition, IPv4 networks are widely deployed
and IPv6 networks are isolated sites. An IPv6 over IPv4 tunnel allows IPv6 packets to be transmitted
on an IPv4 network and connects all IPv6 sites.
A variety of transition mechanisms are available for tunneling IPv6 over existing IPv4 networks:
semi-automatic tunneling
ISATAP tunneling
This guide describes manually configured IPv6 over IPv4 tunneling on AlliedWare Plus™ devices.
Contents
Introduction ......................................................................................................................................... 1
Products and software version that apply to this guide ............................................................... 2
Related documents ...................................................................................................................... 2
Licensing ...................................................................................................................................... 2
Troubleshooting .................................................................................................................................. 7
To see whether your product supports the IPv6 over IPv4 tunneling mode, see the following
documents:
These documents are available from the above links on our website at alliedtelesis.com.
Related documents
The following documents give more information about the IPv6 transitioning and tunneling features
on AlliedWare Plus products:
These documents are available from the links above or on our website at alliedtelesis.com
Licensing
This feature is part of the standard feature set of the device software, therefore there are no licensing
requirements.
An IPv6 over IPv4 tunnel connects isolated IPv6 sites through an IPv4 network. Deploying IPv6 over
IPv4 tunneling can be useful for service providers and enterprises who want to offer an end-to-end
IPv6 service without major upgrades to the infrastructure. One of the major benefits of this type of
tunneling is the ability to interconnect isolated IPv6 domains over existing IPv4 infrastructures.
Dual-stack Dual-stack
IPv4 Network
x9
x5
IPv6 Network IPv6 Network
30
30
Tunnel: IPv6 in IPv4 packet
IPv4 Header IPv6 Header IPv6 Data
IPv6 Host IPv6 Host
With IPv6 over IPv4 tunneling, the IPv4 tunnel endpoint address is determined by configuration
information on the encapsulating node. The tunnels can be either unidirectional or bidirectional.
Bidirectional configured tunnels behave as virtual point-to-point links.
As IPv4 and IPv6 networks are not directly inter-operable, there are transition mechanisms available
that permit hosts on either network type to communicate with any other host. Transition
mechanisms bridge between IPv4 and IPv6 and allow the two versions to work side by side.
Because IPv6 is a completely separate protocol from IPv4, it can be run in parallel with IPv4 as the
transition is made from IPv4 to IPv6. Hosts and network devices can run both IPv4 and IPv6 on the
same interface at the same time (dual-stacked), and each is invisible to the other; there is no
interference between the two protocols. In time, IPv4 networks will fade away as we move to the
IPv6 addressing system.
Encapsulation
The encapsulation of an IPv6 datagram in IPv4 is shown below:
IPv4 Header
Transport Transport
Layer Layer
Header Header
In addition to adding an IPv4 header, the encapsulating node also has to handle some more
complex issues such as:
Determining when to fragment and when to report an ICMP "packet too big" message back to
the source.
How to reflect IPv4 ICMP messages from routers along the tunnel path back to the source as IPv6
ICMP errors.
Tunneling requirements
All tunneling mechanisms require that the endpoints of the tunnel run both IPv4 and IPv6 protocol
stacks, that is, endpoints must run in dual-stack mode. A dual stack network is a network in which
all of the nodes are both IPv4 and IPv6 enabled.
Dual-stack devices run both IPv4 and IPv6 protocols simultaneously and thus can inter-operate
directly with both IPv4 and IPv6 end systems and devices. For proper operation of the tunnel
mechanisms, appropriate entries in a DNS that map between host names and IP addresses for both
IPv4 and IPv6 allow the applications to choose the required address.
For more information on encapsulation and tunneling requirements, please refer to RFC4213.
In manually configured tunneling, the tunnel endpoint address is determined from configuration
information in the encapsulating node. For each tunnel, the encapsulating node must store the
tunnel endpoint address.
Because each tunnel is independently managed, the more tunnel endpoints you have, the more
tunnels you need, and the greater is the management overhead. As with other tunnel mechanisms,
network address translation (NAT) is not allowed along the path of the tunnel. The configuration
example belows provides the steps required to configure an IPv6 over IPv4 tunnel.
Configuration example
To create an IPv6 over IPv4 tunnel between two AlliedWare Plus devices, follow the example
configuration steps provided below:
Dual-stack Dual-stack
IPv4 Network
x9
x5
30
x930 Step 1: Assign an IP address to the VLAN interface and enable IPv6
awplus#configure terminal
awplus(config)#int vlan2
awplus(config-if)# ip address 10.0.0.1/27
awplus(config-if)# ipv6 enable
Note: The static route must be configured for traffic matching subnet 2001:DB8:2/48 to be routed
through the tunnel to the x530 switch
x530 Step 1: Assign an IP address to the VLAN interface and enable IPv6
awplus#configure terminal
awplus(config)#int vlan2
awplus(config-if)# ip address 10.0.0.2/27
awplus(config-if)# ipv6 enable
Troubleshooting
There are a number of show commands available to help troubleshoot IPv6 over IPv4 tunneling.
It’s always good to know what to look for in any show output. For all the above show commands,
the important thing is that the Source IP interface and Destination IP are the same with the tunnel
interface configuration.
If the show command has no output, it is a clear indication that the tunnel is not working properly.
Stack member 1:
[Instance 4]
Intf Type TTL DF DSCP Source IP Destination IP
---------------------------------------------------------
Stack member 2:
[Instance 8]
Intf Type TTL DF DSCP Source IP Destination IP
---------------------------------------------------------
interface vlan10
ip address 10.1.1.1/24
ipv6 enable
!
interface vlan100
ipv6 address 2001:db8:100::1/64
ipv6 enable
!
interface tunnel1
tunnel source vlan10
tunnel destination 20.1.1.2
tunnel mode ipv6ip
ipv6 address 2001:db8:1020::1/64
ipv6 enable
!
DUT_x930-STK#show platform table tunnel
Stack member 1:
[Instance 4]
Intf Type TTL DF DSCP Source IP Destination IP
---------------------------------------------------------
3 3 255 0 Asgn 0 10.1.1.1 20.1.1.2
Stack member 2:
[Instance 8]
Intf Type TTL DF DSCP Source IP Destination IP
---------------------------------------------------------
3 3 255 0 Asgn 0 10.1.1.1 20.1.1.2
4 3 255 0 Asgn 0 10.1.1.1 20.1.1.2
5 3 255 0 Asgn 0 10.1.1.1 20.1.1.2
6 3 255 0 Asgn 0 10.1.1.1 20.1.1.2
7 3 255 0 Asgn 0 10.1.1.1 20.1.1.2
DUT_x930-STK#
C613-22123-00 REV A
NETWORK SMARTER
North America Headquarters | 19800 North Creek Parkway | Suite 100 | Bothell | WA 98011 | USA | T: +1 800 424 4284 | F: +1 425 481 3895
Asia-Pacific Headquarters | 11 Tai Seng Link | Singapore | 534182 | T: +65 6383 3832 | F: +65 6383 3830
EMEA & CSA Operations | Incheonweg 7 | 1437 EK Rozenburg | The Netherlands | T: +31 20 7950020 | F: +31 20 7950021
alliedtelesis.com
© 2020 Allied Telesis, Inc. All rights reserved. Information in this document is subject to change without notice. All company names, logos, and product designs that are trademarks or registered trademarks are the property of their respective owners.