This question already has an answer here:
I could use some help with my way of calculating usable subnets and usable hosts.
the way i normally do it:
18.104.22.168 (class B)
network | host
169.199 | 109.137
255.255 | 255.192 = 11111111.11000000 = 10(1) 6(0)
2^10 = 1024 usable subnets
2^6 = 64-2 = 62 usable hosts
that is the way I normally do it but my teacher would like to me use another method since i have use my own method wrong on multiple occasions.
22.214.171.124 (class C)
network bits (n), subnet bits (s) and host bits (h)
then from that he gets the numbers he needs above the 2^?
2^? = ? usable subnets
2^? = ?-2 = ? usable hosts
I don't understand how his way works, how he gets the correct amount of n, s and h, and what to place above the 2^
I am one week into learning about ip's and subnetting, so when you give me a way to learn his way do explain it so I would understand it.