MultiCloud Classroom notes 03/Jan/2025

Networking

Subnetting

  • Divding a larger network into multiple smaller networks

References

  • Private CIDR ranges
    • 192.168.0.0/16
    • 172.16.0.0/12
    • 10.0.0.0/8

Problem statement 1

  • I have to create two subnets for an organizational private network
    Preview
  • Workplace will have 250 device and servers will be 250
  • Organizational network
total = 500

2^n - 2 ~= 500
n = 9
N = 32 - 9 = 23
network = 192.168.0.0/23
sip                                      = 192.168.0.0
eip            192.168.00000001.11111111 = 192.168.1.255
SM = 11111111.11111111.11111110.00000000
  • Subnet
size = 250
2^n - 2  ~= 250
n = 8
N = 24

N-SM: 11111111.11111111.11111110.00000000
S-SM: 11111111.11111111.11111111.00000000
           -------------------------------
                               X.
S1:             192.168.00000000.00000000/24 = 192.168.0.0/24
S2:             192.168.00000001.00000000/24 = 192.168.1.0/24  

Preview

Problem Statement 2

  • I have to create two subnets for an organizational private network
    Preview
  • Workplace has 1000 devices and we have 1000 servers
  • Organization network size is 2000
2^n - 2 ~= 2000
n = 11
N = 32 - 11 = 21
ip: 10.200.0.0/21

SM:  11111111.11111111.11111000.00000000
  • Subnet
2^n - 2 ~= 1000
n = 10
N = 22


N-SM: 11111111.11111111.11111000.00000000
S-SM  11111111.11111111.11111100.00000000
         ----------------------------------
                             X
S1-IP:           10.200.00000000.00000000/22 = 10.200.0.0/22
S2-IP:           10.200.00000100.00000000/22 = 10.200.4.0/22

Problem Statement 3

  • Organization needs 4 subnets
    Preview
  • Each subnet needs 2000 ip addresses
  • Organization size = 8000
2^n - 2 ~= 8000
n = 13
N = 32 -13 = 19

org-cidr = 172.16.0.0/19

SM:  11111111.11111111.11100000.00000000
  • Subnet
2^n -2 ~= 2000
n = 11
N = 32 - 11 = 21

NSM: 11111111.11111111.11100000.00000000
SSM: 11111111.11111111.11111000.00000000
-----------------------------------------
                          XX
S1ip:           172.16.00000000.0/21 = 172.16.0.0/21
S2ip:           172.16.00001000.0/21 = 172.16.8.0/21
S3ip:           172.16.00010000.0/21 = 172.16.16.0/21
S4ip:           172.16.00011000.0/21 = 172.16.24.0/21

Problem statement 4

  • Organization needs 4 subnets
    Preview
  • Each subnet needs 100 devices
  • Organization size = 400
2^n - 2 ~= 400
n = 9
N = 32 - 9 = 23
ip: 192.168.0.0/23
NSM: 11111111.11111111.11111110.00000000
  • Subnet:
2^n -2 ~ = 100
n = 7
N = 25

NSM: 11111111.11111111.11111110.00000000
SSM: 11111111.11111111.11111111.10000000
------------------------------------------
                              X.X
S1ip:          192.168.00000000.00000000 = 192.168.0.0/25
S2ip:          192.168.00000000.10000000 = 192.168.0.128/25
S3ip:          192.168.00000001.00000000 = 192.168.1.0/25
S4ip:          192.168.00000001.10000000 = 192.168.1.128/25

Relevance of subnets with application architectures

  • Three tier architecture
    Preview
  • Highly available three tier architecture
    Preview

How to establish connectivity between two private networks

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