Step
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 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.
To configure gateways in the DHCP address pool:
Step
1.
Enter system view.
2.
Enter DHCP address pool
view.
3.
Specify gateways.
4.
(Optional.) Enter secondary
subnet view
5.
(Optional.) Specify gateways.
Specifying a domain name suffix for DHCP clients
You can specify a domain name suffix in a DHCP address pool on the DHCP server. With this suffix
assigned, the client only needs to input part of a domain name, and the system adds the domain
name suffix for name resolution. For more information about DNS, see Layer 3—IP Services
Configuration Guide.
To configure a domain name suffix in the DHCP address pool:
Step
1.
Enter system view.
2.
Enter DHCP address pool view.
3.
Specify a domain name suffix.
Command
expired { allow-hint | { day day
[ hour hour [ minute minute
[ second second ] ] ] | unlimited }
[ allow-hint ] }
Command
system-view
dhcp server ip-pool pool-name
gateway-list ip-address&<1-64>
network network-address [ mask-length
| mask mask ] secondary
gateway-list ip-address&<1-64>
Command
system-view
dhcp server ip-pool pool-name
domain-name domain-name
102
Remarks
The default setting is 1 day.
Remarks
N/A
By default, no DHCP
address pool exists.
By default, no gateway is
specified.
N/A
By default, no gateway is
specified.
Remarks
N/A
By default, no DHCP address
pool exists.
By default, no domain name is
specified.