200-301 Question 354
Single answerA network administrator is configuring DHCP on a router to provide dynamic IP addresses to devices in the 192.168.1.0/24 network. Which configuration step ensures that the router itself does not lease its own IP address from the same pool?
- A
Exclude the router's IP address from the DHCP pool using the 'ip dhcp excluded-address' command.
- B
Configure a static IP address on the router's interface that belongs to the 192.168.1.0/24 network.
- C
Enable the router's DHCP relay function to forward requests to an external DHCP server.
- D
Assign a default gateway within the DHCP configuration.
Show answer and explanation
Correct answer: A
Explanation
In a network with DHCP, conflicts can arise if the router's own interface IP address is within the DHCP pool and gets assigned to another device. The 'ip dhcp excluded-address' command prevents such conflicts by reserving specific IP addresses (such as the router's) so they are not dynamically allocated by the DHCP service.
- A. Correct.
This is the correct answer. The 'ip dhcp excluded-address' command explicitly ensures that the router's IP address (or any other specified IPs) is not part of the DHCP pool, preventing it from being leased to other devices.
- B. Incorrect.
While assigning a static IP address to the router's interface is standard practice, it does not prevent the router's IP from being leased to other devices unless it is excluded from the pool.
- C. Incorrect.
Enabling DHCP relay forwards DHCP requests to another DHCP server but does not address the issue of excluding the router's IP from a local DHCP pool.
- D. Incorrect.
Assigning a default gateway in the DHCP configuration helps devices on the network know where to send traffic destined for other networks but does not prevent IP conflicts with the router.