DGS-6604 based-on user-class
CLI Reference Guide
65
based-on user-class
This command is used so that DHCP administrators can define specific user
class identifiers to convey information about a client's software configuration or
about its user's preferences. Use the no form of the command to remove the
related setting rule.
based-on user-class {hex HEXADECIMAL |string STRING}
no based-on user-class {hex HEXADECIMAL |string STRING}
Default None
Command Mode DHCP pool configuration
Usage Guideline This command is used to create the address binding rule for the DHCP address
pool. One user class is allowed in one DHCP address pool. Use the no form of
the command to remove user-class rule.
This command will be combined using logical AND operations with the other
rules set by all the other based-on commands. For example, if the first rule is
based-on user-class alpha and there is another based-on c-vid 200 command,
the address pool will only assign an IP address to the client which has C-
VID=200 and user class as alpha.
Examples The following sets a rule used for IP address assignment based on the user class
alpha from DHCP address pool1.
The following sets a rule used for IP address assignment based on the user class
0x8080 from DHCP address pool1.
Syntax Description
HEXADECIMAL A leading string, 0x has to indicated and then a following hexadecimal sequence
must be entered. The maximum length is 128 bytes.
STRING The String can be displayed, but no spaces are allowed. The maximum length is
up to 64 bytes.
switch(config)#ip dhcp pool pool1
switch(config-dhcp)#based-on user-class string alpha
switch(config)#ip dhcp pool pool1
switch(config-dhcp)#based-on user-class hex 0x8080