So how do you even know what your IP address is? How can you tell that your computer is using an APIPA address in the first place?
The answer to both of these questions is Ipconfig.exe. Ipconfig is an invaluable command-line utility that displays IP configuration information. When run without any switchesin other words, just by typing IPCONFIG at the command promptit shows the assigned IP address, subnet mask, and default gateway. (For instructions on how to use the command line, refer back to Chapter 6, "The Command Line and Other Advanced Techniques.")
Ipconfig can be wielded to display additional information as well, and can even be used as a configuration tool, instructing your computer to release and renew its currently assigned address. Table 9-1 explains a few of the more helpful Ipconfig switches.
For example, the output of IPCONFIG /ALL displays a reading such as the one shown in Figure 9-6.
Figure 9-6. Results of Ipconfig.
I've drawn special attention to the part of the output that lets me know that my system is a DHCP client and that it will use APIPA in the event that a DHCP server cannot be reached.