Subnetting Practice Questions with Solved Answers

 

Subnetting Practice Questions with Solved Answers



Question 1

Find the network address and broadcast address of:
192.168.1.10 /24

Solution

  • /24 means subnet mask = 255.255.255.0

  • Network address → 192.168.1.0

  • Broadcast address → 192.168.1.255

✅ Answer:
Network: 192.168.1.0
Broadcast: 192.168.1.255


Question 2

How many hosts are available in a /26 network?

Solution

  • Total bits = 32

  • Host bits = 32 − 26 = 6

  • Hosts = 26−2=622^6 − 2 = 62

✅ Answer: 62 usable hosts


Question 3

What is the subnet mask of /27?

Solution

  • /27 means 27 network bits

  • Subnet mask = 255.255.255.224

✅ Answer: 255.255.255.224


Question 4

Find the subnet size (block size) of a /28 network.

Solution

  • Last octet mask = 240

  • Block size = 256 − 240 = 16

✅ Answer: 16 IP addresses per subnet


Question 5

How many subnets are created if you borrow 3 bits?

Solution

  • Number of subnets = 23=82^3 = 8

✅ Answer: 8 subnets


Question 6

Identify the subnet of IP address:
10.0.0.77 /25

Solution

  • /25 subnet mask = 255.255.255.128

  • Block size = 128

  • Subnets:

    • 10.0.0.0 – 10.0.0.127

    • 10.0.0.128 – 10.0.0.255

  • IP 10.0.0.77 falls in first subnet

✅ Answer: 10.0.0.0 /25


Question 7

What is the broadcast address of:
172.16.5.33 /30

Solution

  • /30 mask = 255.255.255.252

  • Block size = 4

  • Nearest network = 172.16.5.32

  • Broadcast = 172.16.5.35

✅ Answer: 172.16.5.35


Question 8

How many usable hosts are in a /30 subnet and where is it used?

Solution

  • Host bits = 2

  • Usable hosts = 22−2=22^2 − 2 = 2

  • Commonly used for point-to-point links

✅ Answer:
2 usable hosts, used for router-to-router links

Featured Post

Day 41 — BGP Confederations: Sub-AS Design, External View and Migration

1. Opening Confederations are another way to scale BGP inside a large administrative domain. They divide the domain into member autonomous systems while presenting a single confederation identifier to external peers. They are powerful, but their operational model is more complex than simply 'using private ASNs inside.' The engineering goal is not to memorize another BGP command. It is to understand what information each speaker is allowed to propagate, what path information can be hidden, and what failure domain is created by the chosen control-plane architecture . 2. Concept and standards behavior RFC 5065 defines AS_CONFED_SEQUENCE and AS_CONFED_SET and how member-AS relationships are represented. Confederation external sessions have eBGP-like properties inside the confederation, while the confederation is presented externally as one AS. Modern guidance must also account for the fact that RFC 9774 prohibits new origination of AS_SET/AS_CONFED_SET in ordinary aggregation c...