Classless InterDomain Routing (CIDR)

Once upon a time when the IP addressing scheme was invented, the people who developed this thought it would be enough to have 3 different classes as we have seen so far, class A,B and C networks. There were only three subnet masks:

  • Class A: 255.0.0.0 (16.777.216 addresses)
  • Class B: 255.255.0.0 (65.536 addresses)
  • Class C: 255.255.255.0 (256 addresses)

These networks are also known as classful networks.

When the internet started growing rapidly in the beginning of the 90’s this caused some problems.  Large companies received entire class A networks with millions of addresses. Here’s a list on wikipedia that gives you an idea what kind of companies got these class A networks.

Smaller companies could get a class B network with 65.536 addresses or class C networks with 256 addresses. Many addresses were wasted so something had to be done.

The solution to this problem is classless interdomain routing, in other words we stop working with the classful networks and start working with classless networks.

Classless networks means we don’t use the class A,B or C networks anymore but are free to use any subnet mask we like. Also instead of writing down the subnet mask like 255.255.255.0 we often use a “bit” notation like /24. This represents the number of bits that are used for the subnet mask.

For example:

  • 192.168.1.0 with subnet mask 255.255.255.0 is the same thing as 192.168.1.0 /24.
  • 172.16.0.0 with subnet mask 255.255.0.0 is the same thing as 172.16.0.0 /16.
  • 10.0.0.0 with subnet mask 255.0.0.0 is the same thing as 10.0.0.0 /8.

Here’s a little overview with subnet masks and the CIDR notation:

We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now!

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You’ve Ever Spent on Your Cisco Career!
  • Full Access to our 799 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)
560 Sign Ups in the last 30 days
satisfaction-guaranteed

  • 100% Satisfaction Guaranteed!
  • You may cancel your monthly membership at any time.
  • No Questions Asked!

Forum Replies

  1. Rene,

    Hello, the command “ip classless” is something I have always seen on Cisco routers but never understood what it does. Can you explain this command?

    Thanks,

    Chris

  2. Hi Rene,

    Question- does the subnet mask dictate the class of the network or the value of the octets? It seems here in this example that the subnet mask would dictate whether it was class A, B or C. However I was recently advised that it is not the subnet mask for example it has been recently stated to me:

    The class of a network is not determined by its subnet mask. The default subnet mask is determined by the class of a network. The class of a network is determined by the first octet of the IP.

    0-127 is considered “class A”.
    128-191 is considered “class B”.
    192

    ... Continue reading in our forum

  3. James,
    Only the first four bits (3 really, since E class isn’t used) in the first octet determine class (as shown in the table below). You are correct in your example about 171.15.85.0/24.

    Keep in mind, however, that “class” doesn’t really mean anything anymore. This is an outdated term that nobody really uses now. Even Cisco has stopped bothering to test on it!

    Binary (first 4 bits) Class
    0000                   A
    1000                   B
    1100                   C
    1110                   D
    1111                   E
    

  4. Hi Rene,

    What do you mean by CIDR & VLSM ? The both are same or what is the difference between them.

    Br
    Zaman

6 more replies! Ask a question or join the discussion by visiting our Community Forum