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

Page 165

Advertising
background image

19

Configuration on Device A.

# Enable IPv6.

<DeviceA> system-view

[DeviceA] ipv6

# Configure an IPv4 address for GigabitEthernet 1/2.

[DeviceA] interface gigabitethernet 1/2

[DeviceA-GigabitEthernet1/2] ip address 2.1.1.1 24

[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 the 6to4 tunnel.

[DeviceA] interface tunnel 0

[DeviceA-Tunnel0] ipv6 address 2002:201:101::1/64

[DeviceA-Tunnel0] source gigabitethernet 1/2

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

[DeviceA-Tunnel0] quit

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

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

Configuration on Device B

# Enable IPv6.

<DeviceB> system-view

[DeviceB] ipv6

# Configure an IPv6 address for GigabitEthernet 1/2.

[DeviceB] interface gigabitethernet 1/2

[DeviceB-GigabitEthernet1/2] ip address 5.1.1.1 24

[DeviceB-GigabitEthernet1/2] quit

# Configure an IPv6 address for GigabitEthernet 1/1.

[DeviceB] interface gigabitethernet 1/1

[DeviceB-GigabitEthernet1/1] ipv6 address 2002:0501:0101:1::1/64

[DeviceB-GigabitEthernet1/1] quit

# Configure a 6to4 tunnel.

[DeviceB] interface tunnel 0

[DeviceB-Tunnel0] ipv6 address 2002:0501: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 either host from the other, and the ping operation succeeds.

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

Advertising
This manual is related to the following products: