Difficulty: Easy
Correct Answer: APIPA automatically assigns an IPv4 address in the 169.254.0.0/16 range to a host when no DHCP server is reachable; you recognize it by seeing a 169.254.x.x address on the interface.
Explanation:
Introduction / Context:
Automatic Private IP Addressing (APIPA) is a feature commonly found in Microsoft Windows and other operating systems that allows a host to self-assign an IP address when it cannot obtain one from a DHCP server. This behaviour is important to recognize during troubleshooting because it usually indicates a problem with DHCP or network connectivity. Interview questions about APIPA test basic understanding of IPv4 addressing and DHCP failure modes.
Given Data / Assumptions:
Concept / Approach:
When a DHCP client cannot reach any DHCP server, instead of leaving the interface unconfigured, APIPA allows the host to pick an address automatically from the IPv4 link local range 169.254.0.0/16. The client probes to check for conflicts and then uses the chosen address with a default subnet mask of 255.255.0.0. These addresses are not routable on the internet and are meant only for local link communication. Recognizing an address starting with 169.254 on a Windows PC is a strong sign that the machine failed to obtain a valid DHCP address from the expected scope.
Step-by-Step Solution:
Step 1: Define APIPA as Automatic Private IP Addressing, a self-assignment mechanism for IPv4 addresses.
Step 2: Note that APIPA is triggered when the DHCP discovery process fails to obtain a lease from any DHCP server.
Step 3: Explain that the host then randomly selects an address in the 169.254.0.0/16 range and checks for duplicates using ARP.
Step 4: If no conflict is detected, the host assigns the 169.254.x.x address with a 255.255.0.0 mask and no default gateway.
Step 5: Recognize APIPA on a client by examining its IP configuration and noticing a 169.254.x.x address, which indicates a DHCP or connectivity issue.
Verification / Alternative check:
Running ipconfig on a Windows host that is connected to a network without a working DHCP server shows that the interface has an IPv4 address beginning with 169.254. If the DHCP server is later restored and the client renews its lease, the APIPA address is replaced with a proper address from the DHCP scope. Network documentation on IPv4 link local addressing confirms that 169.254.0.0/16 is reserved for this purpose and is not routable beyond the local segment.
Why Other Options Are Wrong:
Option B incorrectly claims that APIPA assigns public routable addresses starting with 8.x.x.x, which is false and would create serious addressing conflicts. Option C confuses APIPA with manual static configuration tools, but APIPA is automatic. Option D mixes APIPA with IPv6 link local addressing; IPv6 uses FE80::/10 for link local, which is a different mechanism and not called APIPA in IPv4 terminology.
Common Pitfalls:
A common mistake is to assume that an APIPA address means the network is fully functional; in reality, it usually indicates that the host cannot reach the DHCP server or gateway. Another pitfall is trying to use APIPA addresses for production networks; because they are link local, they do not support routing across subnets. Recognizing APIPA helps quickly diagnose DHCP misconfigurations, cable issues, or VLAN problems in real networks.
Final Answer:
APIPA is an automatic IPv4 self-assignment mechanism that gives a host a 169.254.x.x address when no DHCP server is reachable, so you recognize it by seeing a 169.254.0.0/16 address on the interface.
Discussion & Comments