< Home

Enabling DHCP

Context

Before enabling the DHCP relay function, enable DHCP in the system view.

  • The dhcp enable command is the prerequisite for configuring DHCP-related functions, including DHCP relay, DHCP snooping, and DHCP server. These functions take effect only after the dhcp enable command is run. After the undo dhcp enable command is run, all DHCP-related configurations of the device are deleted. After DHCP is enabled again using the dhcp enable command, all DHCP-related configurations of the device are restored to the default configurations.

  • After DHCP is enabled, if STP is also enabled, address allocation may slow down. By default, STP is enabled. To disable STP, run the undo stp enable command.

Procedure

  1. Enter the system view.

    system-view

  2. Enable DHCP.

    dhcp enable

    By default, DHCP is disabled.

  3. (Optional) Enable dynamic route limiting on DHCP messages.

    dhcp speed-limit auto

    By default, dynamic rate limiting is disabled on DHCP messages.

  4. (Optional) Enable the DHCP broadcast suppression function.

    dhcp broadcast suppress enable

    By default, the DHCP broadcast suppression function is disabled.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >