MultiCloud Classroom notes 23/Feb/2024

Expanding CIDR Ranges

  • 10.10.0.0/15
ip:       10.0000101x.xxxxxxxx.xxxxxxxx
min: 10.10.0.0
max:      10.00001011.11111111.11111111 => 10.11.255.255
SM: 11111111.11111110.00000000.00000000

Subnetting

  • Dividing a network into multiple smaller networks
  • Lets create two subnets from a network 192.168.0.0/24 of 250 devices, each subnet needs a network to connect approximately 100 devices
    Preview
  • solution
Network CIDR: 192.168.0.0/24

Network SM: 11111111.11111111.11111111.00000000

# subnet requrires 100
2^n ~= 100
n = 7
N = 32 - 7 = 25

Network SM: 11111111.11111111.11111111.00000000
Subnet SM:  11111111.11111111.11111111.10000000
    ------------------------------------------------
                                      .x
                             192.168.0.x0000000
                             192.168.0.00000000 = 192.168.0.0/25
                             192.168.0.10000000 = 192.168.0.128/25

Preview
* private cidr ranges

192.168.0.0/16
10.0.0.0/8
172.16.0.0/12
  • We are asked to create a network to host 1000 devices. This requires 4 subnets of approximately 200 devices
Network:

2^n ~= 1000
n = 10
N = 22

Network: 172.16.0.0/22
Network SM: 11111111.11111111.11111100.00000000

Subnet: 

2^n ~= 200
n = 8
N = 24
Network SM: 11111111.11111111.11111100.00000000
Subnet SM:  11111111.11111111.11111111.00000000
----------------------------------------------------
                                    xx
                       172.16.00000000         => 172.16.0.0/24
                       172.16.00000001         => 172.16.1.0/24
                       172.16.00000010         => 172.16.2.0/24
                       172.16.00000011         => 172.16.3.0/24

Preview

  • We are asked to create 4 subnets in a network. Each subnet needs approximately 2000 devices
Network:

2^n ~= 8000
n = 13
N = 19

network: 192.168.0.0/19

Subnet:

2^n ~= 2000
n = 11
N = 21
Network SM: 11111111.11111111.11100000.00000000
Subnet SM:  11111111.11111111.11111000.000000000
          ---------------------------------------
                      192.168.000xx000.
                      192.168.00000000.            = 192.168.0.0/21
                      192.168.00001000.            = 192.168.8.0/21
                      192.168.00010000.            = 192.168.16.0/21
                      192.168.00011000.            = 192.168.24.0/21


Network: 192.168.0.0/19
subnet 1: 192.168.0.0/21
subnet 2: 192.168.8.0/21
subnet 3: 192.168.16.0/21
subnet 4: 192.168.24.0/21


network: 10.10.128.0/19

Network SM: 11111111.11111111.11100000.00000000
Subnet SM:  11111111.11111111.11111000.000000000
          -----------------------------------------
                        10.10.100xx000
                        10.10.10000000 = 10.10.128.0/21
                        10.10.10001000 = 10.10.136.0/21
                        10.10.10010000 = 10.10.144.0/21
                        10.10.10011000 = 10.10.152.0/21 
  • I want to create 4 subnet of size 100 each
Network:
2^n ~= 400
n = 9
N = 23
network: 192.168.0.0/23

Subnet:
2^n ~ =  100
n = 7
N = 25

Network SM: 11111111.11111111.11111110.00000000
Subnet SM : 11111111.11111111.11111111.10000000
            -------------------------------------
                      192.168.0000000x.x0000000
                      192.168.00000000.00000000  = 192.168.0.0/25
                      192.168.00000000.10000000  = 192.168.0.128/25
                      192.168.00000001.00000000  = 192.168.1.0/25
                      192.168.00000001.10000000  = 192.168.1.128/25

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a 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

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube