Configuration guidelines, Configuration procedure – H3C Technologies H3C S10500 Series Switches User Manual
Page 187

176
Configuration guidelines
Follow these guidelines when you configure an IPv6 over IPv6 tunnel:
•
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 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. A 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 IPv6 address of a tunnel interface must not be on the same subnet as the destination address of
the tunnel.
•
The destination address of a route with the tunnel interface as the egress interface must not be on
the same subnet as the destination address of the tunnel.
•
Two or more tunnel interfaces using the same encapsulation protocol must have different source and
destination addresses.
•
If you specify a source interface instead of a source address for the tunnel, the source address of the
tunnel is the primary IP address of the source interface.
Configuration procedure
Follow these steps to configure an IPv6 over IPv6 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 site-local
address
ipv6 address
ipv6-address/prefix-length eui-64
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
Required
Use one of the commands.
By default, no IPv6 address is
configured for the tunnel interface.
Specify the IPv6 over IPv6 tunnel
mode
tunnel-protocol ipv6-ipv6
Optional
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 interface
source { ipv6-address |
interface-type interface-number }
Required
By default, no source address or
interface is configured for the tunnel.