Command Reference DHCP Commands
be of the same network segment as the address assigned to the client.
Configuration
Examples
The following example defines 192.168.12.1 as the default gateway.
Ruijie(dhcp-config)# default-router 192.168.12.1
Command Description Related
Commands
ip dhcp pool
Defines the name of the DHCP address pool and enters DHCP
address pool configuration mode.
Platform
Description
N/A
dns-server
Use this command to define the Domain Name System (DNS) server of the DHCP client in DHPC
address pool configuration mode. Use the no form of this command to delete the definition of the
DNS server.
dns-server { ip-address [ ip-address2…ip-address8 ] | use-dhcp-client interface-type
interface-number }
no dns-server
Parameter Description
ip-address
Defines the IP address of the DNS server. At least one IP address
should be configured.
Parameter
Description
ip-address2…ip-address8
(Optional) Up to eight DNS servers can be configured.
Defaults
No DNS server is defined by default.
Command
Mode
DHCP address pool configuration mode
Usage Guide
When multiple DNS servers are defined, the former will possess higher priory, so the DHCP client will
select the next DNS server only when its communication with the former DNS server fails.
Configuration
Examples
The following example specifies the DNS server 192.168.12.3 for the DHCP client.
Ruijie(dhcp-config)# dns-server 192.168.12.3
Command Description
domain-name
Defines the suffix domain name of the DHCP client.
ip address dhcp
Enables the DHCP client on the interface to obtain the IP address information.
Related
Commands
ip dhcp pool
Defines the name of the DHCP address pool and enters DHCP address pool
configuration mode.