getting DHCP-assigned IP address

Michael A. Smith msmith at code-fu.com
Tue Dec 2 14:05:09 PST 2003


Is there an easy way to get the IP address that DHCP has assigned to an 
interface?

I know I can do it the hard way -- parsing the results of ifconfig with 
regular expressions -- but I suspect there's a much easier way.

-- 
Michael A. Smith <msmith at code-fu.com>
Programmer at Large




More information about the freebsd-questions mailing list