Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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

share|improve this answer
    
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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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