The Internet community originally defined five address classes to accommodate networks of varying sizes. The class of address defines which bits are used for the network ID and which bits are used for the host ID. It also defines the possible number of networks and the number of hosts per network.

Class A

Class A addresses are assigned to networks with a very large number of hosts. The high-order bit in a class A address is always set to zero. The next seven bits (completing the first octet) complete the network ID. The remaining 24 bits (the last three octets) represent the host ID. This allows for 126 networks and 16,777,214 hosts per network.

Class B

Class B addresses are assigned to medium-sized to large-sized networks. The two high-order bits in a class B address are always set to binary 1 0. The next 14 bits (completing the first two octets) complete the network ID. The remaining 16 bits (last two octets) represent the host ID. This allows for 16,384 networks and 65,534 hosts per network.

Class C

Class C addresses are used for small networks. The three high-order bits in a class C address are always set to binary 1 1 0. The next 21 bits (completing the first three octets) complete the network ID. The remaining 8 bits (last octet) represent the host ID. This allows for 2,097,152 networks and 254 hosts per network.

Class D

Class D addresses are reserved for IP multicast addresses. The four high-order bits in a class D address are always set to binary 1 1 1 0. The remaining bits are for the address that interested hosts recognize.

Class E

Class E is an experimental address that is reserved for future use. The high-order bits in a class E address are set to 1111.

Class

Value for w 1

Network ID Portion

Host ID Portion

Available Networks

Hosts per Network

A

1–126

w

x.y.z

126

16,777,214

B

128–191

w.x

y.z

16,384

65,534

C

192–223

w.x.y

z

2,097,152

254

Network ID Guidelines

The network ID identifies the TCP/IP hosts that are located on the same physical network. All hosts on the same physical network must be assigned the same network ID to communicate with each other.

Follow these guidelines when assigning a network ID:

  • The network ID must be unique to the IP internetwork. If you plan on having a direct routed connection to the public Internet, the network ID must be unique to the Internet. If you do not plan on connecting to the public Internet, the local network ID must be unique to your private internetwork.
  • The network ID cannot begin with the number 127. The number 127 in a class A address is reserved for internal loopback functions.
  • All bits within the network ID cannot be set to 1. All 1's in the network ID are reserved for use as an IP broadcast address.
  • All bits within the network ID cannot be set to 0. All 0's in the network ID are used to denote a specific host on the local network and are not routed.

Address Class

First Network ID

Last Network ID

Class A

1.0.0.0

126.0.0.0

Class B

128.0.0.0

191.255.0.0

Class C

192.0.0.0

223.255.255.0

Host ID Guidelines

The host ID identifies a TCP/IP host within a network. The combination of IP network ID and IP host ID is an IP address.

Follow these guidelines when assigning a host ID:

  • The host ID must be unique to the network ID.
  • All bits within the host ID cannot be set to 1 because this host ID is reserved as a broadcast address to send a packet to all hosts on a network.
  • All bits in the host ID cannot be set to 0 because this host ID is reserved to denote the IP network ID.

Address Class

First Host ID

Last Host ID

Class A

w .0.0.1

w .255.255.254

Class B

w.x .0.1

w.x .255.254

Class C

w.x.y. 1

w.x.y .254

ADVERTISEMENT
IP Flager for Chrome extension

IP Flager for Chrome extension

This extension shows a country flag for the current website. It also shows city, region and country name in the flag icon hint. Learn more...

IP TOOLS
ADVERTISEMENT
IP ARTICLES