networking - Routing table interpretation -


given following table, network using 8-bit host addresses, asked compute associated range of destination host addresses every interface. asked number of addresses in every range.

table: prefix match         interface     00                  0     010                 1     011                 2     10                  2     11                  3 

i determined given prefixes of 8-bit binary ip's , concluded that:

00000000 00111111 (0-63 in decimal) uses interface 0

addresses in range = 2 power of (8 - number of bits in prefix, 2) = 64

01000000 01011111 (64-95 in decimal) uses interface 1

addresses in range = 2^(8-3) = 32

01100000 10111111 (96-191 in decimal) uses interface 2

addresses in range = 2^5 = 32

11000000 , higer (192+ in decimal) uses interface 3

addresses in range = 2^5 = 32

is reasoning correct?

the number of addresses in each range 2(8 - prefixlen). if prefix has 2 bits, number of addresses 26 = 64.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -