Example for Configuring a Manual IPv6 over IPv4 Tunnel
As shown inĀ Figure 1, two IPv6 networks are connected toĀ DeviceĀ B on the IPv4 backbone network throughĀ DeviceĀ A andĀ DeviceĀ C. To interconnect the two IPv6 networks, configure a manual IPv6 over IPv4 tunnel betweenĀ DeviceĀ A andĀ DeviceĀ C.
Figure 1Ā Configuring a manual IPv6 over IPv4 tunnel
When configuring a manual IPv6 over IPv4 tunnel, note the following points:
Create a tunnel interface and set parameters for the tunnel interface.
Perform the following configuration on bothĀ DeviceĀ A andĀ DeviceĀ C. The source address of the local end is the destination address of the remote end of the tunnel. Similarly, the destination address of the local end is the source address of the remote end.
Configure IP addresses for the tunnel interface to support routing protocols.
The configuration roadmap is as follows:
Assign an IP address to each physical interface.
Configure the IPv6 address, source interface number, and destination address for the tunnel interface.
Set the protocol type is IPv6-IPv4.
To complete the configuration, you need the following data:
IP addresses of interfaces
IPv6 address, source interface number, and destination address of the tunnel
# Configure an IP address forĀ DeviceĀ A's interface that connects toĀ DeviceĀ C.
[~HUAWEI] sysname DeviceA
[~DeviceA] interface gigabitethernet 0/1/0
[~DeviceA-GigabitEthernet0/1/0] ip address 192.168.50.2 255.255.255.0
[*DeviceA-GigabitEthernet0/1/0] undo shutdown
[*DeviceA-GigabitEthernet0/1/0] quit
# Set the protocol type to IPv6-IPv4.
[*DeviceA] interface tunnel 1
[*DeviceA-Tunnel1] tunnel-protocol ipv6-ipv4
# Configure the IPv6 address, source interface number, and destination address for the tunnel interface.
[*DeviceA-Tunnel1] ipv6 enable
[*DeviceA-Tunnel1] ipv6 address 2001:db8::1 64
[*DeviceA-Tunnel1] source 192.168.50.2
[*DeviceA-Tunnel1] destination 192.168.51.2
# Configure a static route.
[*DeviceA] ip route-static 192.168.51.2 255.255.255.0 192.168.50.1
# Configure IP addresses forĀ DeviceĀ B's interfaces that connect toĀ DeviceĀ A andĀ DeviceĀ C.
[~HUAWEI] sysname DeviceB
[~DeviceB] interface gigabitethernet 0/1/0
[~DeviceB-GigabitEthernet0/1/0] ip address 192.168.50.1 255.255.255.0
[*DeviceB-GigabitEthernet0/1/0] undo shutdown
[*DeviceB-GigabitEthernet0/1/0] quit
[*DeviceB] interface gigabitethernet 0/2/0
[*DeviceB-GigabitEthernet0/2/0] ip address 192.168.51.1 255.255.255.0
[*DeviceB-GigabitEthernet0/2/0] undo shutdown
[*DeviceB-GigabitEthernet0/2/0] commit
[~DeviceB-GigabitEthernet0/2/0] quit
# Configure an IP address forĀ DeviceĀ C's interface that connects toĀ DeviceĀ A.
[~HUAWEI] sysname DeviceC
[~DeviceC] interface gigabitethernet 0/1/0
[~DeviceC-GigabitEthernet0/1/0] ip address 192.168.51.2 255.255.255.0
[*DeviceC-GigabitEthernet0/1/0] undo shutdown
[*DeviceC-GigabitEthernet0/1/0] quit
# Set the protocol type to IPv6-IPv4.
[*DeviceC] interface tunnel 1
[*DeviceC-Tunnel1] tunnel-protocol ipv6-ipv4
# Configure the IPv6 address, source interface number, and destination address for the tunnel interface.
[*DeviceC-Tunnel1] ipv6 enable
[*DeviceC-Tunnel1] ipv6 address 2001:db8::2 64
[*DeviceC-Tunnel1] source 192.168.51.2
[*DeviceC-Tunnel1] destination 192.168.50.2
# Configure a static route.
[*DeviceC] ip route-static 192.168.50.2 255.255.255.0 192.168.51.1
Verify the configuration.
# Ping the IPv4 address of GEĀ 0/1/0Ā onĀ DeviceĀ A fromĀ DeviceĀ C, and the ping operation is successful.
[~DeviceC] ping 192.168.50.2
PING 192.168.50.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.50.2: bytes=56 Sequence=1 ttl=254 time=84 ms
Reply from 192.168.50.2: bytes=56 Sequence=2 ttl=254 time=27 ms
Reply from 192.168.50.2: bytes=56 Sequence=3 ttl=254 time=25 ms
Reply from 192.168.50.2: bytes=56 Sequence=4 ttl=254 time=3 ms
Reply from 192.168.50.2: bytes=56 Sequence=5 ttl=254 time=24 ms
--- 192.168.50.2 ping statistics ---
round-trip min/avg/max = 3/32/84 ms
# Ping the IPv6 address of Tunnel 1 onĀ DeviceĀ A fromĀ DeviceĀ C, and the ping operation is successful.
[~DeviceC] ping ipv6 2001:db8::1
PING 2001:db8::1 : 56 data bytes, press CTRL_C to break
bytes=56 Sequence=1 hop limit=64 time = 28 ms
bytes=56 Sequence=2 hop limit=64 time = 27 ms
bytes=56 Sequence=3 hop limit=64 time = 26 ms
bytes=56 Sequence=4 hop limit=64 time = 27 ms
bytes=56 Sequence=5 hop limit=64 time = 26 ms
round-trip min/avg/max = 26/26/28 ms
DeviceĀ A configuration file
interface GigabitEthernet0/1/0
ip address 192.168.50.2 255.255.255.0
ipv6 address 2001:db8::1/64
tunnel-protocol ipv6-ipv4
ip route-static 192.168.51.0 255.255.255.0 192.168.50.1
DeviceĀ B configuration file
interface GigabitEthernet0/1/0
ip address 192.168.50.1 255.255.255.0
interface GigabitEthernet0/2/0
ip address 192.168.51.1 255.255.255.0
DeviceĀ C configuration file
interface GigabitEthernet0/1/0
ip address 192.168.51.2 255.255.255.0
ipv6 address 2001:db8::2/64
tunnel-protocol ipv6-ipv4
ip route-static 192.168.50.0 255.255.255.0 192.168.51.1
Example for Configuring a Manual IPv6 over IPv4 Tunnel
Configuring a Manual IPv6 over IPv4 Tunnel, Example for Configuring a Manual IPv6 over IPv4 Tunnel, IPv6, IPv6 Addresses, IPv6 over IPv4 Tunnel
from The Best Of Networking http://thebest.network-solution.net/2016/03/example-for-configuring-manual-ipv6.html
via The Best Of Networking