R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)
214
Ste
p
Command
Remarks
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 85, configure a 6to4 tunnel between 6to4 routers Router A and Router B to make Host
A and Host B reachable to each other.
Figure 85 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 Ethernet 1/2 on Router A is 2.1.1.1/24, and the corresponding 6to4 prefix is
2002:0201:0101::/48. Assign interface Tunnel 0 to subnet 2002:0201:0101::/64 and Ethernet
1/1 to subnet 2002:0201:0101:1::/64.
• The IPv4 address of Ethernet 1/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 Ethernet
1/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.
• Configure Router A:
# Enable IPv6.
<RouterA> system-view
[RouterA] ipv6
# Configure an IPv4 address for Ethernet 1/2.










