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

Page 223

Advertising
background image

209

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enable IPv6.

ipv6

By default, IPv6 is disabled.

3.

Create a tunnel interface

and enter tunnel interface
view.

interface tunnel number

By default, there is no tunnel
interface on the switch.

4.

Configure an IPv6 address
for the tunnel interface.

Configure an IPv6 global unicast

address or a site-local address:

{

ipv6 address { ipv6-address

prefix-length |
ipv6-address/prefix-length }

{

ipv6 address
ipv6-address/prefix-length

eui-64

Configure an IPv6 link-local
address:

{

ipv6 address auto link-local

{

ipv6 address ipv6-address

link-local

IPv6 link-local address
configuration is optional.
By default:

No IPv6 global unicast address

or site-local address is
configured for the tunnel

interface.

A link-local address will
automatically be generated

when an IPv6 global unicast or

site-local address is configured

for the interface.

5.

Specify the automatic
IPv4-compatible IPv6

tunnel mode.

tunnel-protocol ipv6-ipv4 auto-tunnel

By default, the tunnel is a GRE over
IPv4 tunnel.
The same tunnel mode should be
configured at both ends of the

tunnel. Otherwise, packet delivery

will fail.

6.

Configure a source
address or interface for the

tunnel.

source { ip-address | interface-type
interface-number
}

By default, no source address or
interface is configured for the
tunnel.

7.

Configure the IPv6 MTU
on the tunnel interface.

ipv6 mtu mtu-size

Optional.
By default, the IPv6 MTU is 1480
bytes.

Configuration example

IMPORTANT:

By default, Ethernet, VLAN, and aggregate interfaces are down. To configure such an interface, bring the
interface up by executing the undo shutdown command.

Network requirements

As shown in

Figure 89

, two IPv6 networks are connected to an IPv4 network through dual-stack switches

Switch A and Switch B. Configure an automatic IPv4-compatible IPv6 tunnel between Switch A and

Switch B to make the two IPv6 networks reachable to each other.

Advertising