← 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.11000000Blue = network bits (26), orange = host bits (6).
| Network address | 192.168.10.64 |
| Broadcast address | 192.168.10.127 |
| Subnet mask | 255.255.255.192 |
| Wildcard mask | 0.0.0.63 |
| First usable host | 192.168.10.65 |
| Last usable host | 192.168.10.126 |
| Usable hosts | 62 |
| Class (old classful) | C |