Cisco CCNA mock exam questions sample test – Question 226

.You have the following configuration on your router:
ip dhcp pool POOLNAME
What command would you run to prevent the last available IP address in the scope from being allocated to a host via DHCP?

A. ip dhcp restrict
B. ip dhcp excluded-address
C. ip dhcp excluded-address
D. ip dhcp excluded-address

Correct Answer: B

In this scenario, you would run the ip dhcp excluded-address command in global configuration mode to prevent DHCP allocation of the last available IP address in the
scope. The ip dhcp excluded-address command is used to prevent DHCP from handing out IP addresses that are already statically configured on your network. The command can
include a single IP address to exclude, or an entire range, such as:
Router(config)# ip dhcp excluded-address
The command above would block the entire range of through from being allocated by DHCP. If the next IP address in sequence to be assigned would have
been, DHCP will skip the range and assign as the next host address.
You would not execute ip dhcp excluded-address This is the address of the router and it will automatically be excluded.
The other commands are incorrect because they are not valid Cisco IOS commands.
Infrastructure Services
Configure and verify DHCP on a router (excluding static reservations)
Cisco > Support > Cisco IOS Software > Configuring the Cisco IOS DHCP Server > Excluding IP Addresses