Azure Classroomnotes 27/Jul/2022

Networking Contd..

  • Creating networks based on number of devices to be connected
  • While creating networks, we use ip address ranges reserved for private networking.
10.0.0.0 – 10.255.255.255 
172.16.0.0 – 172.31.255.255
192.168.0.0 – 192.168.255.255
  • Creating the networks with more flexibility
ip: 192.168.0.4
sm: 255.255.255.0

nid  192.168.0  
hid  4

size of the network => 2^8-2 = 256-2 = 254

sm => 255.0.0.0 => 24 => 2^24-2
      255.255.0.0 => 16 => 2^16-2  => 65534
      255.255.255.0  => 8 => 2^8-2
255.255.255.0
11111111.11111111.11111111.00000000 => 8 => 2^8-2 => 254
11111111.11111111.11111111.10000000 => 7 => 2^7-2 => 126

Create a network with 20 devices =>

2^n ~= 20 n = 5

11111111.11111111.11111111.11100000
255.255.255.224

find number of 0's for a network of size 2500

2^n ~= 2500
n = 12  (number of zeros = 12)
N => 32-12 => 20 (number of ones)
11111111.11111111.11110000.00000000
255.255.240.0
  • Find the subnet masks for the network with following size requirements
  • 10
2^n ~= 10
n (number of 0 ) = 4
N (number of 1) => 32-4 => 28
SM: 11111111.11111111.11111111.11110000
  : 255.255.255.240
IP: x.x.x.x/28 (CIDR Notation)
  • 100000
2^n ~= 100000
n = 17
N = 32-17 = 15
SM: 11111111.11111110.00000000.00000000
    255.254.0.0
CIDR: x.x.x.x/15
  • 5200
2^n ~= 5200
n = 13
N = 32-13 = 19
SM: 11111111.11111111.11100000.00000000
  : 255.255.224.0
CIDR: x.x.x.x/19
  • Lets expand the following CIDR Range
ip range: 192.168.0.0/24
sm: 11111111.11111111.11111111.00000000
range ip: 192.168.0.0 - 192.168.0.255



cidr: 192.168.0.0/16
sm: 11111111.11111111.00000000.00000000
ip range: 192.168.0.0 - 192.168.255.255

cidr: 192.168.0.0/22
SM: 11111111.11111111.11111100.00000000
ip range: 192.168.0.0 - 192.168.3.255

cidr: 10.0.0.0/20
SM: 11111111.11111111.11110000.00000000
ip range: 10.0.0.0 - 10.0.15.255
  • For the CIDR ranges reserved for private networking refer below
    Preview

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 Network Widget by Acurax Small Business Website Designers

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