HP VPN Firewall Appliances Network Management Command Reference
152
dhcp select server global-pool
Use dhcp select server global-pool to enable the DHCP server on an interface. After the interface
receives a DHCP request from a client, the DHCP server allocates 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 neither assigns an IP address to the client, nor serves as a DHCP relay agent
to forward the request.
Syntax
dhcp select server global-pool [ subaddress ]
undo dhcp select server global-pool [ subaddress ]
Default
The DHCP server is enabled on an interface when DHCP is enabled.
Views
Interface view
Default command level
2: System level
Parameters
subaddress: Supports secondary address allocation. When the DHCP server and client are on the same
network segment, the server preferably assigns an IP address from an address pool that resides on the
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.
Usage guidelines
Use the undo dhcp select server global-pool subaddress command to disable the support for secondary
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.
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 client-detect enable
Use dhcp server client-detect enable to enable client offline detection on the DHCP server.
Use undo dhcp server client-detect enable to disable the function.