Creating a DHCP user class

About DHCP user class

The DHCP server classifies DHCP users into different user classes according to the hardware address, option information, or the giaddr field in the received DHCP requests. The server allocates IP addresses and configuration parameters to DHCP clients in different user classes.

Procedure

  1. Enter system view.

    system-view

  2. Create a DHCP user class and enter DHCP user class view.

    dhcp class class-name

  3. Configure a match rule for the DHCP user class.

    if-match rule rule-number { hardware-address hardware-address mask hardware-address-mask | option option-code [ ascii ascii-string [ offset offset | partial ] | hex hex-string [ mask mask | offset offset length length | partial ] ] | relay-agent gateway-address }

    By default, no match rule is configured for a DHCP user class.