•
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
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 "Configuring DNS."
To configure a domain name suffix in the DHCP address pool:
Step
1.
Enter system view.
2.
Create a DHCP address pool
and enter its view.
3.
Specify a domain name suffix.
Specifying DNS servers for DHCP clients
To access hosts on the Internet through domain names, a DHCP client must contact a DNS server to
resolve names. You can specify up to eight DNS servers in a DHCP address pool.
To specify DNS servers in a DHCP address pool:
Step
1.
Enter system view.
2.
Create a DHCP address pool
and enter its view.
3.
Specify DNS servers.
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
Command
system-view
dhcp server ip-pool pool-name
dns-list ip-address&<1-8>
38
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.
Remarks
N/A
By default, no DHCP
address pool exists.
By default, no DNS server is
specified.