Skip to main content
  1. Network Articles/
  2. IPv4 Articles/

IPv4 Addresses

Table of Contents

Classification of IPv4 Addresses

An IPv4 address is represented as 32 bits and is classified into several types depending on its purpose and allocation range. Historically, addresses were classified by class (A through E), but today classless addressing based on CIDR (Classless Inter-Domain Routing) is the mainstream approach. In addition, special-purpose address ranges are defined, such as global/private, loopback, link-local, and shared addresses.

Classful Addressing (Class A–E)

Classful addressing is a historical classification; current routing uses the classless approach defined by CIDR.
ClassLeading BitsAddress RangeDefault Subnet MaskPurpose
Class A00.0.0.0 – 127.255.255.255255.0.0.0 (/8)Unicast addresses for large-scale networks.
Class B10128.0.0.0 – 191.255.255.255255.255.0.0 (/16)Unicast addresses for medium-scale networks.
Class C110192.0.0.0 – 223.255.255.255255.255.255.0 (/24)Unicast addresses for small-scale networks.
Class D1110224.0.0.0 – 239.255.255.255None (no concept of a mask)Reserved for multicast addresses.
Class E1111240.0.0.0 – 255.255.255.255None (no concept of a mask)Reserved for experimental future use.

Classes A through C are defined as unicast addresses for hosts, and the boundary between the network portion and host portion (the classful mask) is determined by the pattern of the leading bits. Class D is reserved exclusively for multicast, and Class E is reserved for experimental use; neither is assigned to ordinary hosts.

Global Addresses (Public Addresses)

These are addresses whose uniqueness is guaranteed across the internet and that can be routed directly on the internet. They are allocated by IANA (Internet Assigned Numbers Authority) through the Regional Internet Registries (RIRs) to ISPs and organizations, and correspond to the ranges remaining after excluding special-purpose blocks such as private addresses and loopback addresses described below.

Private Addresses

These are address ranges reserved for use within local networks that are not directly connected to the internet, such as inside an organization. These addresses are not routed on the internet and can be reused independently by multiple organizations.

Class EquivalentAddress RangeCIDR NotationNumber of Addresses
Class A10.0.0.0 – 10.255.255.25510.0.0.0/8About 16.77 million
Class B172.16.0.0 – 172.31.255.255172.16.0.0/12About 1.04 million
Class C192.168.0.0 – 192.168.255.255192.168.0.0/1665,536

Loopback Address

This is an address reserved to refer to the host itself. Packets addressed to the loopback address are processed internally by the host without passing through a network interface. In IPv4, the entire 127.0.0.0/8 block is reserved for loopback use, although 127.0.0.1 is typically used as the representative address.

ItemValue
Address Range127.0.0.0 – 127.255.255.255
CIDR Notation127.0.0.0/8
Representative Address127.0.0.1

Link-Local Address

This is an address valid only within the same link (the same segment), used when a host automatically assigns itself an address (APIPA: Automatic Private IP Addressing) because it was unable to obtain one from a DHCP server or similar. Packets addressed to or originating from a link-local address are not forwarded beyond a router.

ItemValue
Address Range169.254.0.0 – 169.254.255.255
CIDR Notation169.254.0.0/16

Shared Address Space

This is an address space reserved for use within an ISP’s own network in Carrier-Grade NAT (CGN / CGNAT) environments. It occupies a position similar to private addresses (RFC 1918), but was newly defined to avoid address collisions in cases where both the ISP’s equipment and customer-premises equipment use RFC 1918 addresses.

ItemValue
Address Range100.64.0.0 – 100.127.255.255
CIDR Notation100.64.0.0/10
Primary UseCarrier-Grade NAT (CGN) within an ISP’s network

Related RFCs

RFCTitleSummary
RFC 791Internet ProtocolThe original specification for IPv4. Defines the Class A–C address scheme.
RFC 1112Host Extensions for IP MulticastingDefines Class D as the multicast address range.
RFC 1918Address Allocation for Private InternetsDefines the private address ranges (10/8, 172.16/12, 192.168/16).
RFC 1122Requirements for Internet Hosts – Communication LayersSpecifies 127.0.0.0/8 as the loopback address range.
RFC 3927Dynamic Configuration of IPv4 Link-Local AddressesDefines 169.254.0.0/16 as the link-local address range.
RFC 6598IANA-Reserved IPv4 Prefix for Shared Address SpaceDefines 100.64.0.0/10 as the shared address space for Carrier-Grade NAT.
RFC 4632Classless Inter-Domain Routing (CIDR)Replaces classful addressing with the classless routing scheme (CIDR).
RFC 6890Special-Purpose IP Address RegistriesSpecifies the registry for special-purpose addresses such as loopback and link-local.