How is DHCP disabled on an AR

The dhcp enable command is the prerequisite for configuring DHCP-related functions, including the DHCP relay, DHCP snooping, and DHCP server. These functions take effect only after the dhcp enable command is run. All DHCP-related functions become invalid after the undo dhcp enable command is run.
If some DHCP functions need to be disabled, perform the following configurations as required:
- Disable the DHCP server function.
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] undo dhcp select interface //Disable the DHCP server function based on the interface address pool.
[Huawei-GigabitEthernet1/0/0] undo dhcp select global //Disable the DHCP server function based on the global address pool.
- Disable the DHCP relay function.
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] undo dhcp select relay //Disable the DHCP relay function on the interface.
- Disable DHCP snooping.
a. Disable DHCP snooping.
[Huawei] undo dhcp snooping enable //You can specify ipv4 or ipv6 to disable DHCP snooping for IPv4 or IPv6.
b. Disable DHCP snooping on the interface.
[Huawei] interface ethernet 2/0/0
[Huawei-Ethernet2/0/0] undo dhcp snooping enable
c. Disable DHCP snooping in a VLAN.
[Huawei] vlan 100
[Huawei-vlan100] undo dhcp snooping enable

Scroll to top