Last Updated on August 1, 2021 by Admin 1
You need to configure a Cisco router to act as a DHCP server and provide the following services:
Hand out IP addresses for subnet 10.10.0.0/16
Set the domain name for the clients to “Cisco”
Set the DNS server to 10.10.0.1
Set the default gateway to 10.10.0.1
Prevent IP address conflicts with 6 print servers that have consecutive permanently assigned addresses starting at 10.10.0.20.
Which of the following sets of commands will successfully accomplish this?
- Router1(config)# service dhcp
Router1(config)# ip dhcp pool IPPool
Router1(dhcp-config)# network 10.10.0.0 255.255.0.0
Router1(dhcp-config)# domain-name Cisco
Router1(dhcp-config)# dns-server 10.10.0.1
Router1(dhcp-config)# default-router 10.10.0.1
Router1(dhcp-config)# exit
Router1(config)# ip dhcp excluded-address 10.10.0.20 10.10.0.25 - Router1(config)# service dhcp
Router1(config)# dhcp pool IPPool
Router1(dhcp-config)# network 10.10.0.0 255.255.0.0
Router1(dhcp-config)# domain-name Cisco
Router1(dhcp-config)# dns-server 10.10.0.1
Router1(dhcp-config)# default-router 10.10.0.1
Router1(dhcp-config)# exit
Router1(config)# ip dhcp excluded-address 10.10.0.20 10.10.0.25 - Router1(config)# service dhcp
Router1(config)# ip dhcp pool IPPool
Router1(dhcp-config)# network 10.10.0.0 255.255.0.0
Router1(dhcp-config)# domain-name Cisco
Router1(dhcp-config)# dns-server 10.10.0.1
Router1(dhcp-config)# default-gateway 10.10.0.1
Router1(dhcp-config)# exit
Router1(config)# ip dhcp excluded-address 10.10.0.20 10.10.0.25 - Router1(config)# service dhcp
Router1(config)# ip dhcp pool IPPool
Router1(dhcp-config)# network 10.10.0.0 255.255.0.0
Router1(dhcp-config)# domain-name Cisco
Router1(dhcp-config)# dns-server 10.10.0.1
Router1(dhcp-config)# default-router 10.10.0.1
Router1(dhcp-config)# exit
Router1(config)# ip dhcp excluded-address 10.10.0.20 – 10.10.0.25
The following command sequence is correct:
Router1(config)# service dhcp Router1(config)# ip dhcp pool IPPool Router1(dhcp-config)# network 10.10.0.0 255.255.0.0 Router1(dhcp-config)# domain-name Cisco Router1(dhcp-config)# dns-server 10.10.0.1 Router1(dhcp-config)# default-router 10.10.0.1 Router1(dhcp-config)# exit Router1(config)# ip dhcp excluded-address 10.10.0.20 10.10.0.25
The Router1(config)# service dhcp command enables the DHCP process. It is enabled by default, but this command may be needed if it has been disabled.
The Router1(config)# ip dhcp pool IPPool command creates a DHCP pool named IPPool.
The Router1(dhcp-config)# network 10.10.0.0 255.255.0.0 command specifies the subnet and mask for which the DHCP process will be handing out IP addresses. Unless otherwise specified, it is assumed that the assignment will start with the first address on the subnet and end with the last address on the subnet; in this case, 10.10.0.1 through 10.10.0.255.
The Router1(dhcp-config)# domain-name Cisco command sets the domain name for the clients to “Cisco.”
The Router1(dhcp-config)# dns-server 10.10.0.1 command sets the DNS server IP address for the clients to 10.10.0.1.
The Router1(dhcp-config)# default-router 10.10.0.1 command sets the default gateway for the clients to 10.10.0.1.
The Router1(dhcp-config)# exit command exits back to global config mode.
The Router1(config)# ip dhcp excluded-address 10.10.0.20 10.10.0.25 command configures the DHCP process not to hand out addresses 10.10.0.20 through 10.10.0.25 so that there is no conflict with the print servers. This command is technically not a dhcp-config command, but if it is issued in the dhcp-config mode, the router will exit to global config mode and invoke the command.
The other options are incorrect due to incorrect syntax or command mode.
Objective:
Infrastructure Services
Sub-Objective:
Configure and verify IPv4 and IPv6 DHCP