Microsoft Azure Fundamentals 05

2 years ago
32

IPV4 :-

32 bit address - 2*32 ip’s will get
255 —-> 0 to 255

10.10.20.0/24
32 - 24 = 8 = 2*8 = 2 2 2 2 2 2 2 2 = 256 ip’s

10.10.20.0
10.10.20.1
10.10.20.2
10.10.20.3
10.10.20.255
—--

10.10.20.0 /24

4 octet = each octet will be divided into 8 bit

10011010.10010101.10101010.0000000

Network portion :
Host portion :
====================================

Example 2 :-
172.168.20.0/26
32 - 26 = 6 = 2^6 = 2 2 2 2 2 2 = 64 ip’s
172.168.20.0
172.168.20.1
172.168.20.2
172.168.20.63

Subnet : dividing your vnet into small portions will call it as a Subnet
Scenario:

Create a Network with 3 subnets :-

192.168.50.0/24 -

How many number of ip’s :

32 - 24 = 8 = 2^8 = 2 2 2 2 2 2 2 2 = 256 ip’s

Subnet 1 : 64 ips

192.168.50.0/26

32 - 26 = 6 = 2^6 = 2 2 2 2 2 2 = 64 ip’s

192.168.50.0
192.168.50.1
192.168.50.2
192.168.50.3
192.168.50.63

Subnet2 :
128 ip’s

192.168.50.64/26

32-25 = 7 = 2^7 = 2 2 2 2 2 2 2 = 128 ip’s

192.168.50.64

192.168.50.65

192.168.50.191

How many ip’s are left in this network :-

Total no of ip : 256 ip

Subnet1 : 64
Subnet2 : 128

Ips used : 192

Ip’s left : 64

Subnet 3 : 64 ip’s

192.168.50.192/26

32 - 26 = 2^6 = 2 2 2 2 2 2 = 64 ip’s

192.168.50.192
192.168.50.193
192.168.50.194

192.168.50.255

Scenario 2 :- 1024 ip’s with 4 subnets

Network : 192.168.0.0/22

32 - 22 = 10 = 2^10 = 2 2 2 2 2 2 2 2 2 2 = 1024 ip’s

Subnet1 :- 192.168.0.0/24
Start ip : 192.168.0.0
End ip : 192.168.0.255

Subnet2 : 192.168.1.0/24
Start ip : 192.168.1.0
End ip 192.168.1.255

Subnet 3 : 192.168.2.0/24
Start ip : 192.168.2.0
End ip : 192.168.2.255

Subnet4 : 192.168.3.0/24

Start ip : 192.168.3.0
End ip : 192.168.3.255
Public ip :-
- Public IP addresses enables Azure resources to communicate to Internet
Private Ip:-
- Private IP address enables azure resources to communicate inside your VNET
Create network with 4 subnets :-
· 10.0.0.0 - 10.255.255.255 (10/8 prefix)
· 172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
· 192.168.0.0 - 192.168.255.255 (192.168/16 prefix)

Loading comments...