How to configure reserved IP addresses on S series switches

For S series switches excluding the S1700, some IP addresses of the network segment of an IP address pool may be occupied by servers or other hosts during network planning. Some clients have special requirements and can only be configured with some IP addresses; or to reserve some IP addresses that are not assigned dynamically. In this scenario, exclude these IP addresses in the IP address pool to prevent IP address conflicts caused by dynamically allocation of a DHCP server.
Assume that IP addresses from 10.10.10.11 to 10.10.10.20 cannot be dynamically allocated. The configuration on S series switches excluding the S1700 is as follows:
- Interface-based
[HUAWEI] dhcp enable
[HUAWEI] interface vlanif 100 //Enter the view of the interface connected to the DHCP client.
[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
- Global
[HUAWEI] dhcp enable
[HUAWEI] interface vlanif 100 //Enter the view of the interface connected to the DHCP client.
[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