![]() |
Address Spaces - Help |
![]() |
|
| For General Help, contact: HelpSU | |
| Help for this subject |
Other Help Topics: Main Help Page Network Help |
| Overview |
OverviewNetDB supports classless IP addressing, also known as variable length subnet masking. These sets of addresses are called "address spaces". One or many address spaces may be grouped into a Network record which corresponds with an actual network. For example, the Ivory Tower building has one network which contains 2 address spaces -- 171.64.60.0/24 (the regular address space) and 172.24.60.0/24 (private address space). Address Space Notation
|
Addresses |
Subnet Mask |
Network Prefix |
1024 |
255.255.252.0 |
/22 |
512 |
255.255.254.0 |
/23 |
256 |
255.255.255.0 |
/24 |
128 |
255.255.255.128 |
/25 |
64 |
255.255.255.192 |
/26 |
32 |
255.255.255.224 |
/27 |
16 |
255.255.255.240 |
/28 |
8 |
255.255.255.248 |
/29 |
Given a subnet mask, here's how to figure out address space size:
Given a network prefix, here's how to figure out address space size:
In binary, 255.255.255.0 = 11111111.11111111.11111111.00000000.
Note that there are 24 ones followed by 8 zeros. The transition between
1's and 0's marks the division between the network ID and the host ID.
Therefore, in IP address 36.53.0.2, 36.53.0 is the network ID and 2 is
the host ID. The first address in this address space is 36.53.0.0 (because
it's the network number). The following addresses are:
36.53.0.1
36.53.0.2
36.53.0.3
..
36.53.0.254
36.53.0.255 (as last address, reserved for broadcast address)
Note that the number of addresses in this address space
is 256 or 2 to the 8th power. The first address (network address)
and the last address (broadcast address) are reserved for special purposes
which leaves 256-2 = 254 addresses for actual computers.
Using the formula above,
Using the formula above,
© 2000-2019 Stanford University. All Rights Reserved. |