No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
dhcp server excluded-ip-address

dhcp server excluded-ip-address

Function

The dhcp server excluded-ip-address command specifies the range of IP addresses that cannot be automatically assigned to clients from an interface address pool.

The undo dhcp server excluded-ip-address command deletes the specified range of IP addresses that cannot be automatically assigned to clients from the interface address pool.

By default, all IP addresses in the address pool can be automatically assigned to clients.

Format

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

undo dhcp server excluded-ip-address 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 automatically assigned.

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

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The dhcp server excluded-ip-address command applies to DHCP servers. Fixed IP addresses are allocated to some specific hosts (such as the WWW server) on the network for a long time. If these hosts' IP addresses are overlapped with IP addresses in the address pool and the DHCP server allocates these overlapped IP addresses to other hosts, IP address conflicts may occur. To prevent the IP address conflict, you need to exclude these IP addresses from being automatically allocated in the address pool.

You can run the dhcp server excluded-ip-address command to specify the IP addresses or the range of IP addresses that cannot be automatically assigned to clients in the interface address pool.

You can run the excluded-ip-address command to specify the IP addresses or the range of IP addresses that cannot be automatically assigned to clients in the global address pool.

Prerequisites

  • An address segment in the interface address pool is configured using the ip address command.
  • The DHCP server function has been enabled on the interface using the dhcp select interface command.

Precautions

  • IP addresses that cannot be automatically assigned must be in the address pool. If the range of IP addresses in the address pool is changed using the dhcp server ip-range command, IP addresses that are configured not to be automatically assigned must be within the changed IP address range.
  • You do not need to exclude the gateway address configured using the dhcp server gateway-list command from being automatically allocated. The device automatically adds the gateway address into the list of IP addresses that cannot be automatically allocated.

    You do not need to exclude the IP address of a server's interface connecting to a client from being automatically allocated. The device automatically sets the interface IP address to the Conflict status during address allocation.

  • If you run this 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.
  • You can run the display ip pool command to check used IP addresses in the current address pool, and then specify unused IP addresses that cannot be automatically assigned. To exclude used IP addresses from being automatically assigned, run the reset ip pool command to reclaim used IP addresses first.

Example

# Specify that IP addresses 192.168.1.1 to 192.168.1.20 cannot be automatically assigned to clients from the address pool on VLANIF100.
<Huawei> system-view
[Huawei] dhcp enable
[Huawei] interface vlanif 100
[Huawei-Vlanif100] ip address 192.168.1.1 24 
[Huawei-Vlanif100] dhcp select interface
[Huawei-Vlanif100] dhcp server excluded-ip-address 192.168.1.1 192.168.1.20
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 209309

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next