Computer/Embedded Technology


Automatic private IP addressing (APIPA) - tech update

6 April 2005 Computer/Embedded Technology

Ever notice the strange 169.254.x.x IP address your browser displays when you cannot connect to the Internet.

Beginning with Windows 98 (but not NT), APIPA became available for small non-routed LANs (under 25 clients) - although known by various other names (Auto-IP configuration, AutoNet, IP-Auto configuration). With APIPA, DHCP clients self-configure an IP address and subnet mask if a DHCP server is not available.

By default, all clients are configured to use DHCP. When a client boots, it queries the DHCP server for an IP address, subnet mask and possibly other options. If it cannot find a server, the client uses APIPA to get a random IP address in the range 169.254.x.x reserved by Microsoft. It also gives itself a Class B subnet mask of 255.255.0.0. These are used until a DHCP server becomes available.

When invoking APIPA, a client tests for address duplication by sending a gratuitous ARP. If no one answers, it keeps the address. If another client is already using the address, the new client tries a different address. A client can make this attempt up to 10 times. If using APIPA, a client checks for a DHCP server every five minutes. If one is found, the client updates its information from the server.

If a client has a previous lease from a server, it tries to renew the lease at boot time and, if unexpired, the server renews it. If the client cannot contact the server and the lease is unexpired, it tries to ping the default gateway assigned in the lease. If successful, the client continues to use the lease. If the ping fails, the client uses APIPA.

In some cases, disabling APIPA may be desired (if a server is available, APIPA can mask connectivity problems since the PC assigns itself an address instead of generating an error). APIPA can be disabled by modifying the client Registry. Extreme care should be exercised when making Registry changes.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Embedded software development
Computer/Embedded Technology
The reliance on C is being reduced, with Python the language of choice for embedded applications in the fields of IoT and AI.

Read more...
Microsoft Windows IoT on ARM
Altron Arrow Computer/Embedded Technology
This expansion means that the Windows IoT ecosystem can now harness the power of ARM processors, known for their energy efficiency and versatility.

Read more...
Hardened-grade network switches
CST Electronics Computer/Embedded Technology
Lantronix’s hardened switches provide Layer 2 or Layer 3 networking, and are available as Power-over-Ethernet (PoE) or Power-over-Ethernet Plus (PoE+).

Read more...
Switched mezzanine card for enhanced Ethernet connectivity
Rugged Interconnect Technologies Computer/Embedded Technology
The TXMC897 sets a new standard in high-speed Ethernet communication, with advanced features and flexibility.

Read more...
Ryzen V3000 computer on module
Altron Arrow Computer/Embedded Technology
SolidRun has recently announced the launch of its new Ryzen V3000 CX7 Com module, configurable with the eight-core/16-thread Ryzen Embedded V3C48 processor.

Read more...
1.6T Ethernet IP solution to drive AI and hyperscale data centre chips
Computer/Embedded Technology
As artificial intelligence (AI) workloads continue to grow exponentially, and hyperscale data centres become the backbone of our digital infrastructure, the need for faster and more efficient communication technologies becomes imperative. 1.6T Ethernet will rapidly be replacing 400G and 800G Ethernet as the backbone of hyperscale data centres.

Read more...
Maximising edge computing
Computer/Embedded Technology
Senao Networks has announced its launch of its SX904 SmartNIC based on the Intel NetSec Accelerator Reference Design.

Read more...
Duxbury unveils next-gen solar-powered switches
Computer/Embedded Technology
These powerful solar-powered switches are ideal for any environment requiring reliable Power-over-Ethernet (PoE) capabilities.

Read more...
UFS Ver. 4.0 embedded Flash memory devices
EBV Electrolink Computer/Embedded Technology
KIOXIA Europe has announced sampling of the industry’s first Universal Flash Storage (UFS) version 4.0 embedded Flash memory devices designed for automotive applications.

Read more...
Powering factory automation into the future
Rugged Interconnect Technologies Computer/Embedded Technology
Powered by the newest 13th Gen Intel processors, ADLINK Technology’s COM-HPC-cRLS module is a future-proof edge AI solution.

Read more...