VLSM
Cheat sheet · https://pcornel.dk/topic.php?topic=930
Answer
Variable-Length Subnet Masking (VLSM) gives each subnet the size it needs (a /30 or /31 for links, a /24 for a user VLAN) instead of one fixed size, wasting fewer addresses.
Remember
Allocate the largest subnets first, then smaller ones, each on its own block boundary, so they do not overlap. Use /31 (or /30) for point-to-point links and /32 for loopbacks. Keep each site's subnets inside one summary block so routing can be summarised.
First checks
show ip interface brief— addresses on each interface.show ip interface <if> | include Internet address— address with prefix length.show ip route connected— the subnets the router derives from its addresses.show ip route <prefix> longer-prefixes— overlapping or more specific routes.- Subnet calculator (e.g.
ipcalc <ip>/<len>on Linux) — network, broadcast and host range.
Commands
show ip interface briefshow ip route connected
Verify in this order
requirements sorted by size → largest allocated first on block boundaries → smaller fill remaining space → no overlaps → summary per site
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=930