Azure Classroom Series – 09/Jul/2020

Networking contd..

  • Create a network which can help in connecting 2000 devices
    • the host id size should connect to 2000 devices
    • 2^n ~= 2000 answer would n is 11 as 2^11 = 2048
    • Now host size would be 11 bits
    • What should be ip addresss range? It is better to use private network cidr ranges
    • Private cidr ranges
      • 10.0.0.0/8
      • 172.16.0.0/12
      • 192.168.0.0/16
    • Lets choose any one of the above ranges
    iprange: 192.168.0.0/21
    subnet mask: 11111111.11111111.11111000.00000000
                  255.255.248.0
    
    • What would be ip address range for connecting to 3000 devices on your network?
    2^n ~= 3000 n = 12
    ip range: 172.16.0.0/20
    subnet mask: 11111111.11111111.11110000.00000000
                 255.255.240.0
    
    • What would be ip address range for connecting to 100000 devices on your network
    2^n ~= 100000  n = 17
    ip range: 10.0.0.0/15
    subnet mask:  11111111.11111110.00000000.00000000
                  255.254.0.0
    
    • Generally we would not work with one complete network, we try to break network into smaller sub networks and these smaller networks are called as subnets.

Networks and Subnets

  • Lets try to create subnets from a network
network ip range: 192.168.0.0/16
subnet mask: 255.255.0.0
network id: 192.168
size = 65000

lets try to create a subnet which can connect to 200 devices
2^n ~= 200 n = 8

ip range: 192.168.0.0/24
subnet mask: 255.255.255.0
network id 192.168.0
size = 250

lets create two more subnets which can connect 200 devices each
192.168.00000001.00000000
subnet 2: 192.168.1.0/24
192.168.00000010.00000000
subnet 3: 192.168.2.0/24
  • Lets try to create subnets from a network
network ip range: 10.10.0.0/16
subnet mask: 255.255.0.0

now lets create two subnets which can connect to 1000 devices
2^n ~= 1000 n = 10

ip address: 10.10.0.0/22
subnet mask = 11111111.11111111.11111100.00000000
            = 255.255.252.0

ip address: 10.10.4.0/22
subnet mask = 11111111.11111111.11111100.00000000

  • Lets create subnets (subnet1, subnet2) which can connect to 200 and 500 devices
ip address range: 172.16.0.0/16
subnet mask: 255.255.0.0

subnet1 : 172.16.0.0/24
2^n ~= 200 n = 8

subnet2: 
2^n ~= 500 n = 9
172.16.0000001   0.00000000 => 172.16.2.0/23
255.255.254.0


  • Try to calculate subnet cidr ranges for the office network shown below

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%