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

256
Step Command Remarks
9. Return to system view.
quit N/A
10. Enable dropping of
IPv6 packets using
IPv4-compatible IPv6
addresses.
tunnel discard ipv4-compatible-packet
Optional.
The default setting is
disabled.
Configuration example
Network requirements
As shown in Figure 106, configure an IPv6 over IPv6 tunnel between Router A and Router B so the two
IPv6 networks can reach each other without disclosing their IPv6 addresses.
Figure 106 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 IPv6 address for GigabitEthernet 2/0/1.
[RouterA] interface gigabitethernet 2/0/1
[RouterA-GigabitEthernet2/0/1] ipv6 address 2002:1::1 64
[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::11:1 64
[RouterA-GigabitEthernet2/0/2] quit
# Create interface Tunnel 1.
[RouterA] interface tunnel 1
# Specify an IPv6 address for interface Tunnel 1.
[RouterA-Tunnel1] ipv6 address 3001::1:1 64
# Configure the tunnel encapsulation mode as IPv6 over IPv6.
[RouterA-Tunnel1] tunnel-protocol ipv6-ipv6
# Specify the IP address of GigabitEthernet 2/0/2 as the source address for interface Tunnel 1.