mail us  |  mail this page

contact us
training  | 
tech stuff  | 

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. 10.0.0.0 subnet mask 255.0.0.0
CLASS B address e.g. 172.16.0.0 subnet mask 255.255.0.0
CLASS C address e.g. 192.168.0.0 subnet mask 255.255.255.0

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 192.168.23.0. This could be written as:

192.168.23.64 netmask 255.255.255.224

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:

192.168.23.64/27 (27 is the number of contiguous bits in the subnet mask 255.255.255.224)

Remember that the first address in the subnet is reserved as the network address and the last for broadcasting - you always lose two addresses in any subnet.

The following table shows the relationship between the 'slash' form and the subnet mask - starting with a base address of 0:

192.168.23.0/24 (subnet mask 255.255.255.0)
192.168.23.0/24 (256 IPs - subnet mask 255.255.255.0)
192.168.23.0/25 (128 IPs - subnet mask 255.255.255.128)
192.168.23.128/26 (64 IPs - subnet mask 255.255.255.192)
192.168.23.192/27 (32 IPs - subnet mask 255.255.255.224)
192.168.23.224/28 (16 IPs - subnet mask 255.255.255.240)
192.168.23.240/29 (8 IPs - subnet mask 255.255.255.248)
192.168.23.248/30 (4 IPs - subnet mask 255.255.255.252)


Problems, comments, suggestions, corrections (including broken links) or something to add? Please take the time from a busy life to 'mail us' (at top of screen), the webmaster (below) or info-support at zytrax. You will have a warm inner glow for the rest of the day.

Pro DNS and BIND by Ron Aitchison

Contents

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

Creative Commons License
This work is licensed under a Creative Commons License.

If you are happy it's OK - but your browser is giving a less than optimal experience on our site. You could, at no charge, upgrade to a W3C STANDARDS COMPLIANT browser such as Firefox

Search

web zytrax.com

Share

share page via facebook tweet this page

Page

email us Send to a friend feature print this page Decrease font size Increase font size Display full width page

Resources

Systems

FreeBSD
NetBSD
OpenBSD
DragonFlyBSD
Linux.org
Debian Linux

Software

LibreOffice
OpenOffice
Mozilla
GitHub
GNU-Free SW Foundation
get-dns

Organizations

Open Source Initiative
Creative Commons

Misc.

Ibiblio - Library
Open Book Project
Open Directory
Wikipedia

Site

CSS Technology SPF Record Conformant Domain
Copyright © 1994 - 2017 ZyTrax, Inc.
All rights reserved. Legal and Privacy
site by zytrax
Hosted by super.net.sg
web-master at zytrax
Page modified: October 21 2015.