In: Computer Science
How many subnets and hosts are provided by the network 192.168.254.0/26 a. 4 networks with 64 hosts b. 4 networks with 62 hosts c. 254 networks with 62 hosts d. 2 network with 62 hosts
Solution:
Given,
=>Network address = 192.168.254.0/26
The answer will be an option,
(d) 2 network with 62 hosts.
Explanation:
=>In 192.168.254.0/26, /26 represents that 26 bits are given to net ID as well as subnet ID part and remaining 6 bits are given to host ID part.
=>Class C address range is 192 to 223 so the given address comes inside class C range.
=>In class C, 24 bits are given to the net ID part and 8 bits are given to host ID part.
=>As net ID part + subnet ID part = 26 bits
=>24 bits + subnet ID part = 26 bits
=>Subnet ID part = 2 bits
Calculating number of subnets:
=>Number of subnets with 2 bits = 2^2 - 2
(2 is subtracted one for network and one for broadcast address)
=>Number of subnets with 2 bits = 2
Calculating number of hosts:
=>Number of hosts with 6 bits = 2^6 - 2
=>Number of hosts with 6 bits = 64 - 2
=>Number of hosts with 6 bits = 62 hosts
(2 is subtracted one for network and one for broadcast address)
=>Hence on the basis of above statements we can say that option (d) is correct and other options are incorrect.
I have explained each and every part with the help of statements attached to the answer above.