F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Configuration Guide-6PW100

172
Some DHCP clients, such as a WWW server, need fixed IP addresses. To provide a fixed IP
address for such a client, you can statically bind the MAC address or ID of the client to an IP
address in a DHCP address pool. When the client requests an IP address, the DHCP server assigns
the IP address in the static binding to the client.
Follow these guidelines when you configure static address allocation:
{ Use the static-bind ip-address command together with static-bind mac-address or static-bind
client-identifier to accomplish a static binding configuration.
{ In a DHCP address pool, if you execute the static-bind mac-address command before the
static-bind client-identifier command, the latter overwrites the former and vice versa.
{ If you use the static-bind ip-address, static-bind mac-address, or static-bind client-identifier
command repeatedly in the DHCP address pool, the new configuration overwrites the previous
one.
{ The IP address of the static binding cannot be an interface address of the DHCP server.
Otherwise, an IP address conflict may occur, making the bound client unable to obtain an IP
address correctly.
{ The ID of the static binding must be identical to the ID displayed by using the display dhcp
client verbose command on the client. Otherwise, the client cannot obtain an IP address.
{ The specified lease duration takes effect but the lease duration displayed by the display dhcp
server ip-in-use all command is still Unlimited.
{ When the device serves as a DHCP client or BOOTP client, you must bind the DHCP client's ID
to an IP address, or bind the BOOTP client's MAC address to an IP address on the DHCP server.
Otherwise, the DHCP or BOOTP client cannot obtain a static IP address.
{ If the interfaces on a DHCP client share the same MAC address, specify the client ID, rather
than MAC address, in a static binding to identify the requesting interface. If you do not do this,
the client may fail to obtain an IP address.
To configure a static binding in a common address pool:
Ste
p
Command
Remarks
329. Enter system view. system-view N/A
330. Enter common address pool view.
dhcp server ip-pool pool-name N/A
331. Specify the IP address.
static-bind ip-address ip-address
[ mask-length | mask mask ]
No IP addresses are statically
bound by default.
332. Specify the MAC address or client
ID.
Specify the MAC address:
static-bind mac-address
mac-address
Specify the client ID:
static-bind client-identifier
client-identifier
Use either of the commands.
Neither is bound statically by
default.
333. Specify the lease duration for the
IP address.
expired { day day [ hour hour
[ minute minute [ second second ] ] ]
| unlimited }
Optional.
By default, the lease duration
of the IP address is unlimited.
Configuring dynamic address allocation
For dynamic address allocation, you must configure a DHCP address pool, specify one and only
one address range for the pool, and specify the lease duration. A DHCP address pool can have
only one lease duration.