You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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
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)

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.