48
Procedure
1. Enter system view.
system-view
2. Enable DHCP.
dhcp enable
By default, DHCP is disabled.
Enabling the DHCP server on an interface
About enabling the DHCP server on an interface
Perform this task to enable the DHCP server on an interface. Upon receiving a DHCP request on the
interface, the DHCP server assigns the client an IP address and other configuration parameters from
a DHCP address pool.
Procedure
1. Enter system view.
system-view
2. Enter interface view.
interface interface-type interface-number
3. Enable the DHCP server on the interface.
dhcp select server
By default, the DHCP server is enabled on the interface.
Configuring IP address conflict detection
About 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 the maximum
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.
Procedure
1. Enter system view.
system-view
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.
To disable IP address conflict detection, set the value to 0.
3. (Optional.) Set the ping timeout time.
dhcp server ping timeout milliseconds
The default setting is 500 ms.
To disable IP address conflict detection, set the value to 0.