The dhcpv6 relay option79 insert enable command inserts the Option79 field into DHCPv6 messages.
The undo dhcpv6 relay option79 insert enable command restores the default setting.
By default, the Option79 field is not inserted into DHCPv6 messages.
System view, VBDIF interface view, VLANIF interface view, Eth-Trunk interface view, GE interface view, XGE interface view, MultiGE interface view, MultiGE sub-interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk sub-interface view, GE sub-interface view, XGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view
Application Scenario
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.
Prerequisites
Precautions
# Insert the Option79 option into DHCPv6 messages in the system view.
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] ipv6 [HUAWEI] dhcpv6 relay option79 insert enable
# Insert the Option79 field into DHCPv6 messages in the interface view.
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] ipv6 [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ipv6 enable [HUAWEI-Vlanif100] dhcpv6 relay destination fc00:1::1 [HUAWEI-Vlanif100] dhcpv6 relay option79 insert enable