CLI Reference DHCP Configuration Commands
In general, the DHCP client should get the information of the default
gateway from the DHCP server. The DHCP server should specify one
gateway address for the client at least, and this address should be of
the same network segment as the address assigned to the client.
The example below defines 192.168.12.1 as the default gateway.
default-router 192.168.12.1
Define the name of the DHCP address pool
and enter the DHCP address pool
configuration mode.
dns-server
Use this command to define the DNS server of the DHCP client in the DHPC address pool configuration mode.
The no form of this command can be used to delete the definition of the DNS server.
dns-server ip-address [ ip-address2…ip-address8 ]
no dns-server
Define the IP address of the DNS server.
At least one IP address should be
configured.
ip-address2…ip-address8
(Optional) Up to 8 DNS servers can be
configured.
No DNS server is defined by default.
DHCP address pool configuration mode.
When more than one DNS server is defined, the former will possess
higher priority, so the DHCP client will select the next DNS server
only when its communication with the former DNS server fails.
If the RGOS software also acts as the DHCP client, the DNS server
information obtained by the client can be transmitted to the DHCP
client.
The example below specifies the DNS server 192.168.12.3 for the
DHCP client.
dns-server 192.168.12.3