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.
⚠ 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
Go deeper
Related to this question
Learn chapter
Troubleshoot: DHCP Relay Not Working
Key term
Default gateway
A default gateway is a network device, typically a router, that acts as the exit point for traffic from a local network to other networks, including the internet.
Key term
LAN
Local Area Network — a network confined to a single physical location such as an office, building, or campus.
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 →
You might also like
Similar 200-301 questions
- Which switch security feature uses DHCP snooping bindings to validate ARP packets and help stop ARP spoofing?
- Match each operations or assurance technology to its most accurate purpose.
- A network engineer notices that an NMS at 10.1.1.200 cannot poll a router that has SNMPv2c configured with community str…
- A network team wants centralized logging and also wants log timestamps from different devices to line up accurately. Whi…
- You are connected to R1, a Cisco IOS-XE router. The network's internal DNS server is 203.0.113.10 and the domain is cour…
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.