Follow these guidelines when you configure a static binding:
•
One IP address can be bound to only one client MAC or client ID. You cannot modify bindings
that have been created. To change the binding for a DHCP client, you must delete the existing
binding first.
•
The IP address of a static binding cannot be the address of the DHCP server interface.
Otherwise, an IP address conflict occurs and the bound client cannot obtain an IP address
correctly.
•
Multiple interfaces on the same device might all use DHCP to request a static IP address. In this
case, use client IDs rather than the device's MAC address to identify the interfaces. Otherwise,
IP address allocation will fail.
To configure a static binding:
Step
1.
Enter system view.
2.
Create a DHCP address pool
and enter its view.
3.
Configure a static binding.
4.
(Optional.) Set the lease
duration for the IP address.
Specifying gateways for DHCP clients
DHCP clients send packets destined for other networks to a gateway. The DHCP server can assign
the gateway address to the DHCP clients.
You can specify gateway addresses in each address pool on the DHCP server. A maximum of eight
gateways can be specified in DHCP address pool view or secondary subnet view.
The DHCP server assigns gateway addresses to clients on a secondary subnet in the following
ways:
•
If gateways are specified in both address pool view and secondary subnet view, DHCP assigns
those specified in the secondary subnet view.
•
If gateways are specified in address pool view but not in secondary subnet view, DHCP assigns
those specified in address pool view.
To configure gateways in the DHCP address pool:
Step
1.
Enter system view.
2.
Create a DHCP address pool
and enter its view.
3.
Specify gateways.
4.
(Optional.) Enter secondary
subnet view
Command
system-view
dhcp server ip-pool pool-name
static-bind ip-address ip-address
[ mask-length | mask mask ]
{ client-identifier client-identifier |
hardware-address
hardware-address [ ethernet |
token-ring ] }
expired { day day [ hour hour
[ minute minute [ second
second ] ] ] | unlimited }
Command
system-view
dhcp server ip-pool pool-name
gateway-list ip-address&<1-8>
network network-address [ mask-length
| mask mask ] secondary
43
Remarks
N/A
By default, no DHCP address
pool exists.
By default, no static binding is
configured.
To add more static bindings,
repeat this step.
The default setting is 1 day.
Remarks
N/A
By default, no DHCP
address pool exists.
By default, no gateway is
specified.
N/A