beautypg.com

Configuration example, Network requirements – H3C Technologies H3C S12500-X Series Switches User Manual

Page 165

background image

154

The destination address specified for the local tunnel interface must be the source address specified

for the peer tunnel interface, and vice versa.

The source/destination addresses of local tunnels of the same tunnel mode cannot be the same.

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 egress

interface 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.

To configure an IPv4 over IPv6 tunnel:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter tunnel interface
view.

interface tunnel number [ mode
ipv6 ]

N/A

3.

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.

4.

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.
The specified source address or the
primary IPv6 address of the specified

source interface is used as the source IPv6
address of tunneled packets.

5.

Configure the
destination address for

the tunnel interface.

destination ipv6-address

By default, no destination address is

configured for the tunnel.
The tunnel destination address must be
the IPv6 address of the receiving interface

on the tunnel peer. It is used as the

destination IPv6 address of tunneled
packets.

Configuration example

Network requirements

As shown in

Figure 59

, configure an IPv4 over IPv6 tunnel between Switch A and Switch B so the two IPv4

networks can reach each other over the IPv6 network.

This manual is related to the following products: