beautypg.com

Configuration procedure, Verifying the configuration – H3C Technologies H3C S12500-X Series Switches User Manual

Page 140

background image

129

Configuration procedure

This example assumes that the VLAN interfaces have been created on the switches.

1.

Configure Switch A:
# Specify a global unicast address for VLAN-interface 2.

system-view

[SwitchA] interface vlan-interface 2

[SwitchA-Vlan-interface2] ipv6 address 3001::1/64

[SwitchA-Vlan-interface2] quit

# Specify a global unicast address for VLAN-interface 1, and allow it to advertise RA messages

(no interface advertises RA messages by default).

[SwitchA] interface vlan-interface 1

[SwitchA-Vlan-interface1] ipv6 address 2001::1/64

[SwitchA-Vlan-interface1] undo ipv6 nd ra halt

[SwitchA-Vlan-interface1] quit

2.

Configure Switch B:
# Configure a global unicast address for VLAN-interface 2.

system-view

[SwitchB] interface vlan-interface 2

[SwitchB-Vlan-interface2] ipv6 address 3001::2/64

[SwitchB-Vlan-interface2] quit

# Configure an IPv6 static route with destination IPv6 address 2001::/64 and next hop address
3001::1.

[SwitchB] ipv6 route-static 2001:: 64 3001::1

3.

Configure the host:
Enable IPv6 for the host to automatically obtain an IPv6 address through IPv6 ND.
# Display neighbor information for Ten-GigabitEthernet 1/0/2 on Switch A.

[SwitchA] display ipv6 neighbors interface Ten-GigabitEthernet 1/0/2

Type: S-Static D-Dynamic O-Openflow I-Invalid

IPv6 Address Link Layer VID Interface State T Age

FE80::215:E9FF:FEA6:7D14 0015-e9a6-7d14 1 XGE1/0/2 STALE D 1238

2001::15B:E0EA:3524:E791 0015-e9a6-7d14 1 XGE1/0/2 STALE D 1248

The output shows that the IPv6 global unicast address that Host obtained is
2001::15B:E0EA:3524:E791.

Verifying the configuration

# Display the IPv6 interface settings on Switch A. All IPv6 global unicast addresses configured on the
interface are displayed.

[SwitchA] display ipv6 interface vlan-interface 2

Vlan-interface2 current state: UP

Line protocol current state: UP

IPv6 is enabled, link-local address is FE80::20F:E2FF:FE00:2

Global unicast address(es):

3001::1, subnet is 3001::/64

This manual is related to the following products: