Configuration procedure – H3C Technologies H3C S10500 Series Switches User Manual
Page 171

160
•
To encapsulate and forward IPv6 packets whose destination address does not belong to the subnet
where the receiving tunnel interface resides, configure a static route to reach the destination IPv6
address through this tunnel interface on the device. Because automatic tunnels do not support
dynamic routing, you can configure a static route to that destination IPv6 address with this tunnel
interface as the outbound interface or the peer tunnel interface address as the next hop. A similar
configuration is required at the other tunnel end. For the detailed configuration, see Layer 3—IP
Routing Configuration Guide.
•
Automatic tunnel interfaces using the same encapsulation protocol cannot share the same source IP
address.
Configuration procedure
Follow these steps to configure a 6to4 tunnel:
To do…
Use the command…
Remarks
Enter system view
system-view —
Enable IPv6
ipv6
Required
By default, the IPv6 packet forwarding
function is disabled.
Enter tunnel interface view
interface tunnel number —
ipv6 address { ipv6-address
prefix-length |
ipv6-address/prefix-length }
Configure an
IPv6 global
unicast
address or a
site-local
address
ipv6 address
ipv6-address/prefix-length eui-64
Required.
Use either command.
By default, no IPv6 global unicast
address or site-local address is
configured for the tunnel interface.
ipv6 address auto link-local
Configure an
IPv6 address
for the tunnel
interface
Configure an
IPv6 link-local
address
ipv6 address ipv6-address
link-local
Optional
By default, a link-local address will
automatically be generated when an
IPv6 global unicast address or site-local
address is configured.
Specify the 6to4 tunnel mode
tunnel-protocol ipv6-ipv4 6to4
Required
GRE over IPv4 tunnel by default.
The same tunnel mode should be
configured at both ends of the tunnel.
Otherwise, packet delivery will fail.
Configure a source address or
interface for the tunnel
source { ip-address |
interface-type interface-number }
Required
By default, no source address or
interface is configured for the tunnel.
Return to system view
quit
—
Enable dropping of IPv6
packets using IPv4-compatible
IPv6 addresses
tunnel discard
ipv4-compatible-packet
Optional
Disabled by default.