How is DHCP disabled on an AR

0

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

Other related questions:
How do I disable the information center
Run the undo info-center enable command in the system view to disable the information center. After the undo info-center enable command is executed, logs including logs generated by the undo info-center enable command, traps, and debugging messages are not recorded.

How to disable the web function on an AR router
How to disable the web function on an AR router? For routers that support web NMS, disable the HTTP server on the routers to disable the web function. Specific method is as follows: [Huawei] undo http server enable //Disable the HTTP service. [Huawei] undo http secure-server enable //Disable the HTTPS service.

How to delete a sub-interface of an AR router
You can delete a sub-interface of an AR router as follows: You can run the undo interface sub-interface number command to delete a created sub-interface. system-view [Huawei] undo interface gigabitethernet 1/0/0.1 //Delete sub-interface G1/0/0.1

How to enable or disable the Auto-Config function on an AR
When you log in to a new device (without the startup configuration file) through the console interface, the following information is displayed: "Auto-Config is working. Before configuring the device, stop Auto-Config. If you perform configurations when Auto-Config is running, the DHCP, routing, DNS, and VTY configurations will be lost. Do you want to stop Auto-Config?[y/n]:" To keep Auto-Config enabled, enter n. To disable Auto-Config, enter y.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top