hao

hao
hao

Friday, September 4, 2015

Understanding CIDR

Please Click this link for detail ----- >>  Understanding CIDR Subnet Mask Notation



128       64       32      16      8       4        2        1

128      192      224    240    248    252    254     255

/1          /2      /3        /4      /5      /6     /7       /8       (/8= 255.0.0.0  /1=128.0.0.0)

/9         /10     /11      /12     /13    /14   /15     /16      (/16 = 255.255.0.0)

/17       /18     /19      /20     /21     /22   /23     /24     ( /24 =255.255.255.0 )

/25      /26      /27      /28     /29     /30   /31     /32     ( /31 =255.255.255.254 )

*** total ip for  /32 = 1
*** usable ip for /32 = 1

total ip for /31 = 2
usable ip for /31 = 2-2 = 0   { total ip - 2 }


255.255.255.0 = 11111111 . 11111111 . 11111111 . 00000000  =/24 ( total no: of 1 = 24 )

255.255.255.192=11111111. 11111111 . 11111111. 11000000 = /26 (total no: of 1 = 26)

How to calculate the number of hosts on a network?
1-cmd --- >>> type ipconfig
2-255 is eight ones represented in binary
so,  8. 8 . 8 . 0  --- >>> 8 + 8 + 8 + 0 = 24 bits
3- 32 - 24 = 8 --- >>> 2 power 8 = 256
4-256 - 2 = 254
so , the final number of host = 254
2 --- >>> net address and broadcast address