Assigning ipv6 addresses to interfaces, Configuring an ipv6 over ipv4 manual tunnel – H3C Technologies H3C S12500 Series Switches User Manual

Page 172

Advertising
background image

159

Step Command

Remarks

2.

Create a tunnel interface,
specify the tunnel mode, and

enter tunnel interface view.

interface tunnel number mode
{ evi [ ipv6 ] | gre | ipv6-ipv4

[ 6to4 | auto-tunnel | isatap ] }

By default, no tunnel interface is
created.
When you create a new tunnel
interface, you must specify the tunnel

mode. When you enter the view of an

existing tunnel interface, you do not
need to specify the tunnel mode.
The two ends of a tunnel must use the
same tunnel mode. Otherwise,

packet tunneling will fail.

3.

(Optional.) Configure a

description for the interface. description text

By default, the description of a tunnel
interface is Tunnel number Interface.

4.

Set the MTU of the tunnel
interface.

mtu mtu-size

The default setting is 1476 bytes.

5.

(Optional.) Restore the

default settings of the tunnel
interface.

default

N/A

6.

(Optional.) Shut down the

tunnel interface.

shutdown

By default, a tunnel interface is up.

153B

Configuring an IPv6 over IPv4 manual tunnel

Follow these guidelines when you configure an IPv6 over IPv4 manual tunnel:

The tunnel destination address specified on the local device must be identical with the tunnel source
address specified on the tunnel peer device.

The tunnels in the same mode on a device must not use the same tunnel source and destination
addresses.

If the destination IPv6 network is not in the same subnet as the IPv6 address of the tunnel interface,
you must configure a static route destined for the destination IPv6 network. You can 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 detailed configuration, see Layer 3—IP Routing Configuration

Guide.

To configure an IPv6 over IPv4 manual tunnel:

Step Command

Remarks

1.

Enter system view.

system-view N/A

2.

Enter IPv6 over IPv4 manual
tunnel interface view.

interface tunnel number [ mode
ipv6-ipv4 ]

N/A

3.

Specify an IPv6 address for
the tunnel interface.

For configuration details, see
"Configuring IPv6 basics."

No IPv6 address is configured for
the tunnel interface by default.

Advertising