VLSM Simulator
NETWORK ENGINEERING FUNDAMENTALS

VLSM Simulator

Variable Length Subnet Masking — step-by-step subnet allocation practice

Theory recap: How VLSM works

  1. Arrange host requirements in descending order — always allocate the largest subnet first.
  2. 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.
  3. 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.
  4. 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.
  5. Calculate the subnet range — Network address = start IP; Broadcast address = network address + block size − 1; Usable range = network+1 to broadcast−1.
  6. Move to the next subnet — the next subnet's start IP is the current broadcast address + 1.
Host bitsBlock size (2^n)Hosts fit (block−2)CIDR (from /24)Last octet mask
242/30252
386/29248
41614/28240
53230/27224
66462/26192
7128126/25128
8256254/240 (next octet)
Loading question...
Powers of 2 reference
n2345678
2^n48163264128256
Binary ↔ Decimal octet converter
Calculator
0

Post a Comment

Please do not enter any spam links in the comments...

Previous Post Next Post