1. Technology
IP Tutorial
Subnet Masks and Subnetting

Subnetting in Practice
Subnetting works by applying the concept of extended network addresses to individual computer (and other network device) addresses.

An extended network address includes both a network address and additional bits that represent the subnet number... (see below)
More of this Feature
IP Address Notation
IP Address Classes, Broadcast and Multicast
IP Loopback and Private Addresses, IPv6 Anycast
DNS - Domain Name System
IP Network Numbering
IP Subnetting
CIDR - Classless Internet Domain Routing

Related Resources
IP Practice Test
TCP/IP Basics
IP Protocol

... . Together, these two data elements support a two-level addressing scheme recognized by standard implementations of IP. The network address and subnet number, when combined with the host address, therefore support a three-level scheme.

Consider the following real-world example. A small business plans to use the 192.168.1.0 network for its internal (intranet) hosts. The human resources department wants their computers to be on a restricted part of this network because they store payroll information and other sensitive employee data. But because this is a Class C network, the default subnet mask of 255.255.255.0 allows all computers on the network to be peers (to send messages directly to each other) by default.

The first four bits of 192.168.1.0 -

1100
place this network in the Class C range and also fix the length of the network address at 24 bits. To subnet this network, more than 24 bits must be set to '1' on the left side of the subnet mask. For instance, the 25-bit mask 255.255.255.128 creates a two-subnet network as follows.
Network address
(24 bits)
Subnet number
(1 bit)
Extended network Host address range
11000000 10101000 00000001 0 192.168.1.0 192.168.1.1 - 192.168.1.127
11000000 10101000 00000001 1 192.168.1.128 192.168.1.129 - 192.168.1.255

For every additional bit set to '1' in the mask, another bit becomes available in the subnet number to index additional subnets. A two-bit subnet number can support up to four subnets, a three-bit number supports up to eight subnets, and so on.

Private Networks and Subnets
As mentioned earlier in this tutorial, the governing bodies that administer Internet Protocol have reserved certain networks for internal uses. In general, intranets utilizing these networks gain more control over managing their IP configuration and Internet access. The default subnet masks associated with these private networks are listed below.
Network address range Default mask
10.0.0.0 - 10.255.255.255 255.0.0.0
172.16.0.0 - 172.31.255.255 255.240.0.0
192.168.0.0 - 192.168.255.255 255.255.0.0

Consult RFC 1918 for more details about these special networks.

Subnetting Review

Subnetting allows network administrators some flexibility in defining relationships among network hosts. Hosts on different subnets can only "talk" to each other through specialized network gateway devices like routers. The ability to filter traffic between subnets can make more bandwidth available to applications and can limit access in desirable ways.

Next page > Introduction to CIDR > Page 1, 2, 3, 4, 5, 6, 7, 8, 9


» Today's Community Discussions
» More Feature Articles

Subscribe to the Newsletter
Name
Email

You can opt-out at any time. Please refer to our privacy policy for contact information.

Discuss in my forum

©2014 About.com. All rights reserved.