< Home

dhcp server forbidden-ip (upgrade-compatible command)

Function

The dhcp server forbidden-ip command specifies the range of IP addresses that cannot be assigned to clients by the DHCP server.

By default, the system does not configure the range of IP addresses that cannot be assigned to clients by the DHCP server.

Format

dhcp server forbidden-ip start-ip-address [ end-ip-address ]

Parameters

Parameter

Description

Value

start-ip-address

Specifies the start IP address that cannot be automatically assigned.

The value is in dotted decimal notation.

end-ip-address

Specifies the end IP address that cannot be automatically assigned. If end-ip-address is not specified, only start-ip-address cannot be assigned to clients.

The value is in dotted decimal notation. end-ip-address and start-ip-address must be on the same network segment and end-ip-address must be larger than start-ip-address.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The dhcp server forbidden-ip command applies to DHCP servers. In an IP address pool, some IP addresses need to be reserved for other services, and some IP addresses are statically assigned to certain hosts (such as the DNS server) and cannot be automatically assigned to clients. You can run the dhcp server forbidden-ip command to specify the range of the IP addresses that cannot be automatically assigned to clients from the IP address pool.

Precautions

  • The excluded IP address must be in the IP address pool range.
  • The excluded IP address or IP address segment cannot be automatically assigned to clients from a local address pool.
  • If you run the dhcp server forbidden-ip command multiple times, you can specify multiple IP addresses or IP address segments that cannot be automatically assigned to clients from the specified address pool.

Example

# Configure that IP addresses in the address pool 10.10.10.10 to 10.10.10.20 cannot be automatically assigned to clients.

<HUAWEI> system-view 
[HUAWEI] dhcp server forbidden-ip 10.10.10.10 10.10.10.20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >