Courseiva
Infrastructure →mediumMultiple Choice

CCNP Infrastructure Practice Question

A network engineer is configuring a Cisco IOS router to act as a DHCP server for a subnet. The router must provide IP addresses, default gateway, and DNS server information to clients. Which configuration is required?

⚠ Common exam trap

The trap here is focusing on excluded addresses or lease times as required, when the essential DHCP options for client configuration are network, default-router, and dns-server.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

ip dhcp pool POOL1, network 192.168.1.0 255.255.255.0, default-router 192.168.1.1, dns-server 8.8.8.8

A Cisco IOS DHCP server requires a pool with network, default-router, and dns-server commands to provide IP addresses, gateway, and DNS information. The excluded-address command is optional but often used. The lease command is optional and not required for basic operation. Manual bindings are for specific hosts and do not serve a subnet. Therefore, the configuration that includes network, default-router, and dns-server is the correct choice.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    ip dhcp pool POOL1, network 192.168.1.0 255.255.255.0, default-router 192.168.1.1, dns-server 8.8.8.8

    Why this is correct

    This configuration creates a DHCP pool named POOL1, defines the network and subnet mask, and provides the default gateway and DNS server. The ip dhcp pool command enters DHCP pool configuration mode, where network, default-router, and dns-server are valid commands. This fully satisfies the requirement to provide IP addresses, gateway, and DNS information to clients. It is the correct and standard way to configure a Cisco IOS DHCP server.

  • ✗

    ip dhcp pool POOL1, network 192.168.1.0 255.255.255.0, default-router 192.168.1.1, dns-server 8.8.8.8, lease 0 8

    Why it's wrong here

    This configuration is almost correct but includes a lease time of 0 days 8 hours. While lease is a valid command, the lease duration is not a required element for basic DHCP operation; the default lease is 1 day. The question asks for required configuration, and lease is optional. However, the presence of lease does not make the configuration incorrect, but it is not required. The other options either miss DNS or are for static mappings. This option is not the best answer because it adds an unnecessary command, but it would still function. However, since the question asks for required configuration, this option includes an extra command that is not required, making it less precise than the option without lease.

  • ✗

    ip dhcp excluded-address 192.168.1.1 192.168.1.10, then ip dhcp pool POOL1 with network 192.168.1.0 255.255.255.0 and default-router 192.168.1.1

    Why it's wrong here

    This configuration includes excluded addresses and a pool with network and default-router, but it omits the DNS server information. The requirement explicitly states that the router must provide DNS server information. Without the dns-server command in the pool, clients will not receive DNS settings. Therefore, this configuration is incomplete and does not meet the full requirement.

  • ✗

    ip dhcp pool POOL1, host 192.168.1.100 255.255.255.0, hardware-address 0000.1111.2222

    Why it's wrong here

    This configuration creates a manual binding for a single host with a specific hardware address. It does not define a subnet pool for dynamic allocation, nor does it provide default gateway or DNS server options. The host command is used for static mappings, not for dynamic DHCP. This does not satisfy the requirement to serve an entire subnet with gateway and DNS information.

Visual reference

Client DHCP Server 1 Discover (broadcast) 2 Offer (IP: 192.168.1.10) 3 Request (I accept) 4 Acknowledge (lease confirmed) DORA — the four-step DHCP lease process

About these practice questions

This 350-401 question is part of Courseiva's 1,923-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Cisco exam blueprint

This 350-401 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 350-401 exam.