The ip address dhcp-alloc command enables the DHCP client function on an interface.
The undo ip address dhcp-alloc command disables the DHCP client function from an interface.
By default, the DHCP client function is not enabled on an interface.
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, VE sub-interface view, VLANIF interface view, Sub-interface view, Management interface view
Usage Scenario
To allow a device to dynamically obtain an IP address from the DHCP server by means of DHCP, run the ip address dhcp-alloc command to enable the DHCP client function on an interface.
After the DHCP client function is enabled, the interface can send a DHCP request packet to the DHCP server. Upon receipt of the request packet, the DHCP server replies with a DHCP response packet. The device can then obtain information about the assigned IP address from the DHCP response packet.Precautions