Configure DHCP server on S series switch based on the global address pool

Publication Date:  2016-11-24 Views:  96 Downloads:  0
Issue Description
Configure DHCP server on S series switch based on the global address pool.
Solution
For S series switches (except S1700 switches), after a DHCP server based on the global address pool is configured, that is, an IP address pool is created in the system view, IP addresses in the address pool can be allocated to DHCP clients connected to all interfaces.

This configuration mode applies to scenarios where the DHCP server and clients are on different network segments and a DHCP relay exists. In addition, this configuration mode is used to allocate IP addresses to DHCP clients connected to multiple interfaces when the DHCP server and clients are on the same network segment. The configurations are as follows:

[HUAWEI] dhcp enable //Enable the DHCP function.
[HUAWEI] ip pool pool1 //Configure a global address pool.
[HUAWEI-ip-pool-pool1] network 10.1.1.0 mask 255.255.255.0 //Configure an IP address range that can be dynamically allocated.
[HUAWEI-ip-pool-pool1] gateway-list 10.1.1.1 //Configure an IP address for the gateway.
[HUAWEI-ip-pool-pool1] dns-list 114.114.114.114 //Configure the IP address of the DNS server for DHCP clients.
[HUAWEI-ip-pool-pool1] quit
[HUAWEI] interface vlanif 100 //Create an interface connecting the DHCP server to the DHCP clients.
[HUAWEI-Vlanif100] ip address 10.1.1.1 255.255.255.0 //This IP address must be on the same network segment as the IP address pool.
[HUAWEI-Vlanif100] dhcp select global //Enable the DHCP server function to assign IP addresses to clients from the global address pool.

END