IPv6 over IPv4 Tunneling Using GRE Tunnel Configuration on Huawei Routers
- January 21, 2024
- Posted by: Lyfey Technologies
- Category: Huawei
Many ISPs are transitioning their networks from IPv4-only networks to IPv6 networks.
IPv6 over IPv4 tunneling technology can be used by ISPs for a smooth transition from IPv4 networks to IPv6 networks. In this lab, we will demonstrate how to configure IPv6 over IPv4 tunneling on Huawei routers using manual and GRE tunnels.
Configuration procedure:
Step 1: Configure IPv4 addresses on interfaces.
Step 2: Configure OSPF instance 10 area 0 in the backbone network on R1, R2, and R3 routers. confirm the peering is up and reachability is OK.
Step 3: Enable IPv6 on routers R1 and R2, and configure loopback 100 with IPv6 addresses to simulate IPv6 clients.
***************************************R1*******************************
#
ipv6
#
interface LoopBack100
ipv6 enable
ipv6 address 2001:2::2/64
#
***************************************R3*******************************
#
ipv6
#
interface LoopBack100
ipv6 enable
ipv6 address 2001:3::3/64
#
4. Configure tunnels on R1 and R2, You need to enable IPv6, configure tunnel protocol, specify the source IP as Loopback 0, and configure the tunnel destination as the IP address of loopback 0 of the remote router.
**************************R1*************************
interface Tunnel0/0/0
ipv6 enable # enable IPv6
ipv6 address 2003:3::1/64
tunnel-protocol gre # configure tunnel protocol
source LoopBack0 # specify tunnel source
destination 3.3.3.3 # configure tunnel destination
#
***************************R3*************************
interface Tunnel0/0/0
ipv6 enable
ipv6 address 2003:3::2/64
tunnel-protocol gre
source LoopBack0
destination 1.1.1.1
#
Verification: Try to ping the IPV6 address of Loopback 100 on R3 from R1.
We can do a packet capture and verify that IPV6 packets are carried over the GRE tunnel.