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

239
Ste
p
Command
Remarks
5. Specify the 6to4 tunnel
mode.
tunnel-protocol ipv6-ipv4 6to4
The default mode is GRE. The
same tunnel mode should be
configured at both ends of the
tunnel. Otherwise, packet
delivery fails.
6. Configure a source
address or interface for
the tunnel.
source { ip-address | interface-type
interface-number }
By default, no source address or
interface is configured for the
tunnel.
7. Return to system view.
quit N/A
8. Enable dropping of
IPv6 packets using
IPv4-compatible IPv6
addresses.
tunnel discard ipv4-compatible-packet
Optional.
The default setting is disabled.
6to4 tunnel configuration example
Network requirements
As shown in Figure 101, configure a 6to4 tunnel between 6to4 routers Router A and Router B to make
Host A and Host B reachable to each other.
Figure 101 Network diagram
Configuration considerations
To enable communication between 6to4 networks, configure 6to4 addresses for 6to4 routers and hosts
in the 6to4 networks.
The IPv4 address of GigabitEthernet 2/0/2 on Router A is 2.1.1.1/24, and the corresponding 6to4
prefix is 2002:0201:0101::/48. Assign interface Tu nnel 0 to subnet 2002:0201:0101::/64 and
GigabitEthernet 2/0/1 to subnet 2002:0201: 0101:1::/64.
The IPv4 address of GigabitEthernet 2/0/2 on Router B is 5.1.1.1/24, and the corresponding 6to4
prefix is 2002:0501:0101::/48. Assign interface Tunnel 0 to subnet 2002:0501:0101::/64 and
GigabitEthernet 2/0/1 to subnet 2002:0501:0101:1::/64.
Configuration procedure
Before configuring a 6to4 tunnel, make sure Router A and Router B can reach each other through IPv4.