Configuring IP address conflict detection
Before assigning an IP address, the DHCP server pings that IP address.
If the server receives a response within the specified period, it selects and pings another IP address.
If it receives no response, the server continues to ping the IP address until a specific number of ping packets are sent. If still no response is received, the server assigns the IP address to the requesting client. The DHCP client uses gratuitous ARP to perform IP address conflict detection.
To configure IP address conflict detection:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. (Optional.) Set the maximum number of ping packets to be sent for conflict detection. | dhcp server ping packets number | The default setting is one. The value 0 disables IP address conflict detection. |
3. (Optional.) Set the ping timeout time. | dhcp server ping timeout milliseconds | The default setting is 500 ms. The value 0 disables IP address conflict detection. |