R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide
252
Figure 105 Network diagram
Configuration procedure
Make sure Router A and Router B can reach each other through IPv6.
• Configure Router A:
# Enable IPv6.
<RouterA> system-view
[RouterA] ipv6
# Specify an IPv4 address for GigabitEthernet 2/0/1.
[RouterA] interface gigabitethernet 2/0/1
[RouterA-GigabitEthernet2/0/1] ip address 30.1.1.1 255.255.255.0
[RouterA-GigabitEthernet2/0/1] quit
# Specify an IPv6 address for GigabitEthernet 2/0/2, the physical interface of the tunnel.
[RouterA] interface gigabitethernet 2/0/2
[RouterA-GigabitEthernet2/0/2] ipv6 address 2002::1:1 64
[RouterA-GigabitEthernet2/0/2] quit
# Create interface Tunnel 1.
[RouterA] interface tunnel 1
# Specify an IPv4 address for interface Tunnel 1.
[RouterA-Tunnel1] ip address 30.1.2.1 255.255.255.0
# Configure the tunnel encapsulation mode as IPv4 over IPv6.
[RouterA-Tunnel1] tunnel-protocol ipv4-ipv6
# Specify the IP address of GigabitEthernet 2/0/2 as the source address for interface Tunnel 1.
[RouterA-Tunnel1] source 2002::1:1
# Specify the IP address of GigabitEthernet 2/0/2 of Router B as the destination address for
interface Tunnel 1.
[RouterA-Tunnel1] destination 2002::2:1
[RouterA-Tunnel1] quit
# Configure a static route from Router A through interface Tunnel 1 to Group 2.
[RouterA] ip route-static 30.1.3.0 255.255.255.0 tunnel 1
• Configure Router B:
# Enable IPv6.
<RouterB> system-view
[RouterB] ipv6
# Specify an IPv4 address for GigabitEthernet 2/0/1.
[RouterB] interface gigabitethernet 2/0/1
[RouterB-GigabitEthernet2/0/1] ip address 30.1.3.1 255.255.255.0
GE2/0/2
2002::1:1/64
GE2/0/1
30.1.3.1/24
GE2/0/1
30.1.1.1/24
Router A
IPv6 network
IPv4
Group 1
Tunnel1
30.1.2.1/24
GE2/0/2
2002::2:1/64
Tunnel2
30.1.2.2/24
IPv4
Group 2
Router B
IPv4 over IPv6 tunnel