R21xx-HP FlexFabric 11900 Layer 3 IP Services Command Reference

51
Usage guidelines
The gateway-list command executed in DHCP address pool view specifies gateway addresses for all
DHCP clients that obtain IP addresses from this address pool.
To specify gateways for clients that obtain IP addresses from a secondary subnet, use the gateway-list
command in secondary subnet view. If you specify gateways in both address pool view and secondary
subnet view, DHCP preferentially assigns the gateway addresses specified in the secondary subnet view
to the clients on the secondary subnet.
If you use this command multiple times, the most recent configuration takes effect.
The undo gateway-list command without any parameter specified deletes all gateway addresses.
A gateway address must reside on the same subnet as the assignable IP addresses.
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 option
Use if-match option to configure a match rule for a DHCP user class.
Use undo if-match option to remove the match rule for a DHCP user class.
Syntax
if-match option option-code [ hex hex-string [ mask mask | offset offset length length ] ]
undo if-match option option-code [ hex hex-string [ mask mask | offset offset length length ] ]
Default
No match rule is configured for the DHCP user class.
Views
DHCP user class view
Predefined user roles
network-admin
Parameters
option-code: Matches a DHCP option identified 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 the hex-string argument is not specified, 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 the offset argument
is not specified, the server matches the entire option with the rule.