When the uplink interface of the device is configured as the DHCPv6 PD client, the client uses the DHCPv6 protocol to dynamically obtain an IPv6 address prefix from the DHCPv6 PD server. The downlink interface is bound to the obtained IPv6 address prefix, so that the IPv6 address can be automatically generated for the user in route advertising mode.
Run the display dhcpv6 client prefix [ name prefix-name ] command to check the IPv6 address prefix on the device that functions as the DHCPv6 PD client.
Run the system-view command to enter the system view.
(Optional) On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.
Run the ipv6 enable command to enable the IPv6 function on the interface.
By default, the IPv6 function is disabled on an interface.
Run the ipv6 address auto link-local or ipv6 address ipv6-address link-local command to automatically or manually configure the link-local address on the interface.
By default, no link-local address is configured for an interface.
Run the ipv6 address dhcpv6-prefix { ipv6-address prefix-length | ipv6-address/prefix-length } command to bind the interface to the IPv6 address prefix obtained by the DHCPv6 PD client.
By default, the interface is not bound to the IPv6 address prefix obtained by the DHCPv6 PD client.
The value of prefix-length for the IPv6 address prefix bound to the interface must be greater than the length of the prefix obtained by the DHCPv6 PD client; otherwise, the interface cannot generate the global unicast IPv6 address based on the bound IPv6 address prefix and record the log DHCP/4/PREF_LENCHK.
You can run the display dhcpv6 client prefix [ name prefix-name ] command to check the length of the prefix obtained by the DHCPv6 PD client.
Run the undo ipv6 nd ra halt command to enable the interface to send RA packets.
By default, the interface is disabled from sending RA packets.