CCNA Network Services and Security Practice Question
Exhibit
Clients: 10.40.40.0/24 in VLAN 40 SVI on distribution switch: 10.40.40.1/24 DHCP server: 172.16.1.10/24 reachable by routing Clients keep sending DHCPDISCOVER and receive no offer.
PCs in VLAN 40 are not receiving addresses from the centralized DHCP server at 172.16.1.10. What should be configured on the VLAN 40 default gateway interface?
⚠ Common exam trap
Ensure you understand the difference between DHCP relay and DHCP security features like snooping, as well as local DHCP server configuration.
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 helper-address 172.16.1.10
When DHCP clients and the DHCP server are on different subnets, the router interface serving the client subnet must relay broadcasts to the server with the ip helper-address command.
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 10.40.40.1 10.40.40.10
Why it's wrong here
The ip dhcp excluded-address command is a server-side configuration used by the DHCP server to reserve a pool of addresses (10.40.40.1 to 10.40.40.10) so those IPs are never leased to clients. It does not relay or forward DHCP broadcasts across subnets, nor does it enable a client to discover a server. Even if it were present, it would not solve the problem of clients not receiving addresses; it would only restrict which addresses could be handed out.
When this WOULD be correct
In a different scenario where the question involves configuring DHCP settings for a specific range of IP addresses on a DHCP server, such as preventing certain addresses from being assigned to clients, this option would be correct. For example, if the question asked how to prevent the DHCP server from assigning addresses within a specific range to avoid conflicts, this would apply.
- ✓
ip helper-address 172.16.1.10
Why this is correct
The ip helper-address command must be applied to the VLAN 40 SVI (interface vlan 40). DHCP clients broadcast DHCPDISCOVER packets, and routers do not forward broadcasts by default; this command converts those broadcasts into unicasts and relays them to the DHCP server at 172.16.1.10. The server then replies with an address appropriate for VLAN 40's subnet, which is why this is the correct fix.
- ✗
service dhcp
Why it's wrong here
The service dhcp command globally enables the DHCP server and relay agent processes on the device. While it is required for the relay agent to function, it is typically enabled by default, and merely having it enabled does not cause any forwarding of DHCP broadcasts. Without the ip helper-address on the VLAN 40 interface, the relay agent has no destination to forward the client's DHCPDISCOVER to, so the clients remain without addresses.
When this WOULD be correct
If the question were about configuring a router to act as a DHCP server for VLAN 40, then 'service dhcp' would be the correct answer. This would imply that the router is intended to provide IP addresses directly to clients in that VLAN.
- ✗
ip default-gateway 172.16.1.10
Why it's wrong here
The ip default-gateway command is a global command used on a Layer 2 switch to give the management interface a gateway when IP routing is disabled. It does not affect DHCP operations on the VLAN 40 SVI or allow broadcasts to reach a remote DHCP server. Hosts in VLAN 40 would still be unable to get an address because this command only impacts the switch's own management traffic, not the client traffic.
When this WOULD be correct
In a different scenario where a question asks for the configuration of a standalone device, such as a router or switch that is not acting as a DHCP relay, specifying 'ip default-gateway 172.16.1.10' would be correct to ensure that the device can route packets to the DHCP server for itself.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The 200-301 exam frequently reuses these exact scenarios with slightly different constraints.
✓ip helper-address 172.16.1.10Correct answer▾
Why this is correct
The ip helper-address command must be applied to the VLAN 40 SVI (interface vlan 40). DHCP clients broadcast DHCPDISCOVER packets, and routers do not forward broadcasts by default; this command converts those broadcasts into unicasts and relays them to the DHCP server at 172.16.1.10. The server then replies with an address appropriate for VLAN 40's subnet, which is why this is the correct fix.
✗ip dhcp excluded-address 10.40.40.1 10.40.40.10Wrong answer — click to see why▾
Why this is wrong here
The 'ip dhcp excluded-address' command is used on a DHCP server to prevent certain addresses from being assigned, not on a router interface to forward DHCP requests. This command would not help clients in VLAN 40 reach the centralized DHCP server.
★ When this WOULD be the correct answer
In a different scenario where the question involves configuring DHCP settings for a specific range of IP addresses on a DHCP server, such as preventing certain addresses from being assigned to clients, this option would be correct. For example, if the question asked how to prevent the DHCP server from assigning addresses within a specific range to avoid conflicts, this would apply.
Why candidates choose this
Students may think that excluding addresses on the default gateway interface would reserve those addresses for the gateway itself, but this command is only valid on a device acting as a DHCP server, not on a router interface.
✗service dhcpWrong answer — click to see why▾
Why this is wrong here
The 'service dhcp' command globally enables the DHCP server or relay agent on a Cisco device, but it does not specify where to forward requests. Without the 'ip helper-address' command, DHCP broadcasts will not be forwarded to the server.
★ When this WOULD be the correct answer
If the question were about configuring a router to act as a DHCP server for VLAN 40, then 'service dhcp' would be the correct answer. This would imply that the router is intended to provide IP addresses directly to clients in that VLAN.
Why candidates choose this
Students may confuse 'service dhcp' with enabling DHCP relay functionality, but it only enables the DHCP process; the actual forwarding requires the interface-level 'ip helper-address' command.
✗ip default-gateway 172.16.1.10Wrong answer — click to see why▾
Why this is wrong here
The 'ip default-gateway' command is used on a switch to set a default gateway for management purposes, not to forward DHCP broadcasts. It does not provide DHCP relay functionality.
★ When this WOULD be the correct answer
In a different scenario where a question asks for the configuration of a standalone device, such as a router or switch that is not acting as a DHCP relay, specifying 'ip default-gateway 172.16.1.10' would be correct to ensure that the device can route packets to the DHCP server for itself.
Why candidates choose this
The term 'default-gateway' may mislead students into thinking it helps clients reach the DHCP server, but it is only for the device's own management traffic, not for relaying DHCP requests.
Analysis generated from the official 200-301blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Visual reference
Go deeper
Related to this question
Learn chapter
Device File Management with SFTP and SCP
Key term
DHCP
Dynamic Host Configuration Protocol (DHCP) automatically assigns IP addresses and network settings to devices on a network, so they can communicate without manual configuration.
Key term
Subnet
A subnet is a logical subdivision of an IP network, created by partitioning a larger network address space using subnet masks.
About these practice questions
One of 1,389 original 200-301 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.