Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Tanda

macrumors newbie
Original poster
Sep 13, 2012
20
3
Does anyone know the correct commands to configure non DHCP Ethernet connection that I can use in Recovery Mode?

I was only able to set the IP Address and subnet mask using the ipconfig command:
Code:
ipconfig set en0 manual ip-address subnet-mask

How do I enter the IP address for the router?

Edit:
The following suggestion provided by bogdanw worked:

/Volumes/Macintosh\ HD/usr/sbin/networksetup -setmanual networkservice ip subnet router

Example:
/Volumes/Macintosh\ HD/usr/sbin/networksetup -setmanual ethernet 10.20.30.25 255.255.255.0 10.20.30.10
 
Last edited:

Tanda

macrumors newbie
Original poster
Sep 13, 2012
20
3
Thank you for the suggestion Bogdan.

Unfortunately the networksetup command is not available in Recovery Mode in Sonoma 14.4 (23E214)
 
Last edited:

bogdanw

macrumors 603
Mar 10, 2009
5,693
2,725
It's working in Recovery Sonoma 14.4 (23E214), use /Volumes/Macintosh\ HD/usr/sbin/networksetup

Example:
Code:
/Volumes/Macintosh\ HD/usr/sbin/networksetup -listallnetworkservices

/Volumes/Macintosh\ HD/usr/sbin/networksetup -getinfo Wi-Fi

/Volumes/Macintosh\ HD/usr/sbin/networksetup -setmanual Wi-Fi 192.168.0.2 255.255.255.0 192.168.0.1
 
  • Like
Reactions: Tanda

Tanda

macrumors newbie
Original poster
Sep 13, 2012
20
3
Marvellous, that works.

Thank you so much for your help Bogdan.
Have a great day.
 
  • Like
Reactions: bogdanw
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.