CCNA Practice Questions with Worked Addressing Answers
These original CCNA practice questions turn a small network requirement into an address plan and a set of verification questions. Allocate three ordinary IPv4 LANs, check their capacity and overlap, then consider gateways, DHCP relay, routing and access policy. A checked Python example validates the supplied prefixes offline.
Topic: Networking in IT Infrastructure · Certification preparation
Quick answer: These original CCNA practice questions turn a small network requirement into an address plan and a set of verification questions. Allocate three ordinary IPv4 LANs, check their capacity and overlap, then consider gateways, DHCP relay, routing and access policy. A checked Python example validates the supplied prefixes offline. The exercise explains what its checks establish and why a mathematically valid address plan still needs an operational and security review before deployment.
Key takeaways
- Allocate from explicit host requirements rather than memorised block sizes alone.
- Include required gateway and infrastructure addresses in capacity planning.
- Check containment and overlap independently.
- DHCP relay does not merge broadcast domains.
- A valid prefix plan does not establish reachability or access policy.
Table of Contents
- Practice question 1: what requirements must you collect?
- Practice question 2: which prefixes meet the supplied counts?
- Practice question 3: can you check the plan without contacting devices?
- Practice question 4: which address should a host resolve locally?
- Practice question 5: how would a central DHCP server serve these LANs?
- Practice question 6: does a non-overlapping plan permit communication?
- Practice question 7: what happens if the phone requirement grows?
- References
Practice question 1: what requirements must you collect?
A fictional branch receives 192.0.2.0/24 for a paper exercise. It needs ordinary IPv4 LANs for 50 user devices, 20 phones and eight servers. These counts exclude their gateway addresses, so include those before choosing prefixes. Reserve further infrastructure or growth only when the requirement supplies it; do not silently assume every address is available.
The CCNA objectives include IPv4 subnetting and connectivity interpretation. This exercise uses documentation space and does not describe a real allocation. Write a requirement next to each subnet so a reviewer can see why it exists. “Use /24 everywhere” may be easy to recite but does not answer how to fit these separate broadcast domains inside one supplied /24.
Practice question 2: which prefixes meet the supplied counts?
A /26 provides 64 addresses, with 62 ordinarily assignable host addresses on a conventional IPv4 LAN. A /27 gives 30, and a /28 gives 14. Those capacities cover 51, 21 and nine addresses respectively, counting one gateway for each supplied device group.
Place the largest allocation first: 192.0.2.0/26, then 192.0.2.64/27 and 192.0.2.96/28. Each begins at the correct boundary and stays inside the supplied pool. This ordinary-LAN calculation is not a universal “subtract two” rule for every prefix; /31 point-to-point designs and host routes have different uses. The remaining addresses have not been allocated by this exercise.
| LAN | Devices plus gateway | Prefix | Ordinary host capacity |
|---|---|---|---|
| Users | 51 | 192.0.2.0/26 | 62 |
| Phones | 21 | 192.0.2.64/27 | 30 |
| Servers | 9 | 192.0.2.96/28 | 14 |
Practice question 3: can you check the plan without contacting devices?
Yes. Python’s ipaddress module can represent prefixes and compare containment and overlap without opening a socket. This checked example verifies the three supplied network boundaries, counts ordinary LAN host capacity and asserts that no pair overlaps.
The arithmetic is deliberately narrower than an IP address management system. It does not check existing allocations outside this input, DHCP exclusions, duplicate live addresses, device support or reserved organizational uses. A successful assertion means these supplied networks satisfy these particular mathematical checks. If someone changes the phone subnet to 192.0.2.32/27, it overlaps the user /26 even though its individual capacity remains sufficient.
from ipaddress import ip_network
pool = ip_network("192.0.2.0/24")
plan = [("users", "192.0.2.0/26"), ("phones", "192.0.2.64/27"),
("servers", "192.0.2.96/28")]
nets = [(name, ip_network(prefix)) for name, prefix in plan]
for name, net in nets:
assert net.subnet_of(pool)
print(f"{name}: {net}, ordinary host capacity {net.num_addresses-2}")
assert not any(a.overlaps(b) for i, (_, a) in enumerate(nets)
for _, b in nets[i+1:])
print("Supplied allocations do not overlap")Expected output:
users: 192.0.2.0/26, ordinary host capacity 62 phones: 192.0.2.64/27, ordinary host capacity 30 servers: 192.0.2.96/28, ordinary host capacity 14 Supplied allocations do not overlap
Practice question 4: which address should a host resolve locally?
Give each LAN a gateway address inside its own connected prefix, avoiding its ordinary network and broadcast addresses. A user host sending to a server LAN normally resolves its selected gateway's MAC, not the server's MAC across the routed boundary. ARP is an on-link IPv4 resolution mechanism.
The gateway address does not have to be the first usable address by protocol rule; use the documented design convention. Check that the chosen address is reserved consistently in the DHCP plan. If an interviewer changes the gateway to an address outside the host's prefix, explain the on-link next-hop problem rather than accepting it because the last octet is familiar. Unusual host routes or proxy behavior require explicit additional facts.
Practice question 5: how would a central DHCP server serve these LANs?
The server needs appropriate scopes and the design needs relay behavior where client broadcasts cannot reach it directly. The DHCP specification describes relay information and response handling. A relay does not extend all Layer 2 broadcasts between the user, phone and server LANs.
For the paper plan, record the subnet, gateway option, resolver option, lease policy and excluded addresses for each scope. Keep phone-specific provisioning requirements separate from basic address allocation. If the server issues an address from the wrong range, compare the relay and scope selection evidence before blaming the subnet arithmetic. The Python allocation check cannot establish that a server or relay has been configured to match the intended plan.
| Check | Input needed | Not established by the prefix script |
|---|---|---|
| Capacity | Device, gateway and reserved-address counts | Actual occupancy |
| DHCP allocation | Scope, exclusions and relay context | Correct lease delivery |
| Reachability | Routes, adjacencies and policy | End-to-end service success |
Practice question 6: does a non-overlapping plan permit communication?
No. Distinct prefixes support a routed design but do not install routes or grant access. Verify the appropriate connected interfaces, next hops and return routes. IPv4 forwarding rules explain why a more specific installed route can affect traffic even when a broader route covers the entire supplied pool.
Security requirements also need an enforcement point. If phones may reach call services but not the server administration interface, trace those flows through the applicable ACL context. Separating VLANs alone does not express every permitted or prohibited service. Avoid turning an addressing exercise into a blanket instruction to permit traffic between every new subnet; the required application flows should drive the policy review.
Practice question 7: what happens if the phone requirement grows?
Change the supplied phone requirement from 20 devices to 35, still excluding its gateway. The existing /27 has only 30 ordinary host addresses, so it no longer meets the requirement. A /26 could meet the count, but 192.0.2.64/26 would include the currently allocated server /28 beginning at .96. Simply changing the mask creates an overlap.
The useful answer is to redesign the affected allocations and plan any migration, not to stretch the range silently. Recheck gateways, DHCP scopes, routes and policy references after changing a prefix. Name resolution may also need updates; DNS caching means an edited record need not be observed immediately by every client. The exercise ends with a revised plan and explicit dependent checks.
Related reading: CCNA certification practice questions; CCNA preparation questions.
References
- Cisco CCNA v1.1 exam topics (last day to test v1.1 is 2 February 2027; v2.0 is scheduled from 3 February 2027)
- Python 3.14 ipaddress reference
- RFC 826: ARP
- RFC 2131: DHCP
- RFC 1812: IPv4 router requirements
- Cisco access-control-list guide
- RFC 1034: DNS concepts
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0