Quickly get all your DHCP info with ipconfig

Aug 6, 2009 - 3 Comments

ipconfig If you’ve ever needed to troubleshoot a network or internet connection, you know how frustrating it can be (particularly when you’re on techsupport with various broadband providers). This quick tip can make the job a little easier on yourself. Open the command line and using the ipconfig utility, you can quickly access all of your DHCP info.

The command usage for a Mac using WiFi is usually as follows:
ipconfig getpacket en1

The command for a wired network using ethernet is usually:
ipconfig getpacket en0

You’ll be presented with a bunch of information, but the most useful of which is usually the DHCP data at the end as seen in the screenshot. I hope this helps you as much as it helped me!

Related articles:

Posted by: Paul Horowitz in Command Line, How to, Tips & Tricks, Troubleshooting

3 Comments

» Comments RSS Feed

  1. [...] OS-X Daily You can also find your router address ipconfig getoption en0 [...]

  2. bison says:

    in my case, I get no result entering this command.
    what’s wrong?

    Mac OS X 10.6.4 (Mac Pro)

  3. pklaus says:

    Hi!

    There is a nice script that shows how to parse the the output of ipconfig using regular expressions:
    https://gist.github.com/1825733#file_getnet.sh

    @bison: If you don’t get a response the respective interface (en0 or en1) is down / has not received a DHCP configuration.

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Shared on Facebook

Shop at Amazon

Ad

OSXDaily on Facebook