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

251
Configuration guidelines
Follow these guidelines when you configure an IPv4 over IPv6 manual tunnel:
If the destination IPv4 network is not on the same subnet as the IPv4 address of the local tunnel
interface, you must configure a route destined for the destination IPv4 network through the tunnel
interface. You can configure a static route, and specify the local tunnel interface as the output
interface of the route or specify the IPv6 address of the peer tunnel interface as the next hop.
Alternatively, you can enable a dynamic routing protocol on both tunnel interfaces to achieve the
same purpose. For the detailed configuration, see Layer 3—IP Routing Configuration Guide.
Two or more local 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 a tunnel interface, the source
address of the tunnel interface is the primary IP address of the source interface.
Configuration procedure
To configure an IPv4 over IPv6 manual tunnel:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enable IPv6.
ipv6
By default, the IPv6 packet forwarding
function is disabled.
3. Enter tunnel interface
view.
interface tunnel number N/A
4. Configure an IPv4
address for the tunnel
interface.
ip address ip-address { mask |
mask-length } [ sub ]
By default, no IPv4 address is configured
for the tunnel interface.
5. Specify the IPv4 over
IPv6 manual tunnel
mode.
tunnel-protocol ipv4-ipv6
The default mode is GRE. The same tunnel
mode should be configured at both ends
of the tunnel. Otherwise, packet delivery
fails.
6. Configure the source
address or interface for
the tunnel interface.
source { ipv6-address |
interface-type interface-number }
By default, no source address or interface
is configured for the tunnel.
7. Configure the
destination address for
the tunnel interface.
destination ipv6-address
By default, no destination address is
configured for the tunnel.
Configuration example
Network requirements
As shown in Figure 105, configure an IPv4 over IPv6 manual tunnel between Router A and Router B so
the two IPv4 networks can reach each other over the IPv6 network.