R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101

121
Configuring address allocation mode for a common address pool
CAUTION:
You can configure either a static binding or dynamic address allocation for a common address pool, bu
t
not both.
You need to specify a subnet for dynamic address allocation. A static binding is a special address pool
containing only one IP address.
1. Configuring static address allocation
Some DHCP clients, such as a WWW server, need fixed IP addresses. To provide a fixed IP address, you
can create a static binding of a client’s MAC address or ID to an IP address in the DHCP address pool.
A static binding is a special address pool containing only one IP address.
When the client with that MAC address or ID requests an IP address, the DHCP server assigns the IP
address from the binding to the client.
Follow these steps to configure a static binding in a common address pool:
To do… Use the command…
Remarks
Enter system view system-view
Enter common address pool view dhcp server ip-pool pool-name
Specify the IP address
static-bind ip-address ip-address
[ mask-length | mask mask ]
Required
No IP addresses are statically
bound by default.
Specify the
MAC address
or client ID
Specify the
MAC address
static-bind mac-address
mac-address
Required to configure either of the
two
Neither is bound statically by
default.
Specify the
client ID
static-bind client-identifier
client-identifier
Specify the lease duration for the IP
address
expired { day day [ hour hour
[ minute minute ] ] | unlimited }
Optional
By default, the lease duration of the
IP address is unlimited.