APIPA (Automatic Private IP Addressing)
APIPA (Automatic Private IP Addressing)
Automatic Private IP Addressing (APIPA) is a feature in operating systems (such as Windows) that
enables computers to automatically self-configure an IP address and subnet mask when their DHCP
server isn’t reachable. The IP address range for APIPA is 169.254.0.1-169.254.255.254, with the
subnet mask of 255.255.0.0.
When a DHCP client boots up, it looks for a DHCP server in order to obtain network parameters. If
the client can’t communicate with the DHCP server, it uses APIPA to configure itself with an IP
address from the APIPA range. This way, the host will still be able to communicate with other hosts
on the local network segment that are also configured for APIPA.
The host on the left is configured as DHCP client. The host boots up and looks for DHCP servers on
the network. However, the DHCP server is down and can’t respond to the host. After some time (from
a couple of seconds to a couple of minutes, depending on the operating system) the client auto-
configures itself with an address from the APIPA range (e.g. 169.254.154.22).
NOTE
If your host is using an IP address from the APIPA range, there is usually a problem on the network.
Check the network connectivity of your host and the status of the DHCP server.
The APIPA service also checks regularly for the presence of a DHCP server (every three minutes). If
it detects a DHCP server on the network, the DHCP server replaces the APIPA networking addresses
with dynamically assigned addresses.
What is APIPA (Automatic Private IP Addressing)?
Last Updated: 22-05-2020
History
Initially, the Internet Engineering Task Force (IETF) has reserved the IPv4 address block 169.254.0.0/16
(169.254.0.0 – 169.254.255.255) for link-local addressing. Due to the simultaneous use of IPv4 addresses of
different scopes, traffic overload becomes high. The link-local addresses are allocated to interface i.e., stateless in
nature such that communication will be established when not getting a response from DHCP Server. After that
Microsoft refers to this address autoconfiguration method as “Automatic Private IP Addressing (APIPA)”.
Automatic Configuration and Service Checks
It starts with when the user(client) is unable to find the data/information, then uses APIPA to configure the system
with an IP address automatically(ipconfig). The APIPA provides the configuration to check for the presence of a
DHCP server(in every five minutes, stated by Microsoft). If APIPA detects a DHCP server on the network
configuration area, it stops, and let run the DHCP server that replaces APIPA with dynamically allocated
addresses.
Note: To Know the given IP address is provided by which addressing, just run the following command:
ipconfig/all
Characteristics
Communication can be established properly if not getting response from DHCP Server.
APIPA regulates the service, by which always checking response and status of the main DHCP server in a
specific period of time.
Advantages
It can be used as a backup of DHCP because when DHCP stops working then APIPA has the ability to assign IP
to the networking hosts.
It stops unwanted broadcasting.
It uses ARP(Address Resolution Protocol) to confirm the address isn’t currently in use.
Disadvantages
Limitations