# (Solved): PLEASE SHOW THE WORK ON HOW TO GET THE ANSWER PLEASE A Company Has An IP As 199.21.12.40/27 Which Cl...

A company has an IP as 199.21.12.40/27

Which class?

Class C

Whatâ€™re the NetID,            hostID and network address (if without subnet)?

199.21.12              40               199.21.12.0

255.255.255.0

How many bits for subnet?

A = B +C

B is the bit number of NetId

C is the bit number of Subnet

A= 27,                    B = 3 bytes = 3x8 =24 bits

So, we get C= 3

3 bits for subnet

How many bits left for hostID?

Before HostID has 1 byte = 8bits

Now hostID has 8-3 = 5 bits

Convert it into bits:                                             255.255.255.00000000

3 bits taken from hostID for subnet:                255.255.255.00000000

Change the three 0s to 1s:                                  255.255.255.11100000

Convert it into decimal:                                     255.255.255.224

How many subnets does it provide?

2n , n is the bits borrowed from hostid for subnet

Here n = 3

So, we have 23 = 8

How many host IP in each subnet?

2m-2,   here m is the bit number left for hostID. m= 5

So, 25-2 = 32 -2 =30

Pick any subnet, then list the bits for that subnet chosen, give the subnet address, IP range and broadcast IP for that subnet.

3 bits for subnet:   199.21.12. 00000000

I choose the 3 bits as 001 for the subnet

199.21.12.00100001 -Ã  1st host IP address: 199.21.12.33

199.21.12.00100010 -Ã  2nd host IP address: 199.21.12.34

â€¦â€¦â€¦

199.21.12.00111110 -Ã  last host IP address: 199.21.12.62

We have an Answer from Expert