IP Subnetting Notes

For a WAN link you would use, which would give you for example for a subnet address and and for each end and as the broadcast address. The next subnet would be

To calculate the number of address in a subnet mask you would subtract the final byte from 255 and add 1, ie 255 - 252 + 1 = 4 which is the number of address for that subnet mask. The reason for adding one is because the numbering range is 0 to 255 which actually gives you 256, hence the add 1. This works for all masks to. Then you get to reverse bit masking too. I have been meaning to write some simple rules to help with this but have been quite busy.