A user-defined DHCP option is configured.
The dhcp server option command specifies the options that are sent in the DHCPREPLY packet
by the server to the client. Learn about the functions of options before running the option
command. For descriptions of common DHCP options, see RFC 2132.
----End
6.4.7 (Optional) Configuring the Function That Prevents Identical
IP Addresses
Before assigning an IP address to a client, the AR150/200 functioning as a DHCP server must
ping the IP address to prevent address conflicts.
Context
You can use the dhcp server ping command to check whether a response to the ping packet is
received within a specified period. If the AR150/200 does not receive a response packet within
the specified period, it sends ping packets continuously until the number of sent ping packets
reaches the upper limit. If the AR150/200 still does not receive a response packet, the IP address
is not used on the local network segment. This ensures that the IP address to be assigned is
unique.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
dhcp server ping packet number
The maximum number of ping packets that the AR150/200 can send to the same destination is
configured.
The default value is 0. The AR150/200 sends no ping packet and does not perform a ping.
Step 3 Run:
dhcp server ping timeout milliseconds
The timeout period to wait for a response packet is set for the AR150/200.
By default, the timeout period is 500 milliseconds.
----End
6.4.8 Checking the Configuration
This section describes how to check the configurations of a DHCP server based on an interface
address pool.
Context
The configurations of a DHCP server based on an interface address pool are complete.
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service 6 DHCP Configuration
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
143