2 ^ n - 2 = Size
n => 8,16,24
2^n ~= Size
2^n = 150
n = 8
SM = 255.255.255.0
I need a netowrk to connect 270 devices
2^n ~= 270
n = 16
SM = 255.255.0.0
Since this scheme has a chance of creating networks which are way larger than needs, the alternative apporach is to look at SM as bits rather than octets
That means network id is number of bits where you will be having continuous 1’s and host id bits where you be having continous 0’s
I want a network of 280 devices
2^n-2 = size
2^n - 2 ~= 280
n = 9 (number of host id bits)
total bits = 32
network id bits = 32 - 9 = 23
SM: 1111111.1111111.1111110.00000000