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.

Aug 14, 2024 - 11:23
Updated: 
103.5k

Networking in IT Infrastructure · Certification preparation

CCNA Practice Questions with Worked Addressing Answers

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?

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.

LANDevices plus gatewayPrefixOrdinary host capacity
Users51192.0.2.0/2662
Phones21192.0.2.64/2730
Servers9192.0.2.96/2814

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.

CheckInput neededNot established by the prefix script
CapacityDevice, gateway and reserved-address countsActual occupancy
DHCP allocationScope, exclusions and relay contextCorrect lease delivery
ReachabilityRoutes, adjacencies and policyEnd-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

Frequently Asked Questions

They are independently written practice questions intended to explain addressing decisions, not actual or recalled Cisco exam content.

The subtraction used here applies to ordinary LAN prefixes in this exercise, while point-to-point and host-route cases differ.

The requirement excludes gateway addresses, so the selected subnet must also provide space for the local routing interface.

It manipulates supplied prefixes entirely in memory and does not inspect devices, existing allocations or live address use.

Yes, valid network boundaries and adequate individual capacity do not prove that their address ranges are mutually exclusive.

The proposed larger range overlaps the supplied server allocation, so resizing requires a reviewed redesign and dependent updates.

Relay supports DHCP exchange across routed boundaries without making the different client LANs one shared Layer 2 broadcast domain.

Review gateway reservations, DHCP scopes, routing, policy and dependent name records, then validate the required application behavior.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Anjali

I am passionate about technology, invention and big challenging tasks on my to- do list. In terms of the work I am doing also at Bunnyshell, I am most passionate about the technologies that we are using., I'm devoted to delivering content that not only informs but also inspires. Whether you need in- depth analysis pieces, educational attendants, or study- provoking opinion pieces, I draft content that resonates with tech suckers and professionals likewise.