66
<Sysname> system-view
[Sysname] dhcp class exam
[Sysname-dhcp-class-exam] if-match rule 4 option 82 hex 13ae92 offset 0 length 3
# Configure match rule 5 for DHCP user class exam. The rule matches DHCP requests in which the
Option 82 contains the hexadecimal number 13ae.
<Sysname> system-view
[Sysname] dhcp class exam
[Sysname-dhcp-class-exam] if-match rule 5 option 82 hex 13ae partial
# Configure match rule 6 for DHCP user class exam to match DHCP requests in which the giaddr
field is 10.1.1.1.
<Sysname> system-view
[Sysname] dhcp class exam
[Sysname-dhcp-class-exam] if-match rule 6 relay-agent 10.1.1.1
Related commands
dhcp class
ip-in-use threshold
Use ip-in-use threshold to set a threshold for the address pool usage alarming.
Use undo ip-in-use threshold to restore the default.
Syntax
ip-in-use threshold threshold-value
undo ip-in-use threshold
Default
The address pool usage threshold is 100%.
Views
DHCP address pool view
Predefined user roles
network-admin
Parameters
threshold-value: Specifies the threshold for the address pool usage percentage. The value range is 1
to 100.
Usage guidelines
If you execute this command in the same address pool view multiple times, the most recent
configuration takes effect.
When the address pool usage exceeds the threshold, the system sends log messages to the
information center. According to the log information, you can optimize the address pool configuration.
For more information about the information center, see Network Management and Monitoring
Configuration Guide.
Examples
# Set the address pool usage threshold to 85%.
<Sysname> system-view
[Sysname] dhcp server ip-pool p1
[Sysname-dhcp-pool-p1] ip-in-use threshold 85