I want to say 192.168.0.0/16 contains more IP addresses, 86 more to be precise? I've simply subtracted 168 from 254.
Can anyone clarify how you can determine which has more IP addresses?
Network Engineering Stack Exchange is a question and answer site for network engineers. It only takes a minute to sign up.Sign up to join this community
These IP blocks contain exactly the same number of IP addresses.
An IP is made of 4 bytes, separated by dots.
Each byte can take (theorically) the value from 0 to 255, meaning 256 different values, but I will be more precise just after.
/16 in CIDR notation means that the first 16 bits (or first two bytes) never change.
In other words :
BUT: by convention, you cannot take the very first and the very last address of the subnet. The first is called "network address", and the last is called "broadcast address" (it means packets sent to this last address are actually sent to all hosts in the subnet).
According to this convention, each /16 block contains 256 x 256 (the last two bytes) = 65536 IP, minus the first and the last address I mentioned just above, so :