Subnet ID

Subnet ID is the portion of the IP address that is designated for identifying a sub-network. It consists of bits "borrowed" from the Host ID and appended to the Network ID.

Task: Calculate the number of bits required for the Subnet ID to support the given number of subnets.

Number of Subnets Number of bits in Subnet ID
2 1
128 7
500