## Exercise

• Exercise: Create a private network with 3 subnets

• Each subnet requires 25000 devices to be connected
• Total devices

``````2^n ~= 70000
host id bits = 17

network id bits = 15
``````
• We have 3 private cidr ranges
``````192.168.0.0/16 => min size for network id = 16 max size for host id = 16
=> we cannot use this range
172.16.0.0/12 => min size for network id = 12 max size for host id = 20
10.0.0.0/8 => max size for host id =>24
``````
• Lets choose 172.16.0.0
``````network => 172.16.0.0/15

IP: 10101100.00010000.00000000.00000000
SM: 11111111.11111110.00000000.00000000

IP: 10101100.0001000x.xxxxxxxx.xxxxxxxx

Each subnet has 25000 devices
2^n ~= 25000 n = 15

NETWORK IP: 10101100.0001000x.xxxxxxxx.xxxxxxxx
SUBNET  IP: 10101100.0001000x.xyyyyyyy.yyyyyyyy

Possibilities:

SUBNET1 : 10101100.00010000.0yyyyyyy.yyyyyyyy => 172.16.0.0/17
SUBNET2 : 10101100.00010000.1yyyyyyy.yyyyyyyy => 172.16.128.0/17
SUBNET3 : 10101100.00010001.0yyyyyyy.yyyyyyyy => 172.17.0.0/17
``````
• Exercise:
• We need a network with 8 subnets and each subnet requires 500 devices.
``````10.10.0.0/20

subnet1: 10.10.0.0/23
subnet2: 10.10.2.0/23
subnet3: 10.10.4.0/23
subnet4: 10.10.6.0/23
subnet5: 10.10.8.0/23
subnet6: 10.10.10.0/23
subnet7: 10.10.12.0/23
subnet8: 10.10.14.0/23
``````

## Networking Basics

• Devices with in a network can communicate with each other i.e. Devices with Same network id can communicate with each other directly
• If we need to communicate b/w two devices in different network they will not be able to communicate directly
• For the communication to happen i.e. for packets to travel from one network to other network we need a router
• Traceroute (tracert (Windows) traceroute (linux)) will show the hops to reach to the desired device

## First Network in Azure

• In Azure we create resources and the network which we are trying to create is also a resource.
• Every resource in Azure has to belong to some resource group.
• Generally for almost all the resources we need to specify the region

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