Verification, Dhcpv6 relay agent configuration example, Network requirements – H3C Technologies H3C S7500E Series Switches User Manual

Page 155

Advertising
background image

14-8

With this command executed, if VLAN-interface 2 has no IP address configured, Switch A will

automatically generate a link-local address, and send an RS message, requesting the gateway (Switch

B) to reply with an RA message immediately.

Verification

After receiving an RA message with the “M” flag set to 0 and with the “O” flag set to 1, Switch A

automatically enables the stateless DHCPv6 function.

# You can use the display ipv6 dhcp client command to view the current client configuration

information. If the client successfully obtains configuration information from the server, the following

information will be displayed.

[SwitchA-Vlan-interface2] display ipv6 dhcp client interface vlan-interface 2

Vlan-interface2 is in stateless DHCPv6 client mode

State is OPEN

Preferred Server:

Reachable via address : FE80::213:7FFF:FEF6:C818

DUID : 0003000100137ff6c818

DNS servers : 1:2:3::5

1:2:4::7

Domain names : abc.com

Sysname.com

# You can use the display ipv6 dhcp client statistics command to view the current client statistics.

[SwitchA-Vlan-interface2] display ipv6 dhcp client statistics

Interface : Vlan-interface2

Packets Received : 1

Reply : 1

Advertise : 0

Reconfigure : 0

Invalid : 0

Packets Sent : 5

Solicit : 0

Request : 0

Confirm : 0

Renew : 0

Rebind : 0

Information-request : 5

Release : 0

Decline : 0

DHCPv6 Relay Agent Configuration Example

Network requirements

As shown in

Figure 14-6

, the network address prefix of DHCPv6 clients is 1::/64, and the IPv6 address

of the DHCPv6 server is 2::2/64. The DHCPv6 client and server need to communicate via a DHCPv6

relay agent (Switch A).

Switch A acts as the gateway of network 1::/64. It sends RA messages to notify the hosts to obtain IPv6

addresses and other configuration parameters through DHCPv6.

Advertising