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

Page 199

Advertising
background image

185

Figure 76 Network diagram

Configuration procedure

1.

Configure Switch A as a DHCPv6 relay agent:
# Enable the IPv6 packet forwarding function.

<SwitchA> system-view

[SwitchA] ipv6

# Configure the IPv6 addresses of VLAN-interface 2 and VLAN-interface 3 respectively.

[SwitchA] interface vlan-interface 2

[SwitchA-Vlan-interface2] ipv6 address 2::1 64

[SwitchA-Vlan-interface2] quit

[SwitchA] interface vlan-interface 3

[SwitchA-Vlan-interface3] ipv6 address 1::1 64

# Enable DHCP relay agent and specify the DHCPv6 server address on VLAN-interface 3.

[SwitchA-Vlan-interface3] ipv6 dhcp relay server-address 2::2

2.

#Configure Switch A as a gateway. Enable Switch A to send RA messages and set the M and O

flags.

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

[SwitchA-Vlan-interface3] ipv6 nd autoconfig managed-address-flag

[SwitchA-Vlan-interface3] ipv6 nd autoconfig other-flag

Verifying the configuration

# Display DHCPv6 server address information on Switch A.

[SwitchA-Vlan-interface3] display ipv6 dhcp relay server-address all

Interface: Vlan3

Server address(es) Output Interface

2::2

# Display packet statistics on the DHCPv6 relay agent.

[SwitchA-Vlan-interface3] display ipv6 dhcp relay statistics

Packets dropped : 0

Error : 0

Excess of rate limit : 0

Advertising