DGS-6604
based-on vendor-class
CLI Reference Guide
66
based-on vendor-class
This command is used to create an address binding rule for the DHCP address
pool based on the vendor class. Use the no form of the command to delete the
related rule setting.
based-on vendor-class {hex
HEXADECIMAL
|string
STRING
}
no based-on vendor-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 vendor class is allowed in one DHCP address pool. Use the no form of
the command to remove the user-class rule.
For vendor classes, e.g. DHCP-requests from Windows 98SE/ME are sent with a
vendor class of MSFT 98 and from Windows 2000/XP with a vendor class of
MSFT 5.0. The received VendorClass-ID string is compared with the specified
string. If the received string is longer than the specified string, then the excess
characters are ignored. For example, specifying MSFT will match both Win98SE/
ME and 2000/XP.
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 vendor-class string
MSFT 5.0
and there is another
based-on c-vid
200
command, the address pool only assigns an IP address to the client which
has C-VID=200 and its vendor class set to MSFT 5.0.
Examples
The following example sets the vendor class to match both Win98SE/ME and
2000/XP.
Syntax Description
HEXADECIMAL
A leading string, 0x has to be entered and then a following hexadecimal
sequence must be entered. The maximum length is 128 bytes.
STRING
The String can be displayed, but with no spaces allowed. The maximum length is
up to 64 bytes.
switch(config)#ip dhcp pool pool1
switch(config-dhcp)#based-on vendor-class string MSFT