NETWORK ENGINEERING FUNDAMENTALS
VLSM Simulator
Variable Length Subnet Masking — step-by-step subnet allocation practice
Theory recap: How VLSM works
- Arrange host requirements in descending order — always allocate the largest subnet first.
- Add +2 to every host requirement — one address is reserved for the network address and one for the broadcast address, so neither can be assigned to a host.
- Find the number of host bits needed — the smallest number of bits n such that 2n ≥ (hosts required + 2). This determines the block size (2n) and the new subnet mask.
- Build the new subnet mask — take the existing mask, turn the remaining host-portion 0's (up to the number of bits still needed) into 1's, starting from the left of the host portion.
- Calculate the subnet range — Network address = start IP; Broadcast address = network address + block size − 1; Usable range = network+1 to broadcast−1.
- Move to the next subnet — the next subnet's start IP is the current broadcast address + 1.
| Host bits | Block size (2^n) | Hosts fit (block−2) | CIDR (from /24) | Last octet mask |
|---|---|---|---|---|
| 2 | 4 | 2 | /30 | 252 |
| 3 | 8 | 6 | /29 | 248 |
| 4 | 16 | 14 | /28 | 240 |
| 5 | 32 | 30 | /27 | 224 |
| 6 | 64 | 62 | /26 | 192 |
| 7 | 128 | 126 | /25 | 128 |
| 8 | 256 | 254 | /24 | 0 (next octet) |
Loading question...
Powers of 2 reference
| n | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|
| 2^n | 4 | 8 | 16 | 32 | 64 | 128 | 256 |
Binary ↔ Decimal octet converter
Calculator
0
Post a Comment
Please do not enter any spam links in the comments...