Previous Page: Internet Protocol  Next Page: Physical and IP Addresses

Assigning IP Network Addresses

IP network addresses should be assigned by one person at your company. We recommend that a network administrator assign IP network addresses. Therefore, to obtain a new address, see your network administrator or if you are a network administrator this section would help you assign IP network addresses.

For a node using the TCP/IP protocol suite to communicate with other nodes, including nodes on other private networks and on the Internet, an IP network address is required. Your IP network address could be determined in one of the following ways:

The addresses for all the nodes on the network must meet the following criteria:


Historic IP Address Classes

Each 4-byte IP address is divided into two parts:

IP addresses are differentiated into three classes, based on the two most significant bits of the first byte. This is done so that routers can efficiently extract the network portion of the address.

This division can occur at any one of three locations within the 32-bit address. These divisions correspond to the three IP address classes: Class A, Class B, and Class C. Regardless of address class, all nodes on any single network share the same network portion; each node has a unique host portion.

The following address classes are discussed in this section:


Class A Addresses

A Class A IP address consists of a 1-byte network portion followed by a 3-byte host portion, as shown in Figure 6. The highest-order bit of the network portion is always set to 0. Thus, within an internetwork, there can be a total of 126 Class A networks (1 through 126), with more than 16 million nodes in each (networks 0 and 127 are reserved).

The format of a Class A address is as follows:

0nnnnnnn.hhhhhhhh.hhhhhhhh.hhhhhhhh

where n represents the network address and h represents the host address.

Class A addresses contain 7 bits of network address and 24 bits of host address.

Figure 6
A Class A IP address
A Class A IP address, consisting of a 1-byte network portion followed by a 3-byte host portion


Class B Addresses

A Class B IP address consists of a 2-byte network portion followed by a 2-byte host portion, as shown in Figure 7. The two highest-order bits of the network portion are always set to 10. Thus, within a single internetwork there can be approximately 16,000 Class B networks (128.0 through 191.255), with more than 65,000 nodes in each.

The format of a Class B address is as follows:

10nnnnnn.nnnnnnnn.hhhhhhhh.hhhhhhhh

where n represents the network address and h represents the host address.

Class B addresses contain 14 bits of network address and 16 bits of host address.

Figure 7
A Class B IP address
A Class B IP address, consisting of a 2-byte network portion followed by a 2-byte host portion


Class C Addresses

A Class C IP address consists of a 3-byte network portion followed by a 1-byte host portion, as shown in Figure 8. The three highest-order bits of the network portion are always set to 110. Within a single internetwork, there can be approximately 2 million Class C networks (192.0.0 through 223.255.255), with up to 254 nodes in each.

The format of a Class C address is as follows:

110nnnnn.nnnnnnnn.nnnnnnnn.hhhhhhhh

where n represents the network address and h represents the host address.

Class C addresses contain 21 bits of network address and 8 bits of host address.

Figure 8
A Class C IP address
A Class C IP address, consisting of a 1-byte network portion and a 3-byte host portion


Identifying Network Classes

The first byte of an IP address identifies which of the three network classes that address belongs to. The ranges for that first byte are as follows:

An IP address beginning with 154 is a Class B address. The first two bytes of the address are represented by n for the network portion of the address, and the last two bytes are represented by h for the host portion. For example, an IP address of 154.1.0.3 means the IP network portion is 154.1.0.0 and the host portion on that network is #.#.0.3.

The network portion of an IP address should be the same for all nodes on that network. Each node connected to the network must have a unique IP host address assigned to it.

HINT:  The key to selecting a number for the host portion of the IP address is to ensure that the number selected is unique, that is, that no other host on the network has the same IP address.


Selecting an Appropriate Address Class

When selecting an IP address class, you must decide on both network numbers and host address portions. Because the first 1, 2, or 3 bits of the IP address determine how the entire address is to be interpreted and where the division between the network address and host address portion is to occur, you should know the consequences of your choice. When deciding on a network class, you should consider the number of IP nodes to be supported on your network and the number of networks you plan to configure.

For example, if you use Class C addresses (the first 3 bits of the IP address are 110 binary), then you are restricted to 254 nodes. However, the number of nodes available can be altered by using subnets. Before selecting an IP address class, see Creating Subnets.


Reserved IP Addresses

The IP addressing rules reserve the following types of IP addresses for special purposes:



  Previous Page: Internet Protocol  Next Page: Physical and IP Addresses