I came across this question in an online subnetting tutorial and was really confused on how to figure it out.
Given an IP address of 131.107.2.160 and a subnet mask of 255.255.255.192, to which subnet class does the host belong?
A. 131.107.2.32
B. 131.107.2.64
C. 131.107.2.96
D. 131.107.2.128
E. 131.107.2.192
How do you calculate this? What formula is used? Can you calculate using
(2^n-2) where n=the number of masked bits in subnet field. n is the number of 1s in the octet for the class that is available for subnetting
(2^y-2) where y=number of off bits in host field. y is bits available for subnetting - n
thanks

: