Configuring an isatap tunnel – H3C Technologies H3C S12500 Series Switches User Manual

Page 181

Advertising
background image

168

[SwitchB] interface vlan-interface 100

[SwitchB-Vlan-interface100] ip address 6.1.1.1 255.255.255.0

[SwitchB-Vlan-interface100] quit

# Configure an IPv6 address for VLAN-interface 101.

[SwitchB] interface vlan-interface 101

[SwitchB-Vlan-interface101] ipv6 address 2001::1/16

[SwitchB-Vlan-interface101] quit

# Configure a 6to4 tunnel interface tunnel 0.

[SwitchB] interface tunnel 0 mode ipv6-ipv4 6to4

# Configure a 6to4 address for the tunnel interface.

[SwitchB-Tunnel0] ipv6 address 2002:0601:0101::1/64

# Specify VLAN-interface 100 as the source interface for the tunnel interface.

[SwitchB-Tunnel0] source vlan-interface 100

[SwitchB-Tunnel0] quit

# Configure a static route destined for 2002::/16 through the tunnel interface.

[SwitchB] ipv6 route-static 2002:: 16 tunnel 0

423B

Verifying the configuration

# Ping Host B from Host A or ping Host A from Host B. The ping operation succeeds.

D:\>ping6 -s 2002:201:101:1::2 2001::2

Pinging 2001::2

from 2002:201:101:1::2 with 32 bytes of data:

Reply from 2001::2: bytes=32 time=13ms

Reply from 2001::2: bytes=32 time=1ms

Reply from 2001::2: bytes=32 time=1ms

Reply from 2001::2: bytes=32 time<1ms

Ping statistics for 2001::2:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 13ms, Average = 3ms

156B

Configuring an ISATAP tunnel

Follow these guidelines when you configure an ISATAP tunnel:

You do not need to configure a destination address for an ISATAP tunnel, because the destination

IPv4 address is embedded in the ISATAP address.

Because automatic tunnels do not support dynamic routing, configure a static route destined for the
destination IPv6 network at each tunnel end. You can specify the local tunnel interface as the egress

interface of the route or specify the IPv6 address of the peer tunnel interface as the next hop of the

route. For the detailed configuration, see Layer 3—IP Routing Configuration Guide.

The automatic tunnel interfaces using the same encapsulation protocol cannot use the same source
IP address.

To configure an ISATAP tunnel:

Advertising