Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.7: Re-install from restore partition in a manual IP environment System 10.7
This small hint may be of some help when you have to reinstall Lion from a recovery partition in a network environment that does not have an active DHCP server. In this case, a small intervention in the Terminal is required.

Once you've booted into the Recovery partition, open Terminal by clicking its icon in the Utilities menu. Then:
  • Get a list of the network interfaces for the Mac you are installing Lion on:

    networksetup -listallnetworkservices

  • Set up the network interface, as listed by the output of the command mentioned above (Ethernet or otherwise):

    networksetup -setmanual {INTERFACE NAME} {IP ADDRESS} {SUBNET MASK} {ROUTER}

  • Set the name (DNS) servers:

    networksetup -setdnsservers {YOUR DNS SERVER}

  • Verify that the changes have been correctly saved:

    ifconfig

    Examine all the entries and find the one you have actually worked on (ex. en0 is generally, but not always Ethernet).
  • Quit Terminal and continue with your installation by following the onscreen steps.
  • Wait for the download to finish.
  • Enjoy your freshly downloaded Lion!

[crarko adds: I haven't tested this one. The man page for networksetup provides more information on the available options.]
    •    
  • Currently 3.57 / 5
  You rated: 3 / 5 (7 votes cast)
 
[6,232 views]  

10.7: Re-install from restore partition in a manual IP environment | 1 comments | Create New Account
Click here to return to the '10.7: Re-install from restore partition in a manual IP environment' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.7: Re-install from restore partition in a manual IP environment
Authored by: negritude on Oct 09, '11 10:15:01PM

Slight correction, the DNS command should be:

networksetup -setdnsservers {INTERFACE NAME} {YOUR DNS SERVER}

Note, you can enter multiple DNS servers separated by spaces:

networksetup -setdnsservers {INTERFACE NAME} {YOUR DNS SERVER} {YOUR DNS SERVER}

Edited on Oct 09, '11 10:15:35PM by negritude



[ Reply to This | # ]