Configure a DHCP global address pool

Configure a DHCP global address pool on a CE series switch as follows:

<HUAWEI> system-view
[~Huawei] dhcp enable //Enable DHCP globally.

[*Huawei] commit
[~Huawei] ip pool pool1 //Create a global address pool and enter its view.

[*Huawei-ip-pool-pool1] gateway-list 10.1.1.1 //Configure the egress gateway address for the global address pool of a DHCP server.

[*Huawei-ip-pool-pool1] network 10.1.1.0 mask 255.255.255.128 //Configure the range of IP addresses that can be allocated dynamically from a global address pool.

[*Huawei-ip-pool-pool1] dns-list 10.1.1.2 //Configure an IP address for the DNS server used by DHCP clients.

[*Huawei-ip-pool-pool1] excluded-ip-address 10.1.1.2 //Configure an IP address that cannot be automatically allocated from the global address pool.

[*Huawei-ip-pool-pool1] lease day 10 //Configure a lease for the IP address.

[*Huawei-ip-pool-pool1] commit
[~Huawei-ip-pool-pool1] quit

Scroll to top