CIDR (Classless Inter-Domain Routing) was introduced in 1993 by the IETF.
It changed how IPv4 addresses are allocated, to reduce address waste.Before CIDR, IPv4 addressing relied on fixed network classes.
The class of a network fixed its default prefix:Class A → /8
Class B → /16
Class C → /24
Subnetting, introduced in 1985, let you divide a classful network into smaller subnets.
However, a classful network could use only one subnet mask for all its subnets.
Outside the company, routers still advertised the network with its class prefix.
Figure 1 – IPv4 evolution: classes, subnetting, CIDR.
CIDR removed fixed network classes from IPv4 entirely.
From 1993, a network can use any prefix length, such as /20, /21, /27 or /30.
The prefix no longer depends on the first octet of the address.Answer the question below
What does the 'C' in CIDR stand for?
The prefix length is the number that appears after the slash in an IPv4 address, such as /24 in 198.51.100.0/24.
It tells you how many bits are used for the network portion of the address.The remaining bits form the host portion, which identifies devices inside the network.
Examples:
/24→ 24 network bits, 8 host bits/25→ 25 network bits, 7 host bits/30→ 30 network bits, 2 host bits
The prefix length also maps directly to the subnet mask:
/24= 255.255.255.0/25= 255.255.255.128/26= 255.255.255.192
CIDR uses this notation because it lets you create networks of any size, instead of being limited by class-based boundaries.
Answer the question below
The prefix length defines how many bits are used for the _______ portion.
Every IPv4 address is divided into two logical parts:
Network portion → identifies the network
Host portion → identifies devices inside that network
The prefix length defines exactly where this separation occurs.
For example, in 198.51.100.0/24:
The first 24 bits are the network portion
The remaining 8 bits are the host portion
You can see this division clearly in the diagram below.

Figure 2 – IPv4 198.51.100.0/24 with subnet mask, showing network and host bits.
All devices in this network share the same first 24 bits.
Only the host bits change to create unique IP addresses.This separation is essential because CIDR works by adjusting how many bits belong to the network and how many remain for hosts.
Answer the question below
In a /24 network, how many bits are used for hosts?
Viewing Network and Host Portions in Cisco IOS
Configure an interface with a /24 subnet:
Router# conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface g0/0 Router(config-if)# ip address 198.51.100.1 255.255.255.0 Router(config-if)# no shutdown Router(config-if)# end %SYS-5-CONFIG_I: Configured from console by consoleNow verify the configuration:
Router# show ip interface g0/0 GigabitEthernet0/0 is up, line protocol is up Internet address is 198.51.100.1/24You entered 255.255.255.0, and IOS displays CIDR notation (/24).
Answer the question below
Cisco IOS displays the network using which notation? (acronym)
IOS turned 255.255.255.0 into /24: what number would it print after the slash for 255.255.255.240?
A mask is the prefix length written as 1 bits from the left, 8 per octet: what dotted-decimal mask matches /22?
CIDR gives you full control over the size of your networks by letting you adjust the prefix length.
When you increase the prefix length (for example from /24 to /25 or /26):More bits are used for the network portion
Fewer bits remain for hosts
You create more subnets
Each subnet supports fewer devices
This flexibility is what makes CIDR far more efficient than the old classful system.
CIDR also lets you calculate exactly how many usable hosts each subnet can provide.
Use the formula below:
Figure 3 – Formula for usable IP addresses.
Where:
n = number of host bits = (32 − prefix length)
−2 removes two reserved addresses: the first one, the network address, names the subnet, and the last one, the broadcast address, reaches every device of the subnet
This calculation helps you choose a subnet size that fits your requirements without wasting address space.
Answer the question below
If a /24 network becomes a /25, how many bits are used for the network portion?