dhcp select global
Function
The dhcp select global command enables an interface to use the global address pool.
The undo dhcp select global command disables an interface from using the global address pool.
By default, an interface is disabled from using the global address pool.
Usage Guidelines
Usage Scenario
The dhcp select global command applies to DHCP servers. After receiving a DHCP Request message from a DHCP client, a DHCP server assigns an IP address from the local address pool to the client. Run the dhcp select global command to configure the device to assign IP addresses from the global address pool. When no interface address pool is created for the DHCP server, the DHCP server assigns an IP address from the global address pool to an online user.
The device can also assign IP addresses from an interface address pool using the dhcp select interface command in the interface view.
DHCP has been enabled using the dhcp enable command in the system view.
Before running the dhcp select global command, you need to run the ip address command to configure the interface IP address.
Precautions
If the DHCP relay and DHCP server functions are simultaneously configured on an interface, only the DHCP server function takes effect.