← CS Visual Lab · Computer Networks

🧮 IP subnetting

💡 The ideaA /n prefix means the first n bits are the network part. AND the IP with the mask to get the network address; set all host bits to 1 for the broadcast; usable hosts = 2^(32−n) − 2.
🏠 In real lifeA street (network) and house numbers (hosts): /24 is a street with 254 houses; /26 cuts it into 4 smaller streets of 62 houses each.

🎬 Watch it work

IP   11000000.10101000.00001010.01001101
Mask 11111111.11111111.11111111.11000000
Blue = network bits (26), orange = host bits (6).
Network address192.168.10.64
Broadcast address192.168.10.127
Subnet mask255.255.255.192
Wildcard mask0.0.0.63
First usable host192.168.10.65
Last usable host192.168.10.126
Usable hosts62
Class (old classful)C

✅ Check yourself (2 of 3 to pass)

1. How many usable hosts are in a /26 network?
2. The subnet mask for /27 is:
3. The network address is found by:
Next: Sliding window: Go-Back-N →Get a free certificate in Computer Networks