Given an IP address 156.233.42.56 with a subnet mask of 7 bits. How many hosts and Subnets are Possible ?
@Na462 yes we should follow 2^n for subnetting but Gate is following 2^n-1 you can reffer previous year question also .
Since its class B then total number of bits for the host are 16. The mask is give of 7 bits. This means that the subnets in the autonomous system will be taking 7 bits and the rest 16-7 = 9 bits are for the hosts per subnet.
Hence option C is correct
Class B network has the form N: N: H: H, the default subnet mask is 16 bits long. There are an additional 7 bits to the default subnet mask. the total number of bits in the subnet are 16+7 = 23. This leaves us with 32-23 = 9 bits for assigning to hosts. 7 bits of subnet mask corresponds to 2^7-2 = 128-2 = 126 subnets. 9 bits belonging to host addresses correspond to 2^9-2 = 512-2 = 510 hosts. so, the answer will be 510 hosts and 128 subnets
64.3k questions
77.9k answers
244k comments
80.0k users