Basic ip forwarding on the device, Fib table, Configuration procedure – H3C Technologies H3C S12500 Series Switches User Manual

Page 137: Verifying the configuration

Advertising
background image

124

277B

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.

<SwitchA> 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.

<SwitchB> 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 IP 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 the neighbor information about GigabitEthernet 3/0/2 on Switch A.

[SwitchA] display ipv6 neighbors interface GigabitEthernet 3/0/2

Type: S-Static D-Dynamic I-Invalid

IPv6 Address Link Layer VID Interface State T Age

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

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

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

278B

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

Joined group address(es):

Advertising