If the interfaces on a DHCP client share the same MAC address, you must specify the client ID,
•
rather than MAC address, in a static binding to identify the requesting interface. Otherwise, the
client may fail to obtain an IP address.
To configure a static binding in a common address pool:
Step
1.
Enter system view.
2.
Enter common address pool
view.
3.
Specify the IP address.
4.
Specify the MAC address or
client ID.
5.
Specify the lease duration for
the IP address.
Configuring dynamic address allocation
For dynamic address allocation, you must configure a DHCP address pool. For each address pool, you
must specify one and only one address range, and the lease duration. A DHCP address pool can have
only one lease duration.
To avoid address conflicts, configure the DHCP server to exclude IP addresses used by the gateway or
FTP server from dynamic allocation.
Follow these guidelines when you configure dynamic address allocation for a common address pool:
In common address pool view, using the network or network ip range command repeatedly
•
overwrites the previous configuration.
After you exclude IP addresses from automatic allocation by using the dhcp server forbidden-ip
•
command, neither a common address pool nor an extended address pool can assign these IP
addresses through dynamic address allocation.
•
Using the dhcp server forbidden-ip command repeatedly can exclude multiple IP address ranges
from allocation.
To configure dynamic address allocation for a common address pool:
Step
1.
Enter system view.
2.
Enter common address pool
view.
3.
Specify a subnet.
Command
system-view
dhcp server ip-pool pool-name
static-bind ip-address ip-address
[ mask-length | mask mask ]
•
Specify the MAC address:
static-bind mac-address
mac-address
•
Specify the client ID:
static-bind client-identifier
client-identifier
expired { day day [ hour hour
[ minute minute [ second second ] ] ] |
unlimited }
Command
system-view
dhcp server ip-pool pool-name
network network-address
[ mask-length | mask mask ]
42
Remarks
N/A
N/A
No IP addresses are statically
bound by default.
Use at least one command.
Neither is bound statically by
default.
Optional.
By default, the lease duration of
the IP address is unlimited.
Remarks
N/A
N/A
Not specified by default.