Four subnets need two extra network bits, so the prefix goes from /24 to /26, a mask of 255.255.255.192. Each subnet has 64 addresses and 62 usable hosts. The networks start at .0, .64, .128 and .192. In the first, .0 is the network address, .1 to .62 are hosts and .63 is the broadcast, and the pattern repeats, so the last subnet uses .193 to .254 with .255 as its broadcast address.
Why interviewers ask this
Subnetting is a basic skill that network engineers use constantly, in addressing plans, firewall rules and troubleshooting, so interviewers test it directly. They want to see that you can work it out quickly and correctly without a calculator, and that you understand network and broadcast addresses. Following up with how you would size subnets differently for different needs, using variable-length masks, shows you can apply it to real designs.
How to structure your answer
- Work out how many bits to borrow.
- State the new mask and block size.
- List the four networks with their host ranges.
- Mention variable-length masks for unequal needs.
Example answer
Four subnets means borrowing two bits from the host part, because two bits give four combinations. So the /24 becomes a /26, which is a mask of 255.255.255.192. The block size is 256 minus 192, which is 64, so each subnet has 64 addresses, and once you take away the network and broadcast addresses, 62 usable hosts. The four networks are 192.168.10.0/26, 192.168.10.64/26, 192.168.10.128/26 and 192.168.10.192/26. In the first one, .0 is the network address, .1 to .62 are usable and .63 is the broadcast. The second runs from .65 to .126 with .127 as broadcast, the third from .129 to .190 with .191, and the last from .193 to .254 with .255. In a real design I would rarely split evenly, though. If one site needs 100 hosts and three links need two each, I would use variable-length masks: a /25 for the large LAN and /30s or /31s for the point-to-point links. That wastes far less space and leaves room to grow.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- What mask would you use for a subnet that needs 500 hosts?
- Why can a /31 be used on a point-to-point link?
- How would you summarise these four subnets in a single route?
Related network engineer questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions