The dhcp select interface command enables an interface to use the interface address pool.
The undo dhcp select interface command disables an interface from using the interface address pool.
By default, the DHCP server function using the interface address pool is disabled on an interface.
Usage Scenario
The dhcp select interface 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 interface command to configure a DHCP server to assign IP addresses from the interface address pool to clients.
The device can also assign IP addresses from a global address pool using the dhcp select global command.
When an interface configured with the DHCP server function is enabled to use the interface address pool and the interface address segment and IP address range pre-allocated by the DHCP server to DHCP clients are configured, the device preferentially uses the IP address segment configured using the dhcp server ip-range command and then the IP address segment configured on the interface.
Prerequisites
DHCP has been enabled globally using the dhcp enable command in the system view.
An IP address has been configured for an interface using the ip address command. The IP addresses assigned by the address pool and configured on the interface are on the same network segment.