R2511-HP MSR Router Series Layer 3 - IP Services Command Reference(V5)
20
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 you do not specify the subaddress keyword, 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 Ethernet 1/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 ethernet 1/1
[Sysname-Ethernet1/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.
Syntax
dhcp server client-detect enable
undo dhcp server client-detect enable
Default
The function is disabled.










