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

S1720, S2700, S3700, S5700, S6700, S7700, and S9700 Series Switches Common Operation Guide

This document describes the CLI-based configurations of universal protocols and common features for Huawei switches on basic networks.
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).
Decreasing the Address Pool Range

Decreasing the Address Pool Range

You can increase the mask length of an address pool to decrease the address pool range. For example, a DHCP server can assign IP addresses (in an address pool with a mask length of 24) to 254 users. Then 140 users are deleted from the network. To save address resources, you can increase the mask length of the address pool to 25 so that the address pool range is decreased. Before decreasing the address pool range, check whether IP addresses have been assigned to clients. For details, see Checking IP Addresses Used.

NOTE:

After the mask length is increased from 24 to 25, 128 IP addresses can be saved.

  • If the addresses have not been assigned:

    Increase the mask length of an address pool on a device functioning as the DHCP server to decrease the address pool range.

    • Configuration in the global address pool:

      <HUAWEI> system-view
      [HUAWEI] ip pool pool1
      [HUAWEI-ip-pool-pool1] undo network
      [HUAWEI-ip-pool-pool1] network 10.1.1.0 mask 25  //Adjust the mask length.
    • Configuration in the interface address pool:

      <HUAWEI> system-view
      [HUAWEI] interface vlanif 100
      [HUAWEI-Vlanif100] ip address 10.1.1.1 25  //Adjust the mask length.
      [HUAWEI-Vlanif100] dhcp select interface  //Re-enable the interface address pool function.
  • If the addresses have been assigned:

    On the device functioning as the DHCP server, perform the following operations in sequence to decrease the address pool range: withdraw IP addresses (only in the global address pool), configure the function to prevent repetitive IP address allocation, and adjust the mask length of the address pool.

    NOTE:

    After the address pool range is decreased, the clients that have IP addresses beyond the range will re-apply for addresses when their leases expire.

    • Configuration in the global address pool:

      <HUAWEI> reset ip pool name pool1 all  //Withdraw all IP addresses.
      <HUAWEI> system-view
      [HUAWEI] dhcp server ping packet 3  //Enable the function of preventing repetitive IP address allocation.
      [HUAWEI] dhcp server ping timeout 100  //Enable the function of preventing repetitive IP address allocation.
      [HUAWEI] ip pool pool1
      [HUAWEI-ip-pool-pool1] undo network
      [HUAWEI-ip-pool-pool1] network 10.1.1.0 mask 25  //Adjust the mask length.
    • Configuration in the interface address pool:

      <HUAWEI> system-view
      [HUAWEI] dhcp server ping packet 3  //Enable the function of preventing repetitive IP address allocation.
      [HUAWEI] dhcp server ping timeout 100  //Enable the function of preventing repetitive IP address allocation.
      [HUAWEI] interface vlanif 100
      [HUAWEI-Vlanif100] ip address 10.1.1.1 25  //Adjust the mask length.
      [HUAWEI-Vlanif100] dhcp select interface  //Re-enable the interface address pool function.
Translation
Download
Updated: 2018-09-03

Document ID: EDOC1000057410

Views: 89712

Downloads: 12196

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