dhcp class

Use dhcp class to create a DHCP user class and enter the DHCP user class view.

Use undo dhcp class to remove the specified DHCP user class.

Syntax

dhcp class class-name

undo dhcp class class-name

Default

No DHCP user class exists.

Views

System view

Predefined user roles

network-admin

Parameters

class-name: Specifies the name of a DHCP user class, a case-insensitive string of 1 to 63 characters.

Usage guidelines

You can also use this command to enter the view of an existing DHCP user class.

In the DHCP user class view, use the if-match command to configure a match rule to match specific clients. Then use the class command to specify an IP address range for the matching clients.

Examples

# Create a DHCP user class test and enter DHCP user class view.

<Sysname> system-view
[Sysname] dhcp class test
[Sysname-dhcp-class-test]

Related commands