title: Routing table interpretation
body: <p>Given the following table, where the network is using 8-bit host addresses, I am asked to compute the associated range of destination host addresses for every interface. Then I am also asked about the number of addresses in every range.</p>
  
  <pre><code>Table:
  prefix match         Interface
      00                  0
      010                 1
      011                 2
      10                  2
      11                  3
  </code></pre>
  
  <p>I determined that I am given the prefixes of the 8-bit binary IP's and the concluded that:</p>
  
  <blockquote>
    <p>00000000 to 00111111 (0-63 in decimal) uses interface 0</p>
  </blockquote>
  
  <p>addresses in the range = 2 to the power of (8 - the number of bits in the prefix, so 2) = 64</p>
  
  <blockquote>
    <p>01000000 to 01011111 (64-95 in decimal) uses interface 1</p>
  </blockquote>
  
  <p>addresses in range = 2^(8-3) = 32</p>
  
  <blockquote>
    <p>01100000 to 10111111 (96-191 in decimal) uses interface 2</p>
  </blockquote>
  
  <p>addresses in range = 2^5 = 32</p>
  
  <blockquote>
    <p>11000000 and higer   (192+ in decimal) uses interface 3</p>
  </blockquote>
  
  <p>addresses in range = 2^5 = 32</p>
  
  <p>Is my reasoning correct?</p>