Multiple DHCPv6 relays can be connected between the DHCPv6 client and server. If the device functions as a DHCPv6 relay and the peer are connected to the DHCPv6 server, you must specify the IPv6 address for the DHCPv6 server when enabling the DHCPv6 relay. If the peer is connected to the next-hop relay agent, you must specify the IPv6 address for the next-hop relay agent and specify the IPv6 address for the peer DHCPv6 server or next-hop relay agent on the next-hop relay agent.
When the DHCPv6 relay agent functions as the gateway for clients, you need to configure the M/O flag of RA messages on the DHCPv6 relay-enabled interface to make the clients obtain IPv6 addresses or other network configuration parameters using DHCPv6.
After the M flag of RA messages is configured, the clients can obtain IPv6 addresses using DHCPv6. After the O flag of RA messages is configured, the clients can obtain other network configuration parameters using DHCPv6.
Run system-view
The system view is displayed.
Run interface interface-type interface-number
The interface view is displayed.
Run undo ipv6 nd ra halt
The RA message advertisement function is enabled on the device.
By default, the RA message advertisement function is disabled on a device.
Run ipv6 nd autoconfig managed-address-flag
The M flag of stateful address autoconfiguration in an RA message is configured.
By default, the M flag of stateful address autoconfiguration in an RA message is not configured.
Run ipv6 nd autoconfig other-flag
The O flag of stateful autoconfiguration of other information in an RA message is configured.
By default, the O flag of stateful autoconfiguration of other information in an RA message is not configured.