DHCP address pool

This help contains the following topics:

Introduction

The Dynamic Host Configuration Protocol (DHCP) dynamically assigns IP addresses and other configuration information to network devices.

Background

DHCP server

DHCP adopts a client/server (CE) framework to dynamically assign IP addresses and other configuration information to network devices.

Figure-1 The DHCP server and DHCP clients are in the same network segment

IP address allocation mechanisms

DHCP supports the following allocation mechanisms:

IP address lease renewal

Unlike automatically assigned IP addresses, a dynamically assigned IP address has a lease. When the lease expires, the IP address is reclaimed by the DHCP server. To continue using the IP address, the client must extend the lease duration.

When about half of the lease duration elapses, the DHCP client unicasts a DHCP-REQUEST to the DHCP server to extend the lease. Depending on the availability of the IP address, the DHCP server returns one of the following messages:

If the client receives no reply, it broadcasts another DHCP-REQUEST message for lease extension when about seven-eighths of the lease duration elapses. Again, depending on the availability of the IP address, the DHCP server returns either a DHCP-ACK message or a DHCP-NAK message.

Address management methods for DHCP address pools

DHCP address pools support the following address management methods:

IP address allocation sequence

The DHCP server selects an IP address for a client in the following sequence:

  1. IP address statically bound to the client's MAC address or ID.

  2. IP address that was ever assigned to the client.

  3. IP address designated by the Option 50 field in the DHCP-DISCOVER message sent by the client.

    Option 50 is the Requested IP Address option. The client uses this option to specify the wanted IP address in a DHCP-DISCOVER message. The content of Option 50 is user defined.

  4. First assignable IP address found by using the address pool selection principles.

  5. IP address that was a conflict or lease-expired. If no IP address is assignable, the server does not respond.

DHCP options

Common DHCP options

DHCP extends the message format as an extension to Bootstrap Protocol (BOOTP) for compatibility. DHCP uses the Options field to carry information for dynamic address allocation and provide additional configuration information for clients.

The following are common DHCP options:

For more information about DHCP options, see RFC 2132 and RFC 3442.

Custom DHCP options

Some options, such as Option 43, have no standard definitions in RFC 2132.

DHCP address pool configuration guide

Analysis

Configure DHCP address pool settings as shown in the following figure:

Basic configuration

Add a DHCP address pool

  1. From the left navigation pane, select Configure > Network Config > DHCP > DHCP Address Pool.

  2. Click Add above the DHCP address pool list.

  3. Specify an address pool name and a network segment for dynamic address assignment.

  4. (Optional.) Specify a lease duration, gateway, and DNS servers.

  5. Click Submit.

After you create a DHCP address pool on the device, DHCP is enabled automatically on the device.

The configured lease duration does not apply to PPPoE users. The lease duration for PPPoE users is always unlimited.

Edit basic DHCP address pool settings

  1. From the left navigation pane, select Configure > Network Config > DHCP > DHCP Address Pool.

  2. In the DHCP address pool list, select the desired DHCP address pool, and then click the Edit icon in the Actions for that address pool.

  3. Click the Address Pool Settings tab for the selected DHCP address pool.

  4. In the Basic Configuration area, edit the network segment for dynamic address assignment, lease duration, gateway, or DNS servers as needed.

  5. Click OK.

Advanced configuration

  1. From the left navigation pane, select Configure > Network Config > DHCP > DHCP Address Pool.

  2. In the DHCP address pool list, select the desired DHCP address pool, and then click the Edit icon in the Actions for that address pool.

  3. Click the Address Pool Settings tab for the selected DHCP address pool.

  4. In the Advanced Configuration area, configure the following items as needed:

    • Reserved IP addresses: Reserve IP addresses or IP address ranges.

    • Static IP address bindings: Configure a list of static IP address bindings.

    • DHCP options: Customize DHCP options assigned from the DHCP server to DHCP clients. For some options, their content types are fixed. For more information, see the configuration guide for this product.

    • Select interfaces: In the Available pane, you can view the current DHCP mode of each selectable interface and the selected DHCP address pool. After you select the desired interfaces and add them to the Selected pane, they will operate in DHCP server mode and be bound to the selected DHCP address pool.

    • Domain name suffix: Specify a domain name suffix.

      You can specify a domain name suffix in a DHCP address pool on the DHCP server. With this suffix assigned, the client only needs to input part of a domain name, and the system adds the domain name suffix for name resolution. For example, if a user wants to access domain name aabbcc.com, you can configure domain name suffix com on the DHCP server. After the user input aabbcc, the system automatically add domain name suffix com at the end of aabbcc, and then searches for the domain name.

  5. Click OK.

Example: Configure DHCP address pools

Network configuration

As shown in the following figure, the AP obtains network configuration information through DHCP, including IP address, AC address, gateway address, and DNS server addresses.

The AC acts as the DHCP server to assign network configuration information to both the AP and DHCP clients:

Figure-2 Network diagram

Procedures

Configure basic AC settings

  1. Connect the wireless AC to other network devices. (Details not shown.)

  2. Configure AP onboarding and complete other service settings, including WLAN settings. (Details not shown.)

Configure VLAN interfaces on the AC

Create VLAN 10 and VLAN 20, and then create VLAN interface 10 and VLAN interface 20 on the AC.

Configure basic DHCP address pool settings

  1. From the left navigation pane, select Configure > Network Config > DHCP > DHCP Address Pool.

  2. Click Add to add a DHCP address pool.

    1. Set the address pool name to pool1, and specify subnet 10.1.1.0/25 for dynamic address assignment in the address pool.

    2. Set the lease duration to 10 days.

  3. Click Submit to complete adding DHCP address pool pool1.

    Figure-3 Adding a DHCP address pool

  4. Click Add to add another DHCP address pool.

    1. Set the address pool name to pool2, and specify subnet 10.1.1.128/25 for dynamic address assignment in the address pool.

    2. Set the lease duration to 10 days.

  5. Click Submit to complete adding DHCP address pool pool2.

Configure advanced DHCP address pool settings

  1. From the left navigation pane, select Configure > Network Config > DHCP > DHCP Address Pool.

  2. In the DHCP address pool list, select DHCP address pool pool1, and then click the Edit icon in the Actions for that address pool.

  3. Click the Address Pool Settings tab for DHCP address pool pool1.

  4. In the Advanced Configuration area, select VLAN-interface 10 in the Available pane, and then add it to the Selected pane. The interface will operate in DHCP server mode, and will be bound to DHCP address pool pool1.

  5. Click OK.

    Figure-4 Configuring the DHCP mode of VLAN-interface 10

  6. In the DHCP address pool list, select DHCP address pool pool2, and then click the Edit icon in the Actions for that address pool.

  7. Click the Address Pool Settings tab for DHCP address pool pool2.

  8. In the Advanced Configuration area, select VLAN-interface 20 in the Available pane, and then add it to the Selected pane. The interface will operate in DHCP server mode, and will be bound to DHCP address pool pool2.

  9. Click OK.

    Figure-5 Configuring the DHCP mode of VLAN-interface 20

Verify the configuration

  1. From the left navigation pane, select Configure > Network Config > DHCP > DHCP Address Pool., and then verify that DHCP address pools pool1 and pool2 are configured correctly.

    Figure-6 Verifying the DHCP address pool configuration