R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)

50
Usage guidelines
If you use this command multiple times, the most recent configuration takes effect.
If you do not specify any parameters, the undo gateway-list command deletes all gateway addresses.
If you specify gateways in both address pool view and secondary subnet view, DHCP assigns the
gateway addresses in the secondary subnet view to the clients on the secondary subnet.
If you specify gateways in address pool view but not in secondary subnet view, DHCP assigns the
gateway addresses in address pool view to the clients on the secondary subnet.
Examples
# Specify the gateway address 10.1.1.1 in DHCP address pool 0.
<Sysname> system-view
[Sysname] dhcp server ip-pool 0
[Sysname-dhcp-pool-0] gateway-list 10.1.1.1
Related commands
display dhcp server pool
if-match
Use if-match to configure a match rule for a DHCP user class.
Use undo if-match to remove the match rule for a DHCP user class.
Syntax
if-match rule rule-number option option-code [ hex hex-string [ mask mask | offset offset length length ] ]
undo if-match rule rule-number
Default
No match rule is configured for the DHCP user class.
Views
DHCP user class view
Predefined user roles
network-admin
Parameters
rule rule-number: Assigns the match rule an ID in the range of 1 to 16. A smaller ID represents a higher
match priority.
option option-code: Matches a DHCP option by a number in the range of 1 to 254.
hex hex-string: Matches the specified string in the option, which must be a hex string of even numbers in
the range of 2 to 256. If you do not specify the hex-string argument, the DHCP server only checks whether
the specified option exists in the received packets.
mask mask: Specifies the mask used to match the option content. The mask argument is a hex string of
even numbers in the range of 2 to 256. The length of mask must be the same as that of hex-string.
offset offset: Specifies the offset to match the option, in the range of 0 to 254 bytes. If you do not specify
the offset argument, the server matches the entire option with the rule.