Courseiva

CCNA Practice Question: A network administrator needs to configure a Cisco router to act as a DHCP server for a…

A network administrator needs to configure a Cisco router to act as a DHCP server for a small LAN. The router should lease addresses from the 192.168.10.0/24 network, exclude addresses 192.168.10.1 through 192.168.10.10 for static devices, and set the default gateway to 192.168.10.1. Which command is required to exclude the static addresses from the DHCP pool?

Practise it in a lab

DHCP server on a router, with a relay for a remote LAN

Configure real Cisco IOS in your browser, with each task checked as you go.

Start the lab →

⚠ Common exam trap

Candidates often confuse the global excluded-address command with a pool-level command, or using a subnet mask instead of an end address.

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 excluded-address 192.168.10.1 192.168.10.10

The ip dhcp excluded-address command is used in global configuration mode to prevent the DHCP server from assigning specific addresses. It takes a starting and ending IP address, and any address in that range is excluded from all DHCP pools. This is the correct way to reserve addresses for static devices like routers, servers, and printers.

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 excluded-address 192.168.10.1 192.168.10.10

    Why this is correct

    'ip dhcp excluded-address 192.168.10.1 192.168.10.10' is entered in global configuration and prevents the DHCP server leasing any address in that inclusive range, reserving them for the gateway and other statically addressed devices. Exclusions apply to every pool whose network contains them. Configure them before or with the pool, so no reserved address is leased in the meantime, and check with 'show ip dhcp pool'.

  • ✗

    ip dhcp pool excluded 192.168.10.1 192.168.10.10

    Why it's wrong here

    'ip dhcp pool <name>' creates a pool and enters its configuration mode, where you set 'network', 'default-router', 'dns-server' and 'lease'; it takes only a name. Typing an address range after it would be read as part of the name or rejected, and no exclusion would happen. Exclusions are configured separately in global configuration with 'ip dhcp excluded-address'.

  • ✗

    exclude-address 192.168.10.1 192.168.10.10

    Why it's wrong here

    'exclude-address' is not a Cisco IOS command in global configuration or inside a DHCP pool, so the router rejects it with an invalid input error, and the static addresses stay available for leasing. The correct global command is 'ip dhcp excluded-address' followed by a start and end address. Always check the output after entering commands, because a rejected line changes nothing.

  • ✗

    ip dhcp excluded-address 192.168.10.1 255.255.255.0

    Why it's wrong here

    The second argument must be the last IP address in the excluded range, not a subnet mask. Using a mask such as 255.255.255.0 would be interpreted as an invalid end address, and the exclusion would not work as intended. The correct syntax uses two IP addresses to define the range.

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 200-301 question is part of Courseiva's 1,352-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

You might also like

Similar 200-301 questions

Written and reviewed by Johnson Ajibi, MSc IT Security

Security Systems Architect · founder of Courseiva

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

This 200-301 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 200-301 exam.