APIPA Address 169.254

Posted by

Home » DHCP Server » APIPA Address 169.254

Have you ever seen IP address 169.254.X.X appearing on your computer network card. Full form of APIPA is automatic private IP addressing. When a machine is configured to obtain IP address from a DHCP server and it can not find any DHCP server on the network it will obtain a self-assigned automatic address. This feature is available in IPV4. Below diagram explains the process of such IP assignment.

APIPA Address 169.254

If you don’t know about DHCP (dynamic host configuration protocol) we suggest you to have a look on “What is DHCP Server“.

When a machine obtains 169.254 IP address

  1. There is no DHCP server installed in the network. A newly connected machine does the usual broadcast to obtain IP address. When there is no response and request timeout. Automatic IP address ranging from 169.254.0.1 to 169.254.255.254 is assigned by default.
  2. DHCP server is there but not reachable because of network or security settings. We suggest to check port 67 and 68 for smooth DHCP communication from the DHCP client to DHCP server.
  3. DHCP server is available but all the IP address pool is fully used and there is no IP left behind for new device assignment.

Why and when to use APIPA

  1. In a small officer setup (that does not have DHCP server), all the workstations will obtain automatic IP address (of same series 169.254.X.X with a subnet 255.255.0.0. As a result you don’t need to assign IP addresses to each and every machine even in the absence of DHCP server.
  2. If of BYOD (bring your own devices like mobile phones) or IoT (internet of things) are heavily used in your infrastructure, all the devices become plug and play.
  3. If you have setup a disposable temporary network, using APIPA could be a very good choice without much administrative effort.
  4. It can be very helpful in virtualization test labs or educational environments.

Why and when not to use APIPA

  1. A issue with automatic 169.254 IP address is, its not routable. Means devices does not have a gateway. As a result any machine having such IP address can communicate within same subnet only.
  2. Another problem with this is a machine takes some time to generate this automatic address which causes an initial delay and IP assignment process is bit slow.
  3. Incase of WAN automatic IP address can not be used. This is available for LAN usage only.
  4. In a medium to large size office we always suggest to use DHCP server for proper IP assignment. You can check “Install and Configure DHCP Server“. A step by step guide.
  5. You can use static IP address if you have limited number of machines.

Steps involved in Automatic IP assignment

  1. A new machines is connected with wired or wireless network with a dynamic IP address setting. It initiates a broadcast request called DHCP discovery.
  2. There is no response from any DHCP server.
  3. When request timeout as fallback, the client devices generates a random IP address 169.254.X.X series along with subnet mask 255.255.0.0
  4. Machine uses ARP to detect any IP conflict with another device on the LAN. If conflict is detected, it generates another random IP from the same series and assigns to itself after rechecking the Ip conflict.
  5. Finally a lease time is set for this automatic IP address. Generally its 24 hours.

Common Issues and Fix

if you observe unexpected APIPA address in you network. Followings are the common points you need to check for troubleshooting,

  1. Check with the DHCP server administrator if the DHCP servers is up and running.
  2. DHCP scope has enough IP address in the pool for new deices.
  3. Check with network team if server is reachable.
  4. If you are using any DHCP relay agent in the network, check that its well configured.
  5. In most of the cisco devices “ip helper-address” acts as DHCP relay agent. Check with network team if its well configured.
  6. Check the network card configuration and TCP/IP settings
  7. Also remember to update or reinstall network card drivers.

Disable 169.254 series IP addressing

APIPA address is enabled by default, however its worthy to disabled. In some organization information security policy discourage the use of automatic private IP address. If that’s the case with you go to following registry key,

“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces”. Select the appropriate network interface card. Created a new DWORD value named “IPAutoconfigurationEnabled”. Assign value 0 to it. Restart your computer.

Frequently Asked Questions (FAQ)

Are APIPA addresses routable?

Answer is no. APIPA IP address do not have any network gateway. So it is not routable.

What is the IP address range of APIPA?

IP address ranges between 169.254.0.1 & 169.254.255.254. System can pick any random IP within this range.

What is the subnet mask of APIPA?

Subnet mask is always 255.255.0.0 for automatic private IP address.

How to fix if APIPA IP is obtained?

Check your device and network. Disconnect and reconnect it. Restart your (home) router. In corporate networks contact your IT support team.

Is APIPA only for windows?

Yes. It is for Microsoft Windows only. Other operating system like Linux, Unix and MAC does not support APIPA.

Is APIPA address actually usable?

APIPA address operates within same subnet only. There is not DNS, wins or default gateway. So in very simple network, yes it will be able to communicate with other devices. But practically without gateway and DNS its is very difficult to use corporate services. So it is not a wise approach to APIPA.

  • Install and Configure DHCP Server

    Install and Configure DHCP Server

    Install and configure DHCP server is a skill that every windows server administrator must have. DHCP (Dynamic host configuration protocol)…

  • What is DHCP Server?

    What is DHCP Server?

    Learn about DHCP server. Its advantages, disadvantages. DORA (discovery, offer, request, acknowledge) and IP renewal process.

Leave a Reply

Your email address will not be published. Required fields are marked *