IP address exclusion configuration on S series switch

For S series switches except S1700 switches, some IP addresses in an address pool may be used by other servers and hosts, configured for clients with special requirements, or reserved. These IP addresses need to be excluded from the address pool so that the DHCP server does not assign them to clients, preventing IP address conflicts.
For example, you can configure IP addresses in the range of 10.10.10.11 to 10.10.10.20 that cannot be automatically assigned to clients from the address pool on an S series switch except an S1700 switch as follows:
- For an interface address pool:
[HUAWEI] dhcp enable
[HUAWEI] interface vlanif 100 //Enter the view of the interface connected to DHCP clients.
[HUAWEI-Vlanif100] ip address 10.10.10.10 24
[HUAWEI-Vlanif100] dhcp select interface
[HUAWEI-Vlanif100] dhcp server excluded-ip-address 10.10.10.11 10.10.10.20
- For a global address pool:
[HUAWEI] dhcp enable
[HUAWEI] interface vlanif 100 //Enter the view of the interface connected to DHCP clients.
[HUAWEI-Vlanif100] ip address 10.10.10.10 24
[HUAWEI-Vlanif100] dhcp select global
[HUAWEI-Vlanif100] quit
[HUAWEI] ip pool global1
[HUAWEI-ip-pool-global1] network 10.10.10.0 mask 24
[HUAWEI-ip-pool-global1] excluded-ip-address 10.10.10.11 10.10.10.20

Scroll to top