Documente Academic
Documente Profesional
Documente Cultură
IP Addressing-
Classless Addressing-
CIDR Block-
https://www.gatevidyalay.com/classless-addressing-cidr/ 1/12
10/29/2019 Classless Addressing | CIDR in Networking | Gate Vidyalay
Rule-01:
Rule-02:
Size of any CIDR block will always be in the form 21, 22, 23, 24, 25 and so on.
Rule-03:
First IP Address of the block must be divisible by the size of the block.
REMEMBER
https://www.gatevidyalay.com/classless-addressing-cidr/ 2/12
10/29/2019 Classless Addressing | CIDR in Networking | Gate Vidyalay
So, any binary pattern is divisible by 2n, if and only if its least significant n bits are 0.
Examples-
01100100.00000001.00000010.01000000
(represented as 100.1.2.64)
It is not divisible by 27 since its least significant 7 bits are not zero.
CIDR Notation-
a.b.c.d / n
Example-
182.0.1.2 / 28
It suggests-
https://www.gatevidyalay.com/classless-addressing-cidr/ 3/12
10/29/2019 Classless Addressing | CIDR in Networking | Gate Vidyalay
Problem-01:
Given the CIDR representation 20.10.30.35 / 27. Find the range of IP Addresses in the CIDR block.
Solution-
It suggests-
00010100.00001010.00011110.00100011 / 27
So,
Problem-02:
Given the CIDR representation 100.1.2.35 / 20. Find the range of IP Addresses in the CIDR block.
https://www.gatevidyalay.com/classless-addressing-cidr/ 4/12
10/29/2019 Classless Addressing | CIDR in Networking | Gate Vidyalay
Solution-
It suggests-
01100100.00000001.00000010.00100011 / 20
So,
Problem-03:
1. Is it a CIDR block?
2. If yes, give the CIDR representation.
Solution-
Rule-01:
https://www.gatevidyalay.com/classless-addressing-cidr/ 5/12
10/29/2019 Classless Addressing | CIDR in Networking | Gate Vidyalay
Rule-02:
Rule-03:
100.1.2.32 = 100.1.2.00100000 is divisible by 24 since its 4 least significant bits are zero.
So, Rule-03 is satisfied.
Since all the rules are satisfied, therefore given block is a CIDR block.
CIDR Representation-
We have-
To have 24 total number of IP Addresses, total 4 bits are required in the Host ID part.
So, Number of bits present in the Network ID part = 32 – 4 = 28.
Thus,
https://www.gatevidyalay.com/classless-addressing-cidr/ 6/12
10/29/2019 Classless Addressing | CIDR in Networking | Gate Vidyalay
NOTE-
Problem-04:
1. Is it a CIDR block?
2. If yes, give the CIDR representation.
Solution-
Rule-01:
Rule-02:
https://www.gatevidyalay.com/classless-addressing-cidr/ 7/12
10/29/2019 Classless Addressing | CIDR in Networking | Gate Vidyalay
Rule-03:
150.10.20.64 = 150.10.20.01000000 is divisible by 26 since its 6 least significant bits are zero.
So, Rule-03 is satisfied.
Since all the rules are satisfied, therefore given block is a CIDR block.
CIDR Representation-
We have-
To have 26 total number of IP Addresses, 6 bits are required in the Host ID part.
So, Number of bits in the Network ID part = 32 – 6 = 26.
Thus,
Problem-05:
128.56.24.0/24
128.56.25.0/24
https://www.gatevidyalay.com/classless-addressing-cidr/ 8/12
10/29/2019 Classless Addressing | CIDR in Networking | Gate Vidyalay
128.56.26.0/24
128.56.27.0/24
Solution-
Rule-01:
Rule-02:
Rule-03:
128.56.24.0 = 128.56.00011000.00000000 is divisible by 210 since its 10 least significant bits are zero.
So, Rule-03 is satisfied.
https://www.gatevidyalay.com/classless-addressing-cidr/ 9/12
10/29/2019 Classless Addressing | CIDR in Networking | Gate Vidyalay
CIDR Representation-
We have-
To have 210 total number of IP Addresses, 10 bits are required in the Host ID part.
So, Number of bits in the Network ID part = 32 – 10 = 22.
Thus,
Problem-06:
200.96.86.0/24
200.96.87.0/24
200.96.88.0/24
200.96.89.0/24
Solution-
Rule-01:
https://www.gatevidyalay.com/classless-addressing-cidr/ 10/12
10/29/2019 Classless Addressing | CIDR in Networking | Gate Vidyalay
Rule-02:
Rule-03:
200.96.86.0 = 200.96.01010110.00000000 is not divisible by 210 since its 10 least significant bits are
not zero.
So, Rule-03 is unsatisfied.
Since all the 3 rules are not satisfied, so they can not be aggregated.
Summary
https://www.gatevidyalay.com/classless-addressing-cidr/ 11/12
10/29/2019 Classless Addressing | CIDR in Networking | Gate Vidyalay
Publisher Logo
Liked this article? Share it with your friends and classmates now-
https://www.gatevidyalay.com/classless-addressing-cidr/ 12/12