Common Operation (DHCP): Decreasing the Address Pool Range

Created Mar 29, 2016 14:11:41Latest reply Mar 29, 2016 14:13:15 1060 1 0 0

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.

More Information: S Series Switches Common Operation Guide

  • x
  • convention:

user_1763575     Created Mar 29, 2016 14:13:15 Helpful(0) Helpful(0)

Thanks!
  • x
  • convention:

Responses

Reply
You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top