C613-50631-01 Rev A Command Reference for IE340 Series 3040
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
DYNAMIC HOST CONFIGURATION PROTOCOL (DHCP) COMMANDS
DNS
-SERVER
dns-server
Overview This command adds a Domain Name System (DNS) server to the DHCP address
pool you are configuring. You can use this command multiple times to create a list
of DNS name servers available to the client. This sets the DNS server details using
the pre-defined option 6.
The no variant of this command removes either the specified DNS server, or all DNS
servers from the DHCP pool.
Syntax
dns-server <ip-address>
no dns-server [<ip-address>]
Mode DHCP Configuration
Examples To add the DNS server with the assigned IP address 192.168.1.1 to the DHCP pool
named P1, use the following commands:
awplus# configure terminal
awplus(config)# ip dhcp pool P2
awplus(dhcp-config)# dns-server 192.168.1.1
To remove the DNS server with the assigned IP address 192.168.1.1 from the DHCP
pool named P1, use the following commands:
awplus# configure terminal
awplus(config)# ip dhcp pool P2
awplus(dhcp-config)# no dns-server 192.168.1.1
To remove all DNS servers from the DHCP pool named P1, use the following
commands:
awplus# configure terminal
awplus(config)# ip dhcp pool P2
awplus(dhcp-config)# no dns-server
Related
commands
default-router
show ip dhcp pool
subnet-mask
Parameter Description
<ip-address> IPv4 address of the DNS server, in dotted decimal notation.