# How many bits are needed to address a subnet with 100 hosts?

Category:
technology and computing
web development

A2- Yes you only need 8 bits for 100 hosts and both subnet masks would give you that. A subnet mask of 255.255.

**255.0**would give you lots of networks (2^{16}) and 254 hosts. A subnet of 255.255.

Also question is, how many bits are in a subnet?

32 bits

**bits**, separated into four 8-

**bit binary**words. When calculating

**subnet bits**, you are attempting to determine the number of hosts available in a

**subnet**based upon the

**subnet**mask. This mask, or the mask

**bits**, display how many hosts are available in the

**binary**IP address.

Beside this, what is the minimum bits needed if the network has 20 hosts?

So back to answer our initial question of the **minimum** subnet size to accommodate **20 hosts**, the **minimum** number of **host bits** required is 5 **bits** (2^5 = 32). 4 **bits** (2^4 = 16) will be too small. So 5 **bits** used for the **host** IDs leaves us with 32 – 5 = 27 **network bits**.

A portion of a network that shares a common address component. On TCP/IP networks, **subnets** are defined as all devices whose IP addresses have the same prefix. For **example**, all devices with IP addresses that start with 100.100. 100.