Subnet Worksheets
50 interactive subnetting practice exercises with toggle-reveal answers and step-by-step explanations.
Identify (15)
Given the IP address 10.10.10.50 with a /27 prefix length, determine the subnet mask in dotted-decimal notation, the network address, the broadcast address, and the total number of usable hosts.
For each of the following IP addresses, determine whether it is a private (RFC 1918) address or a public routable address: 192.168.1.1, 8.8.8.8, 10.0.0.1, 172.16.0.1, 203.0.113.5.
Given the IP address 10.0.0.130 with a /25 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.
Given the IP address 172.16.45.200 with a /16 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.
Given the IP address 192.168.1.45 with a /24 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.
Given the subnet mask 255.255.240.0, determine the equivalent CIDR prefix length, the number of usable host addresses, and the number of subnet bits in the interesting octet.
Given the IP address 150.200.100.50, identify its address class, the default subnet mask for that class, the default prefix length, and the full range of addresses belonging to that class.
Given the IP address 192.168.10.67 with a /26 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.
Given the subnet mask 255.255.255.0, calculate the corresponding wildcard mask and determine the prefix length.
Given the IP address 10.200.7.150 with a /22 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.
Given the IP address 172.20.5.100 with a /28 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.
Given the IP address 172.31.50.75 with a /29 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.
Given the IP address 192.168.100.5 with a /30 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.
Given the IP address 192.168.55.200 with a /20 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.
Given the IP address 10.255.255.1 with a /31 prefix length, identify the network address, the broadcast address (or explain why it does not apply), the two usable addresses, and the total host count. Reference RFC 3021 in your answer.
Calculate (15)
A network diagram shows the binary subnet mask 11111111.11111111.11111100.00000000. Convert this binary mask to its dotted-decimal representation and determine the equivalent CIDR prefix length.
A network administrator assigns the block 192.168.10.0/24 to a branch office. How many host bits does this prefix leave, how many total IP addresses does the block contain, and how many of those addresses can be assigned to devices?
A small office needs its own subnet carved from a larger block. The administrator chooses a /26 prefix. How many host bits remain, what is the total address count, and how many usable host addresses does it provide?
A firewall rule needs to cover every IP from 10.0.0.0 to 10.0.3.255. How many total IP addresses does this range contain, and what CIDR prefix exactly describes it?
A network engineer is given the IP range 192.168.0.0 through 192.168.15.255 and must express it as a single CIDR block. What is the correct CIDR notation, and how many usable host addresses does it contain?
An enterprise network uses the 172.16.0.0/16 private address space. The network team wants to allocate individual /24 subnets to each department. How many /24 subnets can they create, and how many usable hosts does each provide?
You have the network 192.168.1.0/24 and want to divide it into smaller /28 subnets. How many /28 subnets can you create, and how many usable hosts does each one provide?
A server VLAN needs to support 200 servers. What is the smallest CIDR prefix that can accommodate 200 usable hosts, and how many addresses go to waste?
A campus network segment must support up to 2000 workstations in a single subnet. What is the smallest (tightest) CIDR prefix that still provides at least 2000 usable host addresses, and how many addresses are wasted?
A department needs a subnet that can support exactly 50 devices. What is the smallest (most specific) CIDR prefix that still provides at least 50 usable host addresses, and how many addresses are wasted?
You have 192.168.5.0/24 and must allocate non-overlapping subnets for two departments: Engineering (needs 100 hosts) and Sales (needs 50 hosts). Using VLSM, assign the smallest possible subnet to each department and list the resulting allocations.
A router has four routes in its table: 10.1.0.0/24, 10.1.1.0/24, 10.1.2.0/24, and 10.1.3.0/24. Aggregate them into the smallest single CIDR prefix that covers exactly these four networks. What is the supernet, and how many usable hosts does it contain?
From the block 10.0.0.0/24, two subnets have been allocated: 10.0.0.0/26 and 10.0.0.64/27. What is the first unallocated address, how many addresses remain, and what is the largest contiguous block available?
You have divided 10.0.0.0/24 into /28 subnets, numbered starting at 1. What is the network address, broadcast address, and usable host range for the 5th /28 subnet?
You have 172.16.10.0/24 and must allocate subnets to three departments: HQ (60 hosts), Branch1 (28 hosts), and Branch2 (12 hosts). Using VLSM, assign the tightest subnet to each and list the resulting allocations.
Design (10)
You want to segment your home lab network (192.168.0.0/24) into four isolated segments: LAN (main devices), IoT (smart home devices), Guest (visitor WiFi), and Management (network equipment). Assign a /26 subnet to each segment. List the network address, usable host range, and broadcast for each.
You need to allocate point-to-point subnets for 15 router-to-router links in your network. Each link requires exactly 2 host addresses (one per router interface). Use the block 10.0.0.0/24 and allocate a /30 subnet for each link. List all 15 link subnets and confirm that the block is sufficient.
You are setting up a cloud VPC with CIDR 10.0.0.0/16. The VPC spans 3 availability zones (AZ-A, AZ-B, AZ-C). Each AZ needs 3 subnets: public, private, and database. Design the addressing so that each AZ block is the same size and each tier is consistent across AZs. Each AZ should receive a /20 block, and each subnet within an AZ a /24.
You need to design an IP addressing scheme for a 50-person office using the network 192.168.1.0/24. The office has four departments: Staff (30 hosts), Servers (10 hosts), IoT (5 hosts), and Guest WiFi (20 hosts). Allocate a subnet for each department using VLSM. Minimize wasted addresses while leaving room for growth.
You are designing the IP addressing for a new server rack in a datacenter. The available block is 172.16.0.0/24. Allocate subnets for four segments: Management (8 hosts), Production (30 hosts), Database (6 hosts), and Monitoring (4 hosts). Use VLSM and keep allocations contiguous for easy summarization.
A 4-floor office building uses 192.168.0.0/22 as its total address space. Each floor has 3 VLANs. Design a hierarchical scheme where each floor receives a /24 block, and each VLAN within a floor receives a /26 subnet. List all 12 VLANs with their subnets.
Your company has a 10.10.0.0/16 block to allocate across four locations: HQ (8 VLANs, 250 hosts each), Branch-A (3 VLANs, 50 hosts each), Branch-B (3 VLANs, 50 hosts each), and Branch-C (2 VLANs, 25 hosts each). Design a hierarchical addressing plan that assigns a contiguous block to each site, then sub-divides within each site.
Design a DMZ architecture using a public block of 203.0.113.0/28 (for externally reachable services) and a private block of 10.0.100.0/24 (for internal DMZ communication). Place four services in the DMZ: web, mail, dns, and vpn. Assign a public IP to each service and a private subnet for internal management traffic.
Your organization has been assigned the IPv6 prefix 2001:db8:abcd::/48. You need to allocate a /56 block to each of 8 departments, and further sub-divide each /56 into /64 subnets for individual VLANs. How many /64 subnets does each department receive, and how many /64 subnets exist in the entire /48?
As an ISP, you have been assigned 198.51.100.0/24 to distribute to small business customers. Each customer receives a /29 block (6 usable host addresses). How many customers can you serve from this block? List the first 8 customer allocations with their network address, usable range, and broadcast.
Troubleshoot (10)
A network documentation entry claims the network is 10.0.0.0/20, but the subnet mask configured on the router interface is 255.255.248.0. Are these consistent? If not, what is the correct CIDR notation for the mask, and what is the actual network size?
A device with IP 192.168.1.100 and subnet mask 255.255.255.128 (/25) cannot reach its default gateway 192.168.1.1. Other devices on the same switch with mask 255.255.255.0 (/24) can reach the gateway fine. Identify the problem and the fix.
A workstation is configured with IP address 192.168.10.50 and prefix length /28. The default gateway is set to 192.168.10.1. The workstation has no internet access and cannot ping the gateway. Identify the problem.
A subnet 192.168.1.0/27 has its DHCP pool configured for the full usable range. Three addresses are statically reserved (gateway, DNS server, printer). The network administrator reports that 30 devices need DHCP addresses but some are receiving 169.254.x.x (APIPA) addresses. Identify the problem and recommend a fix.
A network engineer reports that a flat 10.0.0.0/16 network with 5,000 devices is experiencing high CPU utilization on all hosts, degraded throughput, and occasional network outages. Identify the root cause related to the broadcast domain size and recommend a remediation strategy.
A server has two network interfaces, eth0 and eth1, both configured in the 10.0.0.0/24 subnet. eth0 has IP 10.0.0.5/24 with gateway 10.0.0.1, and eth1 has IP 10.0.0.200/24 with gateway 10.0.0.1. Routing behaves unpredictably — some connections drop and asymmetric routing is observed. Identify the problem.
A network engineer assigned 10.0.0.0/23 to the Sales VLAN and 10.0.1.0/24 to the Engineering VLAN. Devices on Engineering cannot reliably communicate with each other. Identify whether the subnets overlap, what the overlapping range is, and how to fix it.
Two devices are connected on the same Ethernet link. Device A has link-local address fe80::1 on interface eth0. Device B has link-local address fe80::2 on interface eth1. Running 'ping6 fe80::2' from Device A fails. The devices are physically on the same link. Identify the problem and the correct ping command.
An organization has internal network 172.16.0.0/16. The NAT rule on the firewall translates source addresses 172.16.0.0/24 to the external IP 203.0.113.1. Hosts in 172.16.1.0 through 172.16.255.255 cannot access the internet. Identify the misconfiguration and explain which hosts are affected.
A network has been allocated 10.0.0.0/24. Two subnets have been assigned: LAN at 10.0.0.0/25 and Servers at 10.0.0.192/26. A junior engineer reports that addresses between the two allocations are missing from the address plan. Identify the gap, its size, and how it can be used.