IP Addresses | 87 |
Dotted Decimal Notation
The actual IP address is a
Figure 27 Dotted Decimal Notation for IP Addresses
10011110.01100101.00001010.00100000 | = Binary notation |
158.101.10.32 = Decimal notation
The decimal value of an octet whose bits are all 1s is 255.
Network Portion
The location of the boundary between the network part and the host part depends on the class that the central agency assigns to your network. The three primary classes of IP addresses are as follows:
■Class A address — Uses 8 bits for the network part and 24 bits for the host part. Although only a few Class A networks can be created, each can contain a very large number of hosts.
■Class B address — Uses 16 bits for the network part and 16 bits for the host part.
■Class C address — Uses 24 bits for the network part and 8 bits for the host part. Each Class C network can contain only 254 hosts, but many such networks can be created.
The
Table 8 How Address Class Corresponds to the Address Number
|
| Address Number |
Address Class | (Decimal) | |
|
|
|
A | 0nnnnnnn | |
B | 10nnnnnn | |
C | 11nnnnnn | |
|
|
|