How are IP addresses that cannot be dynamically allocated configured on an AR

During network planning, some IP addresses in the address pool may be used by servers or other hosts, or some clients can be configured with specified IP addresses only. In this case, IP addresses cannot be dynamically allocated in the address pool to prevent IP address conflicts.
Assume that IP addresses in the range of 10.10.10.11 to 10.10.10.20 cannot be dynamically allocated. The configuration on the AR is as follows:
- Based on the interface address pool:
[Huawei] dhcp enable
[Huawei] interface gigabitethernet 1/0/1 //Enter the view of the AR interface connected to the DHCP client.
[Huawei-GigabitEthernet1/0/1] undo portswitch
[Huawei-GigabitEthernet1/0/1] ip address 10.10.10.10 24
[Huawei-GigabitEthernet1/0/1] dhcp select interface
[Huawei-GigabitEthernet1/0/1] dhcp server excluded-ip-address 10.10.10.11 10.10.10.20
- Based on the global address pool:
[Huawei] dhcp enable
[Huawei] interface gigabitethernet 1/0/1 ///Enter the view of the AR interface connected to the DHCP client.
[Huawei-GigabitEthernet1/0/1] undo portswitch
[Huawei-GigabitEthernet1/0/1] ip address 10.10.10.10 24
[Huawei-GigabitEthernet1/0/1] dhcp select global
[Huawei-GigabitEthernet1/0/1] 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