How i can view the lease expire and lease obtained information in Max osx. I know that i can check it in windows using ipconfig /all. but ifconfig in mac does not give all this information. so where i can find this information in mac?


Try "ipconfig getpacket en0"

(Yes, this is on OS X). Change en0 to whatever the number is of your network adapter (usually en0 for Ethernet, en1 for Airport, etc.) That should give you the DHCP info.

For general info, use the "networksetup" command (at various paths depending on OS X version).

See more options here: http://aplawrence.com/MacOSX/ipconfig.html

  • no it does not show the lease expire and lease obtained information(dates)
    – user57221
    Dec 6 '10 at 20:41

Look in /private/var/db/dhcpclient/leases

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.