Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

CIDR (Classless Inter-Domain Routing)

Wondering what /20 means at the end of an IP address? The CIDR mask indicates the number of potential IP addresses or hosts in a subnet. It allows for a more flexible and efficient way to divide blocks of addresses than the old IP Class system (Class A, B, C, etc.). You aren't likely to ever interact with this DNS entry, but it's good to understand why clicking on 130.64.80.0/20 will take much lonnger to open than 130.64.215.0/28.


Explanation

Let's use the most common example of a subnet mask, 255.255.255.0, as our starting point. Translated to it's binary equivalent, it's 11111111.11111111.11111111.00000000. When using this as a subnet mask, we're saying that every space with a "1" is the network mask (in other words, ignore these) and what's left of the IP address defines our hosts. That leaves us with a "potential" of 255 host IP addresses on this subnet.

  • We say "potential, but in fact, there can only be 254 hosts in this net because 0 and 255 are not used in IP addresses.
  • Subnet masks never have spaces. 11111111.11111111.11110111.00000000 (255.255.199.0) is not a valid mask.

The 130.64.206.0 subnet has 255 potential hosts. Expressed in CIDR supernetting, it's /24. Said another way, the first 24 bits of the address define the network portion of the address and what's left defines the host portion.

Still a little confused? Take a look at the chart below. You'll notice that the CIDR number is the same as the number of 1's in the mask.

Old-style class

Total IP/Hosts

Subnet mask

Binary Expression

CIDR Notation

Class A

16,777,214

255.0.0.0

11111111.00000000.00000000.00000000

/8

Class B

65,536

255.255.0.0

11111111.11111111.00000000.00000000

/16

Class C

256

255.255.255.0

11111111.11111111.11111111.00000000

/24

1/2 Class C

128

255.255.255.128

11111111.11111111.11111111.*1*0000000

/25

1/4 Class C

64

255.255.255.192

11111111.11111111.11111111.*11*000000

/26

Binary Cheat Sheet

Binary

 

Decimal

11111111

equals

255

11111110

equals

254

11111100

equals

248

11111000

equals

224

11110000

equals

192

11100000

equals

224

11000000

equals

192

10000000

equals

128

01000000

equals

64

00100000

equals

32

00010000

equals

16

00001000

equals

8

00000111

equals

7

00000110

equals

6

00000101

equals

5

00000100

equals

4

00000011

equals

3

00000010

equals

2

00000001

equals

1

Unknown macro: {html}

<div class="sidebar">

Unknown macro: {pagetree2}
Unknown macro: {html}

</div>

  • No labels