The MAC address is used to identify the DHCPv4 client on the IPv4 network and the DUID is used to identify the DHCPv6 client on the IPv6 network. In an IPv4 and IPv6 dual-stack service deployment scenario, the administrator wants to establish connections between clients' MAC addresses and IPv4 or IPv6 addresses obtained by the clients and perform unified management over dual-stack clients based on the MAC address. However, the MAC address of the DHCPv6 client cannot be identified using the DUID currently.
As defined in RFC, a DHCPv6 relay agent can fill the link address and link type of a client into the Option79 field. When a device functions as a DHCPv6 relay agent, you can run the dhcpv6 relay option79 insert enable command to insert the Option79 field into DHCPv6 messages for enabling the DHCPv6 server to obtain the clients' MAC addresses. When this command is run and the DHCPv6 relay agent receives a Request message from a client, it inserts the Option79 field into the Request message and forwards the message to the DHCPv6 server. The DHCPv6 server then obtains the MAC address of the client by parsing the Option79 field.
Run system-view
The system view is displayed.
Run dhcpv6 relay option79 insert enable
The function of inserting the Option79 field in DHCPv6 messages is configured.
By default, the Option79 field is not inserted into DHCPv6 messages.
Run system-view
The system view is displayed.
The interface view is displayed.
Run dhcpv6 relay option79 insert enable
The function of inserting the Option79 field in DHCPv6 messages is configured.
By default, the Option79 field is not inserted into DHCPv6 messages.