Classless Routing Overview

This is a simplified description of classless routing principles. For more information.

Classless routing, defined in RFC 1817, allows for the routing of non-octet boundary subnets and greatly increases the usage of the existing IPv4 address space. Prior to Classless routing only Class boundary routing was supported e.g.:

CLASS A address e.g. subnet mask
CLASS B address e.g. subnet mask
CLASS C address e.g. subnet mask

Class C address ranges are used for the following examples but the principles apply to all address ranges.

Classless routing, in this context, describes the process of splitting and routing the Class C space into multiple subnets. Assume we want to allocate and route a 32 address subnet, starting at address 64, in the Class C address This could be written as: netmask

To simplify the process of writing this, a short-form (sometimes called the 'slash' form officially an IP Prefix) '/x' is used, where x defines the number of contiguous bits in the subnet mask. So the above could be written as: (27 bits in the subnet mask

Remember that the first address in the subnet is reserved for multi-casting and the last for broadcasting - you always lose two addresses in a subnet.

The following table shows the relationship between the 'slash' form and the subnet mask - starting with a base address of 0: (subnet mask (256 IPs - subnet mask (128 IPs - subnet mask (64 IPs - subnet mask (32 IPs - subnet mask (16 IPs - subnet mask (8 IPs - subnet mask (4 IPs - subnet mask

Pro DNS and BIND by Ron Aitchison


tech info
guides home
dns articles
1 objectives
big picture
2 concepts
3 reverse map
4 dns types
5 install bind
6 samples
7 named.conf
8 dns records
9 howtos
10 tools
11 trouble
12 bind api's
13 dns security
bits & bytes
15 messages
notes & tips
registration FAQ
dns resources
dns rfc's
change log

printer friendly

Print Page

SPF Record Conformant Domain Logo

Copyright © 1994 - 2009 ZyTrax, Inc.
All rights reserved. Legal and Privacy
site by zytrax
Hosted by
web-master at zytrax
Page modified: June 21 2007.