48
Step Command
Remarks
3.
Configure a match rule for
the DHCP user class.
if-match rule
rule-number
{
option
option-code
[
hex
hex-string
[
mask
mask
|
offset
offset
length
length
] ]
|
hardware-address
hardware-address
mask
hardware-address-mask
}
By default, no match rule is
configured for a DHCP user class.
4.
Return to system view.
quit
N/A
5.
Create a DHCP option
group and enter DHCP
option group view.
dhcp option group
option-group-number
By default, no DHCP option group
exists.
6.
Customize a DHCP
option.
option
code
{
ascii
ascii-string
|
hex
hex-string
|
ip-address
ip-address
&<1-8> }
By default, no DHCP option is
customized in a DHCP option
group.
DHCP options specified in DHCP
option groups take precedence
over those specified in DHCP
address pools.
7.
Create a DHCP address
pool and enter DHCP
address pool view.
dhcp server ip-pool
pool-name
By default, no DHCP address pool
exists.
8.
Specify the DHCP option
group for the DHCP user
class.
class
class-name
option group
option-group-number
By default, no DHCP option group
is specified for a DHCP user class.
Table 2 Common DHCP options
Option Option
name
Corresponding
command
Recommended option
command parameters
3 Router
Option
gateway-list ip-address
6
Domain Name Server Option
dns-list ip-address
15 Domain
Name
domain-name ascii
44
NetBIOS over TCP/IP Name
Server Option
nbns-list ip-address
46
NetBIOS over TCP/IP Node
Type Option
netbios-type hex
66
TFTP server name
tftp-server ascii
67
Boot file name
bootfile-name ascii
43
Vendor Specific Information
N/A
hex
Configuring the 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. The whitelist does not take effect on clients who request static IP
addresses, and the server always processes their requests.
To configure the DHCP user class whitelist:
Step Command
Remarks
1.
Enter system view.
system-view
N/A