Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
A new floor has been added with a new VLAN 30. The DHCP server is 10.0.10.5 in VLAN 10, and a scope for VLAN 30 has been created and activated. However, clients in VLAN 30 receive only 169.254.x.x addresses. A technician temporarily assigns a static VLAN 30 address to one affected client, leaving it on the same switch port, and it can ping 10.0.10.5. What is the most appropriate fix?
- AAdd a static route to VLAN 30 on the DHCP server
- BIncrease the lease duration of the DHCP scope
- CConfigure a DHCP relay pointing to 10.0.10.5 on the VLAN 30 gateway (Layer 3 interface)
- DAllow VLAN 30 on the uplink trunk
Show answer and explanation
Answer:C The initial DHCPDISCOVER is a broadcast that does not cross a router, so VLAN 30 needs a DHCP relay (IP helper) to get it to the server in VLAN 10.
Why it is correct
The client's initial DHCPDISCOVER is a broadcast, and a router (or Layer 3 switch) does not forward broadcasts to other subnets by default. The request never reaches the server in the other VLAN, no offer comes back, and the client assigns itself an APIPA address (169.254.x.x). A DHCP relay on the VLAN 30 gateway forwards the request to the server as unicast and fills in giaddr (the gateway address), which tells the server to allocate from the VLAN 30 scope.
The other options
- ✗ A The client with a static address can ping the server, so routing between VLAN 30 and the server already works. A static route is the fix when the server lacks a return path.
- ✗ B Lease duration only controls how long an address is held; it does nothing when requests never reach the server. Adjust it when renewals are too frequent or the pool runs short.
- ✗ D The client on the same port reached the server with a static address, which confirms that the path from that port through the gateway to the server, including any trunk along the way, carries VLAN 30. Check the trunk when hosts cannot communicate within the VLAN at all.
Key takeaway
169.254.x.x (APIPA) = no usable lease. Server on another subnet → a DHCP relay (ip helper-address) so the initial DISCOVER reaches it. Whether a static IP works on the same port → tells you whether routing or the VLAN is the problem.
Try 69 questions like this for free
itmoshi is an unofficial study service and is not affiliated with CompTIA or any exam provider.