R3721-F3210-F3171-HP High-End Firewalls VPN Configuration Guide-6PW101

92
Network requirements
As shown in Figure 74, Router A is a 6to4 router, and 6to4 addresses are used on the connected IPv6
network. Router B serves as a 6to4 relay router and is connected to the IPv6 network (2001::/16).
Configure a 6to4 tunnel between Router A and Router B to make Host A and Host B reachable to each
other.
Figure 74 Network diagram
Configuration procedure
NOTE:
Before configuring a 6to4 relay, make sure that Router A and Router B are reachable to each other.
The configuration on a 6to4 relay router is similar to that on a 6to4 router. However, to enable
communication between the 6to4 network and the IPv6 network, you must confi
g
ure a route to the IPv6
network on the 6to4 router.
Configure Router A:
# Enable IPv6.
<RouterA> system-view
[RouterA] ipv6
# Configure an IPv4 address for GigabitEthernet 0/2.
[RouterA] interface gigabitethernet 0/2
[RouterA-GigabitEthernet0/2] ip address 2.1.1.1 255.255.255.0
[RouterA-GigabitEthernet0/2] quit
# Configure an IPv6 address for GigabitEthernet 0/1.
[RouterA] interface gigabitethernet 0/1
[RouterA-GigabitEthernet0/1] ipv6 address 2002:0201:0101:1::1/64
[RouterA-GigabitEthernet0/1] quit
# Configure a 6to4 tunnel.
[RouterA] interface tunnel 0
[RouterA-Tunnel0] ipv6 address 2002:0201:0101::1/64
[RouterA-Tunnel0] source gigabitethernet 0/2
[RouterA-Tunnel0] tunnel-protocol ipv6-ipv4 6to4
[RouterA-Tunnel0] quit
# Configure a static route to the 6to4 relay router.
[RouterA] ipv6 route-static 2002:0601:0101:: 64 tunnel 0