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
Last revision Both sides next revision
cidr [2016/05/09 16:26]
steve
cidr [2016/05/09 16:35]
steve
Line 86: Line 86:
 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 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!+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>​ <​code>​
Line 92: Line 92:
 192.168.1.0/​16 - the notation is low, so the IPs is high 192.168.1.0/​16 - the notation is low, so the IPs is high
 </​code>​ </​code>​
 +
 +The power of ''​2''​ is also evident when crossing the first 256 # of IP addresses. ​ If starting at ''​192.168.1.0'',​ and extending to ''​512'',​ then you're only adding one set of ''​256''​s. So ''​1.0''​ would expand to ''​2.0''​. But what if you wanted to add more? The power of 2 applies, so you'd then have to jump by ''​4'',​ next. ''​192.168.1.0''​ now goes to ''​192.168.4.0''​. The next one would be ''​4''​ times ''​2'',​ so 8 is the next possible block. Going from ''​192.168.1.0''​ to ''​192.168.8.0''​.