Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cidr [2016/05/09 16:22]
steve
cidr [2016/05/09 16:27]
steve
Line 83: Line 83:
  
 That is, if you have ''​192.168.1.0/​21'',​ which gives you ''​8'',​ then if you go down one # -- from ''​192.168.1.0/​21''​ to ''​192.168.1.0/​20''​ -- 20 being the next possible range size, then your number ''​8''​ is going to double to ''​16''​. That is, if you have ''​192.168.1.0/​21'',​ which gives you ''​8'',​ then if you go down one # -- from ''​192.168.1.0/​21''​ to ''​192.168.1.0/​20''​ -- 20 being the next possible range size, then your number ''​8''​ is going to double to ''​16''​.
 +
 +The opposite is also true, going from ''​192.168.1.0/​21''​ to ''​192.168.1.0/​22''​ is going to give you less addresess -- 4.
 +
 +The reason this can get confusing, trying to keep track of which numbers are higher or lower, remember that the higher the number on the CIDR, the lower the amount of possible IPs. Instinct may tell you that ''/​32''​ is higher than ''/​24''​ and so a ''/​32''​ notation means more. The opposite is true. It's like a see-saw! Only one can be high.
 +
 +<​code>​
 +192.168.1.0/​32 - the notation is high, so the IPs is low
 +192.168.1.0/​16 - the notation is low, so the IPs is high
 +</​code>​