Reserved Subnet Numbers
Connected: An Internet Encyclopedia
Reserved Subnet Numbers
Up:
Connected: An Internet Encyclopedia
Up:
Programmed Instruction Course
Up:
Subnetting and CIDR
Prev: A Simple Subnet
Next: Subnetting

Reserved Subnet Numbers
For largely historical reasons, two addresses are reserved on every
subnet. They are the smallest and largest addresses - those two
with all 0s and all 1s in the host field (the bits
to the right of the prefix boundary). No host can be assigned
either of these reserved addresses. For example, a subnet assigned
the prefix 10.10.1.32/27 would have 10.10.1.32
and 10.10.1.63 as its reserved addresses.
The all 0s address was used by older routing protocols to distinguish
a subnet route from a 32-bit host route. The all 1s address was
used to broadcast to all hosts on the subnet. Since newer routing
protocols are fully capable of handling routing prefixes of any length,
and anything that can be done with broadcast can be done better with
multicast, both of these reserved addresses belong in the arcana
of Internet history books. Unfortunately, some TCP/IP implementations
still use these reserved addresses, and many more implementations
maintain backwards compatibility, so it's best to err on the
safe side and not assign these two addresses.
A 32-bit prefix would be useless as a subnet prefix, since it only
matches a single address, and what use is a cable with only one connection?
A 31-bit prefix matches two address, but both of them would be reserved,
so 31-bit prefixes aren't used either. A 30-bit prefix,
matching four address, two of which can be assigned, is the longest
usable subnet prefix. Of course, a 30-bit subnet can only
have two hosts, so these prefixes are popular for use with
serial links. Likewise, a 29-bit prefix matches eight addresses,
of which six can be assigned. The most important prefix lengths,
along with the number of assignable addresses, are shown in the table.
| Prefix Length | Matching Addresses | Assignable Addresses
|
|---|
| /32 | 1 | -
| | /31 | 2 | -
| | /30 | 4 | 2
| | /29 | 8 | 6
| | /28 | 16 | 14
| | /27 | 32 | 30
| | /26 | 64 | 62
| | /25 | 128 | 126
| | /24 | 256 | 254
| | /23 | 512 | 510
| | /22 | 1024 | 1022
| | /21 | 2048 | 2046
| | /20 | 4096 | 4094
| | /19 | 8192 | 8190
| | /18 | 16384 | 16382
| | /17 | 32768 | 32766
| | /16 | 65536 | 65534
|
The table could be extended to /15 and beyond, but there is
very little use for a single subnet with even a /16 prefix -
it's simply too large. Putting 65,000 devices on a single Ethernet
(or other technology) just isn't practical.
Next: Subnetting
Connected: An Internet Encyclopedia
Reserved Subnet Numbers
|