Need help understanding CIDR and submask

David Malenfant

I need help with this question: You have been assigned the 132.45.0.0/16 network block - What is the extended network prefix in CIDR(/n) notation that allows for the creation of 5 subnets? - What is the corresponding subnet mask in dotted decimal notation.

I understand that 5 will 2^3 = 8 and that the network prefix for 132.45.0.0 would be 10001000.00101101.00000000.00000000. What I do not understand is since it is /16 do I convert it /24 since subnet mask is 255.255.255.000 = 11111111.11111111.11111111.00000000 and it's extension would have to be the first 3 000 in the last octet?

chenchuk

You have a network : 132.45.0.0/16 with 16 bits

You need 5 subnets which is 3 digits more.

So in total :

  • the leftmost 16 bits are the network-id
  • the next 3 digits are the subnet-id
  • the last 13 digits are the host-id

lets look at the 3rd octet and split it to 3 'subnet bits' for a better view :

subnet 0 = 132 . 45 . 000 00000 . 0 -> also 132.45.0.0 /19
subnet 1 = 132 . 45 . 001 00000 . 0 -> also 132.45.32.0 /19
subnet 2 = 132 . 45 . 010 00000 . 0 -> also 132.45.64.0 /19
subnet 3 = 132 . 45 . 011 00000 . 0 -> also 132.45.96.0 /19
subnet 4 = 132 . 45 . 100 00000 . 0 -> also 132.45.128.0 /19
subnet 5 = 132 . 45 . 101 00000 . 0 -> also 132.45.160.0 /19
subnet 6 = 132 . 45 . 110 00000 . 0 -> also 132.45.192.0 /19
subnet 7 = 132 . 45 . 111 00000 . 0 -> also 132.45.224.0 /19

Given that, we can say :

  • a host 132.45.3.30/16 is in the same network as 132.45.100.40/16
  • a host 132.45.3.30/19 is NOT the same subnet as 132.45.100.40/19
  • a /16 block can be devided to 8 pieces of /19 blocks
  • each piece (subnet) has 13 ramaining bits for available addresses (2^13=8192)
  • 8 subnets is the 'most accurate' choice to get 5 subnets ( the division number must be a power-of-2 ( ie. 2,4,8,16,32...etc)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related