Understanding CIDR
Understanding CIDR
CIDR stands for Classless Inter-Domain Routing. It is a method used to allocate IP addresses and
efficiently route traffic on networks, especially the internet. CIDR replaced the old class-based IP
addressing system (Class A, B, C) to allow more flexible and efficient use of IP addresses.
1. CIDR Notation
- The /24 is the prefix length - it tells how many bits of the IP address are network bits.
- In /24: 24 bits for network, 8 bits for hosts to 2^8 = 256 total IPs (254 usable)
CIDR lets you divide a network into subnets of varying sizes based on your needs.
Examples:
------------|---------------------|------------
CIDR allows grouping multiple networks into one route to reduce routing table size.
Example: