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 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.
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 10.1.1.1 24 [HUAWEI-Vlanif100] dhcp select global
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ip address 10.1.1.1 24 [HUAWEI-GigabitEthernet0/0/1] dhcp select global