Configuration verification – H3C Technologies H3C SecPath F1000-E User Manual

Page 167

Advertising
background image

21

# Configure an IPv4 address for GigabitEthernet 1/2.

[DeviceA] interface gigabitethernet 1/2

[DeviceA-GigabitEthernet1/2] ip address 2.1.1.1 255.255.255.0

[DeviceA-GigabitEthernet1/2] quit

# Configure an IPv6 address for GigabitEthernet 1/1.

[DeviceA] interface gigabitethernet 1/1

[DeviceA-GigabitEthernet1/1] ipv6 address 2002:0201:0101:1::1/64

[DeviceA-GigabitEthernet1/1] quit

# Configure a 6to4 tunnel.

[DeviceA] interface tunnel 0

[DeviceA-Tunnel0] ipv6 address 2002:0201:0101::1/64

[DeviceA-Tunnel0] source gigabitethernet 1/2

[DeviceA-Tunnel0] tunnel-protocol ipv6-ipv4 6to4

[DeviceA-Tunnel0] quit

# Configure a static route to the 6to4 relay device.

[DeviceA] ipv6 route-static 2002:0601:0101:: 64 tunnel 0

# Configure the default route to the IPv6-only network.

[DeviceA] ipv6 route-static :: 0 2002:0601:0101::1

Configuration on Device B

# Enable IPv6.

<DeviceB> system-view

[DeviceB] ipv6

# Configure an IPv4 address for GigabitEthernet 1/2.

[DeviceB] interface gigabitethernet 1/2

[DeviceB-GigabitEthernet1/2] ip address 6.1.1.1 255.255.255.0

[DeviceB-GigabitEthernet1/2] quit

# Configure an IPv6 address for GigabitEthernet 1/1.

[DeviceB] interface gigabitethernet 1/1

[DeviceB-GigabitEthernet1/1] ipv6 address 2001::1/16

[DeviceB-GigabitEthernet1/1] quit

# Configure a 6to4 tunnel.

[DeviceB] interface tunnel 0

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

[DeviceB-Tunnel0] source gigabitethernet 1/2

[DeviceB-Tunnel0] tunnel-protocol ipv6-ipv4 6to4

[DeviceB-Tunnel0] quit

# Configure a static route whose destination address is 2002::/16 and next-hop is the tunnel interface.

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

Configuration verification

After the above configuration, ping Host B from Host A.

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

Pinging 2001::2

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

Advertising
This manual is related to the following products: