Change default subnet IP with internet sharing

Hi all,

I think that this problem concern many users in the world, but nobody have one working solution....

It easy, internet sharing in OSX it's really easy to setup, but, no if your local lan uses 192.168.2.x subnet, because this is default subnet for OSX internal dhcp.

How we can change this default ip address with any other like 10.0.0.x ??

Thanks

Macbook Pro 17", Mac OS X (10.6.6)

Posted on Jan 19, 2011 1:00 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Oct 4, 2017 2:34 AM

Still working in Sierra, just copying from the original comment:


sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkNumberStart 192.168.0.0

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkNumberEnd 192.168.0.255

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkMask 255.255.255.0


(change the IP addresses to suit your network)

6 replies
Sort By: 
Question marked as ⚠️ Top-ranking reply

Oct 4, 2017 2:34 AM in response to Brian Dodds

Still working in Sierra, just copying from the original comment:


sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkNumberStart 192.168.0.0

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkNumberEnd 192.168.0.255

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkMask 255.255.255.0


(change the IP addresses to suit your network)

Reply

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.

Change default subnet IP with internet sharing

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