The address of a class B host is to be split into subnets with a 6-bit subnet number. What is the maximum number of subnets and the maximum number of hosts in each subnet?
- 62 subnets and 262142 hosts.
- 64 subnets and 262142 hosts
- 62 subnets and 1022 hosts.
- 64 subnets and 1022 hosts.
My attempt :
In class B network ID is 16 bits. Given 6 bits for subnet ID, so remaining bits for host ID is = 32- (16+6) = 10 bits.
Maximum number of hosts in each subnet = 2^(number of bits for hosts) - 2(all 0's and all 1's not allowed in hosts IDs, because first is subnet ID while last is broadcast ID) = 2^10 - 2 = 1022.
I've read somewhere :
Subtracting 2 from host IDs is necessary while subtracting 2 from
subnet IDs is not necessary.
So, maximum number of subnet IDs is = 2^(number of bits for subnet ID) - 2(not compulsory) = 2^6 = 64 is maximum.
Can you explain please, Is subtracting 2 from subnet ID necessary?