MultiCloud Classroom notes 21/Jun/2025

Networking contd

Private CIDR Ranges

  • 192.168.0.0/16
  • 10.0.0.0/8
  • 172.16.0.0/12

Scenario 3:

  • Create a private network for 100000 devices
size = 100000

2^n - 2 ~= 100000
n = 17
N = 32 - 17 = 15

ip:        10.0000000x.xxxxxxxx.xxxxxxxx/15
sip:       10.00000000.00000000.00000000/15 => 10.0.0.0
eip:       10.00000001.11111111.11111111/15 => 10.1.255.255
SM:  11111111.11111110.00000000.00000000

range: 10.0.0.0 to 10.1.255.255

Subnetting

  • Subnetting involves create subnetworks from network

Example -1

  • In this case we need two subnets of size 500
  • Network size and cidr
size = 1000
2^n ~= 1000
n = 10
N = 22

network cidr = 172.16.0.0/22
nsm: 11111111.11111111.11111100.00000000

  • for subnet lets find network id bits and host id bits
2^n ~= 500
n = 9
N = 23

ssm: 11111111.11111111.11111110.00000000
  • lets decide subnet ranges

ip:   172.16.0.0
nsm:  11111111.11111111.11111100.00000000
ssm:  11111111.11111111.11111110.00000000
      ------------------------------------
                              x
      -------------------------------------                        
ip:        172.16       .00000x0.0/23
s1:        172.16       .0000000.0/23 = 172.16.0.0/23
s2:        172.16       .0000010.0/23 = 172.16.2.0/23

Example -2

  • Create a network for the following
  • Network size = 4000
2^n ~= 4000
n = 12
N = 20

network: 10.0.0.0/20
nsm:  11111111.11111111.11110000.00000000
  • subnet size = 1000
2^n ~= 1000
n = 10
N = 22
ssm:  11111111.11111111.11111100.00000000
  • Lets find individual cidrs of subnet

nsm:  11111111.11111111.11110000.00000000
ssm:  11111111.11111111.11111100.00000000
ip:         10.       0.0000xx00.0/22 
s1:         10.       0.00000000.0/22 = 10.0.0.0/22
s2:         10.       0.00000100.0/22 = 10.0.4.0/22
s3:         10.       0.00001000.0/22 = 10.0.8.0/22 
s4:         10.       0.00001100.0/22 = 10.0.12.0/22

Example – 3

  • Create a private network with subnet cidrs for the below
  • Network: 192.168.0.0/21
  • subnets:
    • 192.168.0.0/23
    • 192.168.2.0/23
    • 192.168.4.0/23
    • 192.168.6.0/23

Example -4

  • Create a private network with 6 subnets of size 100 each
  • network
2^n ~= 600
n = 10
N = 22

ip   192.168.0.0/22
nsm: 11111111.11111111.11111100.00000000
  • subnet
2^n ~= 100
n = 7
N = 25

ssm: 11111111.11111111.11111111.10000000
  • Subnet cidrs
nsm: 11111111.11111111.11111100.00000000
ssm: 11111111.11111111.11111111.10000000
ip:       192.     168.000000xx.x0000000/25
s1:       192.     168.00000000.00000000/25 = 192.168.0.0/25
s1:       192.     168.00000000.10000000/25 = 192.168.0.128/25
s1:       192.     168.00000001.00000000/25 = 192.168.1.0/25
s1:       192.     168.00000001.10000000/25 = 192.168.1.128/25
s1:       192.     168.00000010.00000000/25 = 192.168.2.0/25
s1:       192.     168.00000010.10000000/25 = 192.168.2.128/25

  • Create a private network with
    • 16 subnets of 200 devices
    • 4 subnets of 50000 devices
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing 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%%