PacktPublishing/Linux-for-Networking-Professionals

Issue on subnet calculation

nilend opened this issue · 3 comments

I think in the IPv4 addresses and subnet masks section in chapter 02, there is a wrong calculation for number of IPs. For 0-15 in the third octet we have 16 hosts and for 0-255 we have 256. So the right calculation should be (16 * 256) -2 which is 4094 not (15 * 254) -1. The reason for -2 is, in addition to broadcast address we need to remove the subnet address too.

Hi @nilend

Yes, this is already noted by a previous reader, and answered
Unless you are using NAT, you have to account for the network and broadcast addresses, so it’s the binary calculation minus two.

Regards,
Shubham

Yes, this is already noted by a previous reader, and answered

Thanks, Where we can find such errata page? I didn't find any Q/A section