If you want to determine the IP address of the
DHCP server
from which a Mac
OS X system received its IP address,
subnet
mask, etc., you can obtain that information from a
command-line interface (CLI), i.e., a
Terminal window by using the command ipconfig getpacket
interface
where interface is the relevant network
interface, which will usually be en0
or en1
.
You can issue the command ifconfig -a
in a Terminal
window to see the network interfaces on the system and which have
IP addresses assigned to them.
getpacket interface-name
Prints to standard output the DHCP/BOOTP packet that the
client accepted from the DHCP/BOOTP server. This command is
useful to check what the server provided, and whether the
values are sensible. This command outputs nothing if
DHCP/BOOTP is not active on the interface, or the attempt to
acquire an IP address was unsuccessful.
[ More Info ]