46
Configuring the DHCP user class whitelist
About DHCP user class whitelist
The DHCP user class whitelist allows the DHCP server to process requests only from clients on the
DHCP user class whitelist.
Restrictions and guidelines
The whitelist does not take effect on clients who request static IP addresses, and the server always
processes their requests.
Procedure
1. Enter system view.
system-view
2. Enter DHCP address pool view.
dhcp server ip-pool pool-name
3. Enable the DHCP user class whitelist.
verify class
By default, the DHCP user class whitelist is disabled.
4. Add DHCP user classes to the DHCP user class whitelist.
valid class class-name&<1-8>
By default, no DHCP user class is on the DHCP user class whitelist.
Applying an address pool to an interface
About applying an address pool to an interface
Perform this task to apply a DHCP address pool to an interface.
Upon receiving a DHCP request from the interface, the DHCP server performs address allocation in
the following ways:
• If a static binding is found for the client, the server assigns the static IP address and
configuration parameters from the address pool that contains the static binding.
• If no static binding is found for the client, the server uses the address pool applied to the
interface for address and configuration parameter allocation.
Procedure
1. Enter system view.
system-view
2. Enter interface view.
interface interface-type interface-number
3. Apply an address pool to the interface.
dhcp server apply ip-pool pool-name
By default, no address pool is applied to an interface.
If the applied address pool does not exist, the DHCP server fails to perform dynamic address
allocation.