R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

141
same subnet as the primary IP address of the server interface (connecting to the client). If the address
pool contains no assignable IP address, the server assigns an IP address from an address pool that
resides on the same subnet as the secondary IP addresses of the server interface. If the interface has
multiple secondary IP addresses, each address pool is tried in turn for address allocation. If the
subaddress keyword is not specified, the DHCP server can only assign an IP address from the address
pool that resides on the same subnet as the primary IP address of the server interface.
Description
Use dhcp select server global-pool to enable the DHCP server on specified interface(s). After the
interface receives a DHCP request from a client, the DHCP server will allocate an IP address from the
address pool.
Use undo dhcp select server global-pool to remove the configuration. Upon receiving a DHCP request
from a client, the interface will neither assigns an IP address to the client, nor serves as a DHCP relay
agent to forward the request.
Use undo dhcp select server global-pool subaddress to disable the support for secondary address
allocation.
By default, the DHCP server is enabled on an interface.
Examples
# Enable the DHCP server on GigabitEthernet 0/1 to assign IP addresses from the address pool that
resides on the same subnet as the primary IP address of the server interface (connecting to the client) for
the client.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/1
[Sysname-GigabitEthernet0/1] dhcp select server global-pool
dhcp server detect
Syntax
dhcp server detect
undo dhcp server detect
View
System view
Default level
2: System level
Parameters
None
Description
Use dhcp server detect to enable unauthorized DHCP server detection.
Use undo dhcp server detect to disable the function.
By default, the function is disabled.
With this function enabled, upon receiving a DHCP request, the DHCP server resolves from the request
the IP addresses of DHCP servers which ever offered IP addresses to the DHCP client and the receiving
interface. Each server detected is recorded only once. The administrator can use this information to check
for unauthorized DHCP servers.