How to manually set ip, subnet mask, router and dns in recovery mode?

I want to reinstall mac osx lion and for that I need to enter recovery mode and choose reinstall mac osx lion but it warns me that I don't have an internet connection, that is because I have to manually set the ip, subnet mask, router and dns, but I can't find a way of doing it in recovery mode if anybody knows how please help me

MacBook Pro, Mac OS X (10.7.1)

Posted on Sep 10, 2011 12:00 AM

Reply
3 replies

Nov 18, 2011 8:14 AM in response to Skyskull

You can manually configure the IP address using Terminal (under the Utilites menu in Lion Recovery):


networksetup -setmanual ethernet [IP Address] [Subnet Mask] [Default Gateway]

ex: networksetup -setmanual ethernet 192.168.1.1 255.255.255.0 192.168.1.254


To Set DNS to get to websites (example will be for Google's DNS service)

networksetup -setdnsservers ethernet 8.8.8.8


I regularly have to do this on new Macs I am preparing to deploy. A system has to have a registered ethernet MAC address before it can receive a DHCP address.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to manually set ip, subnet mask, router and dns in recovery mode?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.