beautypg.com

Configuration procedure, Configuration example, Network requirements – H3C Technologies H3C S10500 Series Switches User Manual

Page 183

background image

172

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 IPv4 over IPv6 manual 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

Configure an IPv4 address for
the tunnel interface

ip address ip-address { mask |
mask-length
} [ sub ]

Required
By default, no IPv4 address is configured
for the tunnel interface.

Specify the IPv4 over IPv6

manual tunnel mode

tunnel-protocol ipv4-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 the 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.

Configure the destination
address for the tunnel

interface

destination ipv6-address

Required
By default, no destination address is
configured for the tunnel.

Configuration example

Network requirements

As shown in

Figure 74

, the two subnets Group 1 and Group 2 are connected over an IPv6 network.

Configure an IPv4 over IPv6 manual tunnel between Switch A and Switch B to make the two subnets

reachable to each other.

Figure 74 Network diagram for an IPv4 over IPv6 manual tunnel