MultiCloud Classroom notes 01/Dec/2024

Private networks

Preview

  • Choosing a private cidr range has two criteria
    • choose a cidr which fits your size
    • choose a cidr different than any other private network which it needs to comunicate with in such a way that ips donot collide with each other

Subnetting

  • subnet (sub-network)
  • This is dividing networks into smaller networks

Problem 1

  • I want to create a network of 500 devices and create two subnets with the capacity of 250 each
  • note:
    • n: hostid bits
    • N: network id bits
  • Network
2^n -2 ~= 500
n = 9
N = 32 - 9 = 23

192.168.0.0/23
  • subnets = 2
2^n - 2 ~= 250
n = 8
N = 32 - 8 = 24

network ip: 192.168.0.0/23
network sm: 11111111.11111111.11111110.00000000
subnet sm:  11111111.11111111.11111111.00000000
-------------------------------------------------
                                     X
subnet 1 :            192.168.00000000.xxxxxxxx => 192.168.0.0/24
subnet 2 :            192.168.00000001.xxxxxxxx => 192.168.1.0/24

Problem 2:

  • I want a network of 1000 devices with two subnets of 500 each
  • Network
2^n ~= 1000
n = 10
N = 32 - 10 = 22

172.16.0.0/22
  • Subnet = 2
2 ^ n ~= 500
n = 9
N = 32 - 9 = 23

network ip: 172.16.0.0/22
network SM: 11111111.11111111.11111100.00000000
subnet SM : 11111111.11111111.11111110.00000000
--------------------------------------------------
                                    X
subnet 1   :           172.16.0000000x.xxxxxxxx => 172.16.0.0/23
subnet 2   :           172.16.0000001x.xxxxxxxx => 172.16.2.0/23

Problem 3

  • I need a network for 4 subnets with 100 devices each
  • Network:
2^n ~= 400
n = 9
N = 32 -9 = 23

network ip: 10.0.0.0/23
  • subnet
2^n ~= 100
n = 7
N = 32-7 = 25

network ip: 10.0.0.0/23
network SM: 11111111.11111111.11111110.00000000
subnet SM : 11111111.11111111.11111111.10000000
-------------------------------------------------
                                     X.X
subnet 1:                10.0.00000000.0xxxxxxx => 10.0.0.0/25
subnet 2:                10.0.00000000.1xxxxxxx => 10.0.0.128/25
subnet 3:                10.0.00000001.0xxxxxxx => 10.0.1.0/25
subnet 4:                10.0.00000001.1xxxxxxx => 10.0.1.128/25


Problem 4

  • Create 2 subnets of size 50000 devices
  • Network size = 100000
2^n ~= 100000
n = 17
N = 32 -17 = 15

network ip: 10.0.0.0/15

  • subnets
2^n ~= 50000
n = 16
N = 32 - 16 = 16

network ip: 10.0.0.0/15
network SM: 11111111.11111110.00000000.00000000
subnet SM:  11111111.11111111.00000000.00000000
------------------------------------------------
                            X.
subnet 1:         10.00000000.xxxxxxxx.xxxxxxxx  => 10.0.0.0/16
subnet 2:         10.00000001.xxxxxxxx.xxxxxxxx  => 10.1.0.0/16

Problem 5

  • Create 8 subnets of 100 devices each
  • Network size = 800
2^n ~= 800
n = 10
N = 22

network ip: 192.168.0.0/22
  • Subnet
2^n ~= 100
n = 7
N = 25

network ip: 192.168.0.0/22
network sm: 11111111.11111111.11111100.00000000
subnet sm:  11111111.11111111.11111111.10000000
---------------------------------------------------
                                    XX.X

subnet 1:             192.168.00000000.0xxxxxxx 192.168.0.0/25
subnet 2:             192.168.00000000.1xxxxxxx 192.168.0.128/25
subnet 3:             192.168.00000001.0xxxxxxx 192.168.1.0/25
subnet 4:             192.168.000000XX.Xxxxxxxx 192.168.1.128/25
subnet 5:             192.168.000000XX.Xxxxxxxx 192.168.2.0/25
subnet 6:             192.168.000000XX.Xxxxxxxx 192.168.2.128/25
subnet 7:             192.168.000000XX.Xxxxxxxx 192.168.3.0/25
subnet 8:             192.168.000000XX.Xxxxxxxx 192.168.3.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