R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

240
Configure Router A:
# Enable IPv6.
<RouterA> system-view
[RouterA] ipv6
# Specify an IPv4 address for GigabitEthernet 2/0/2.
[RouterA] interface gigabitethernet 2/0/2
[RouterA-GigabitEthernet2/0/2] ip address 2.1.1.1 24
[RouterA-GigabitEthernet2/0/2] quit
# Specify an IPv6 address for GigabitEthernet 2/0/1.
[RouterA] interface gigabitethernet 2/0/1
[RouterA-GigabitEthernet2/0/1] ipv6 address 2002:0201:0101:1::1/64
[RouterA-GigabitEthernet2/0/1] quit
# Configure the 6to4 tunnel.
[RouterA] interface tunnel 0
[RouterA-Tunnel0] ipv6 address 2002:201:101::1/64
[RouterA-Tunnel0] source gigabitethernet 2/0/2
[RouterA-Tunnel0] tunnel-protocol ipv6-ipv4 6to4
[RouterA-Tunnel0] quit
# Configure a static route whose destination address is 2002::/16 and next-hop is the tunnel
interface.
[RouterA] ipv6 route-static 2002:: 16 tunnel 0
Configure Router B:
# Enable IPv6.
<RouterB> system-view
[RouterB] ipv6
# Specify an IPv6 address for GigabitEthernet 2/0/2.
[RouterB] interface gigabitethernet 2/0/2
[RouterB-GigabitEthernet2/0/2] ip address 5.1.1.1 24
[RouterB-GigabitEthernet2/0/2] quit
# Specify an IPv6 address for GigabitEthernet 2/0/1.
[RouterB] interface gigabitethernet 2/0/1
[RouterB-GigabitEthernet2/0/1] ipv6 address 2002:0501:0101:1::1/64
[RouterB-GigabitEthernet2/0/1] quit
# Configure a 6to4 tunnel.
[RouterB] interface tunnel 0
[RouterB-Tunnel0] ipv6 address 2002:0501:0101::1/64
[RouterB-Tunnel0] source gigabitethernet 2/0/2
[RouterB-Tunnel0] tunnel-protocol ipv6-ipv4 6to4
[RouterB-Tunnel0] quit
# Configure a static route whose destination address is 2002::/16 and next-hop is the tunnel
interface.
[RouterB] ipv6 route-static 2002:: 16 tunnel 0
Verifying the configuration
# Ping either host from the other, and the ping operation succeeds.
D:\>ping6 -s 2002:201:101:1::2 2002:501:101:1::2