The dhcp server detect command enables detection of DHCP servers.
The undo dhcp server detect command disables detection of DHCP servers.
By default, detection of DHCP servers is disabled.
Usage Scenario
If bogus DHCP servers exist on the network, they send incorrect information to DHCP clients, such as the incorrect gateway address, incorrect DNS server, and incorrect IP address. As a result, DHCP clients cannot access the network or access incorrect networks.
After detection of DHCP servers is enabled, a DHCP snooping device checks and stores all information about DHCP servers in the DHCP Reply messages, such as DHCP server address and DHCP client port number, in the log. Based on logs, the network administrator checks for bogus DHCP servers on the network to maintain the network.
Prerequisites
DHCP snooping has been enabled on the device using the dhcp snooping enable command.