R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)
292
Figure 118 Network diagram
Configuration procedure
Make sure Router A and Router B can reach each other through IPv6.
• Configure Router A:
# Specify an IPv4 address for GigabitEthernet 2/1/1.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ip address 10.0.0.2 255.255.255.0
[RouterA-GigabitEthernet2/1/1] quit
# Specify an IPv6 address for GigabitEthernet 2/1/2, which is the physical interface of the tunnel.
[RouterA] interface gigabitethernet 2/1/2
[RouterA-GigabitEthernet2/1/2] ipv6 address 1::1 64
[RouterA-GigabitEthernet2/1/2] quit
# Create an IPv6 tunnel interface tunnel1.
[RouterA] interface tunnel 1 mode ipv6
# Specify an IPv4 address for the tunnel interface.
[RouterA-Tunnel1] ip address 30.1.2.1 255.255.255.0
# Specify the IP address of GigabitEthernet 2/1/2 as the source address for the tunnel interface.
[RouterA-Tunnel1] source 1::1
# Specify IP address of GigabitEthernet 2/1/2 on Router B as the destination address for the
tunnel interface.
[RouterA-Tunnel1] destination 2::2
[RouterA-Tunnel1] quit
# Configure a static route to the public IPv4 network through the tunnel interface.
[RouterA] ip route-static 20.1.1.0 255.255.255.0 tunnel 1
• Configure Router B:
# Specify an IPv4 address for GigabitEthernet 2/1/1.
<RouterB> system-view
[RouterB] interface gigabitethernet 2/1/1
[RouterB-GigabitEthernet2/1/1] ip address 20.1.1.1 24
[RouterB-GigabitEthernet2/1/1] quit
# Specify an IPv6 address for GigabitEthernet 2/1/2, which is the physical interface of the tunnel.
[RouterB] interface gigabitethernet 2/1/2
[RouterB-GigabitEthernet2/1/2] ipv6 address 2::2 64
[RouterB-GigabitEthernet2/1/2] quit
# Configure a DS-Lite tunnel interface tunnel2.