Konubinix' opinionated web of thoughts

Classless Inter-Domain Routing

Fleeting

Classless inter-domain routing (CIDR) is a method for allocating IP addresses and IP routing

https://www.educba.com/what-is-cidr/

It is defined in RFC (Request for comments) 1518 and RFC 4632

https://www.educba.com/what-is-cidr/

It is an address block allocation

https://www.educba.com/what-is-cidr/

CIDR block This block contains IP addresses. This block consists of 3 basic rules.

The 3 basic rules mentioned below:

Rule 1: In the CIDR block, the IP addresses which are allocated to the hosts should be continuous.

Rule 2: The size of the block should be of power 2 and should be equal to the total number of IP addresses.

Rule 3: The size of the block must be divisible by the first IP address of the block.

https://www.educba.com/what-is-cidr/

The general way of representation of the CIDR IP address is

a.b.c.d / n

https://www.educba.com/what-is-cidr/

Example #1

The CIDR representation is 21.19.35.40/24. Find the IP addresses of the CIDR block?

24 represents the number of bits used for the identification of the network.

The 5 bits are used for the identification of hosts.

The CIDR address is 21.19.35.40/24.

The first IP address is 21.19.35.0

The last IP address is 21.19.35.255

The total cost is 256.

Netmask is 255.255.255.0.

https://www.educba.com/what-is-cidr/

Notes pointant ici