< Home

Creating an Address Pool

Context

Create an interface address pool for IP address allocation to clients on the same network segment as the DHCP server's interface, or create a global address pool for IP address allocation to all clients connected to the DHCP server.

The sum of the number of IP addresses being in use and that of expired IP addresses equals the number of DHCP clients. When the sum of the number of IP addresses being in use and that of expired IP addresses reaches the maximum of DHCP client specification, the device can automatically release some of the expired IP addresses to reduce the memory usage.

Procedure

  • Create an interface address pool.
    1. Enter the system view.

      system-view

    2. Enter the interface view.

      interface interface-type interface-number

    3. Configure an IP address for the interface.

      ip address ip-address { mask | mask-length }

      The IP address segment of the interface is the interface address pool. The interface address mask cannot be set to 31; otherwise, the interface address pool may fail to be configured.

  • Create a global address pool.
    1. Enter the system view.

      system-view 

    2. Create a global address pool and enter the global address pool view.

      ip pool ip-pool-name

      By default, no global address pool is created on the device.

      The parameter ip-pool-name uniquely specifies the name of an address pool. For example, create a global address pool named global_f1 for employees on the first floor as follows:

      [sysname] ip pool global_f1

    3. Specify the range of IP addresses to be dynamically allocated from the address pool.

      network ip-address [ mask { mask | mask-length } ]

      By default, the range of IP addresses that can be allocated dynamically to clients is not specified.

      An address pool can be configured with only one IP address segment. The IP address range is determined by the mask length.

      When specifying the IP address range, ensure that IP addresses within the range are on the same network segment as the interface IP address of the DHCP server or DHCP relay agent to avoid incorrect IP address allocation.

      When configuring an address pool, ensure that IP addresses on the network address segment must be class A, B, or C IP addresses, and the mask cannot be set to 0, 1, 31, or 32.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >