Configuring a 6to4 tunnel, Configuration prerequisites, Configuration guidelines – H3C Technologies H3C S12500 Series Switches User Manual
Page 226: Configuration procedure

212
0.00% packet loss
round-trip min/avg/max = 1/1/1 ms
Configuring a 6to4 tunnel
Configuration prerequisites
Configure IP addresses for interfaces (such as the VLAN interface, Layer 3 Ethernet interface, and
loopback interface) on the switch to ensure normal communication. One of the interfaces will be used as
the source interface of the tunnel.
Configuration guidelines
Follow these guidelines when you configure a 6to4 tunnel:
•
No destination address needs to be configured for a 6to4 tunnel because the destination address
can be automatically obtained from the IPv4 address embedded in the 6to4 IPv6 address.
•
To encapsulate and forward IPv6 packets whose destination address does not belong to the subnet
where the current tunnel interface resides, you must configure a static route or dynamic routing for
forwarding those packets through this tunnel interface. If you configure a static route to that
destination IPv6 address, specify this tunnel interface as the outbound interface, or the peer tunnel
interface address as the next hop. Similar configuration is required at the other tunnel end. If you
configure dynamic routing at both ends, enable the dynamic routing protocol on both tunnel
interfaces. For the detailed configuration, see Layer 3—IP Routing Configuration Guide.
•
The automatic tunnel interfaces using the same encapsulation protocol cannot share the same
source IP address.
Configuration procedure
To configure a 6to4 tunnel:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable IPv6.
ipv6
By default, IPv6 is disabled.
3.
Enter tunnel interface
view.
interface tunnel number
By default, there is no tunnel interface on
the switch.