Previous Page Next Page

IP Address Overview

The IP address is the address assigned to a particular network and the host within the network.

There are two basic types of IP addresses:

Note

For more information on IPv6, refer to http://www.cisco.com/go/ipv6.


Note

This chapter focuses only on the IPv4 addresses, which are referred to as IP addresses.


Classes of IP Addresses

The Internet Assigned Numbers Authority (IANA) grouped IP addresses into the following classes. Each class has its own requirements and purpose:

Understanding IP Address Classes

Note

N denotes the network ID bits.

H denotes the host ID bits.

M denotes the multicast address bits.

R denotes the reserved bits.


The class of an IP address can be established from the first four bits of the first byte of the IP address. The value of the first octet in the IP address resolves to the class within the range of which the IP address falls. Table 2-1 summarizes the possible range of IP addresses for the different IP address classes that were previously discussed.

Table 2-1. Range of IP Addresses per Class
ClassPossible Range of Addresses
A0.0.0.0 through 127.255.255.255
B128.0.0.0 through 191.255.255.255
C192.0.0.0 through 223.255.255.255
D224.0.0.0 through 239.255.255.255
E240.0.0.0 through 247.255.255.255


Table 2-2 shows the maximum number of networks and hosts that can be derived within each class.

Table 2-2. Networks and Hosts per Class
ClassMax Number of NetworksMax Number of Hosts per Network
A126 (2^7–2)16777214 (2^24–2)
B16384 (2^14)65534 (2^16–2)
C2097152 (2^21)254 (2^8–2)
D
E


Note

Class A—The maximum number of networks is reduced by 2 to account for the reserved network IP address of 0.xxx.xxx.xxx and 127.xxx.xxx.xxx.

The maximum number of hosts per network is also reduced by 2 to account for the reserved host IP address in which all the host ID address bits are either 1 or 0—that is, the network address and the broadcast address.


Private IP Address (RFC 1918)

Under the present IPv4 addressing scheme, the IP address space is divided into two types: public IP address space and private IP address space. The public IP address space is routable via the Internet and is managed by one of the Regional Internet Registries (RIR). A small part of the address range, shown in Table 2-1, has been set aside and designated as a "reserved" or "private" IP address range, as documented in RFC 1918. These addresses are reserved for use by private networks and are not routed on the Internet. These private IP address ranges must be filtered on border routers so that no traffic with a private address as source is allowed from the Internet. Table 2-3 includes the details of the private address ranges.

Table 2-3. RFC 1918 Address Ranges Reserved for Private Use
ClassRange of Addresses
A10.0.0.0 through 10.255.255.255
B172.16.0.0 through 172.32.255.255
C192.168.0.0 through 192.168.255.255


In addition to the previously described RFC 1918-based private addresses range, the IANA has blocked a special Class B private address range and reserved it for automatic private IP addressing (APIPA). For example, when using Dynamic Host Configuration Protocol (DHCP), if the DHCP server cannot be found for an assigned IP address, the operating system will automatically assign addresses from this special block to enable communication.

Note

The RIRs are nonprofit organizations charged to manage the role of management for allocating Internet number resources distribution, such as globally unique IP addresses (IPv4 and IPv6) and autonomous system numbers (within their assigned regions). For more information, visit the RIR of your region:

APNIChttp://www.apnic.net
ARINhttp://www.arin.net
LACNIChttp://www.lacnic.net
RIPE NCChttp://www.ripe.net
AfriNIChttp://www.afrinic.net



Previous Page Next Page