Class C:
255.255.255.yyy
yyy : from 0 to 255
We mask as follows:
255.255.255.0
255.255.255.128
255.255.255.192
255.255.255.224
255.255.255.240
255.255.255.248
255.255.255.252
255.255.255.254
Subnet Mask | Subnet Bits | Maximum Subnets | Hosts per Subnet |
255.255.255.0 | 0 | 1 | 256 - 2 = 254 |
255.255.255.128 | 1 | 2 | 128 - 2 = 126 |
255.255.255.192 | 2 | 4 | 64 - 2 = 62 |
255.255.255.224 | 3 | 8 | 32 - 2 = 30 |
255.255.255.240 | 4 | 16 | 16 - 2 = 14 |
255.255.255.248 | 5 | 32 | 8 - 2 = 6 |
255.255.255.252 | 6 | 64 | 4 - 2 = 2 |
255.255.255.254 | 7 | 128 | 2 - 2 = 0 |
Hosts = (256 - Mask) - 2
Wildcard Mask: 0.0.0.(255 - Mask)
Subnet ID Example: 192.168.16.0
-------------------------------
Mask: 0
Broadcast Address: 192.168.16.255
Wildcard Mask: 0.0.0.255
0 + 255 = 255
Host Address Range: 192.168.16.0 - 192.168.16.254
Mask: 128
Broadcast Address: 192.168.16.127
Wildcard Mask: 0.0.0.127
128 + 127 = 255
Host Address Range: 192.168.16.0 - 192.168.16.126
Mask: 192
Broadcast Address: 192.168.16.63
Wildcard Mask: 0.0.0.63
192 + 63 = 255
Host Address Range: 192.168.16.0 - 192.168.16.62
Mask: 224
Broadcast Address: 192.168.16.31
Wildcard Mask: 0.0.0.31
224 + 31 = 255
Host Address Range: 192.168.16.0 - 192.168.16.30
Mask: 240
Broadcast Address: 192.168.16.15
Wildcard Mask: 0.0.0.15
240 + 15 = 255
Host Address Range: 192.168.16.0 - 192.168.16.14
Mask: 248
Broadcast Address: 192.168.16.7
Wildcard Mask: 0.0.0.7
248 + 7 = 255
Host Address Range: 192.168.16.0 - 192.168.16.6
Mask: 252
Broadcast Address: 192.168.16.3
Wildcard Mask: 0.0.0.3
252 + 3 = 255
Host Address Range: 192.168.16.0 - 192.168.16.2
Mask: 254
Broadcast Address: 192.168.16.1
Wildcard Mask: 0.0.0.1
254 + 1 = 255
Host Address Range: 192.168.16.0 - 192.168.16.0 -- Not to be considered.
|