40
static-bind ip-address ip-address [ mask-length | mask mask ]
{ client-identifier client-identifier |
hardware-address
hardware-address [ ethernet
| token-ring ] }
By default, no static binding is configured.
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.
4. (Optional.) Set the lease duration for the IP address.
expired { day day [ hour hour [ minute minute [ second second ] ] ] |
unlimited }
By default, the lease duration is 1 day.
Specifying gateways for DHCP clients
About 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.
Restrictions and guidelines
You can specify gateway addresses in each address pool on the DHCP server. A maximum of 64
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.
Procedure
1. Enter system view.
system-view
2. Enter DHCP address pool view.
dhcp server ip-pool pool-name
3. Specify gateways.
gateway-list ip-address&<1-64>
By default, no gateway is specified.
4. (Optional.) Specify gateways in secondary subnet view.
a. Enter secondary subnet view.
network network-address [ mask-length | mask mask ] secondary
b. Specify gateways.
gateway-list ip-address&<1-64>
By default, no gateway is specified.