Adjust the default IP range for internet sharing

By means of the internet sharing option in Mac OS X (client and server) it is possible to share your internet connection with other computers via your LAN or WiFi network card. An excellent OS X feature that works almost perfectly, only in my opinion it has one major limitation.

It is not possible to configure the IP range that is distributed via the internet sharing preferences. By default, Internet Sharing uses the subnet. This IP range can cause problems when, for example, you use VPN or want to connect to another network in the 192.168.xx range.

In Mac OS X 10.5+ you can determine the IP range yourself by making an adjustment in the NAT settings used by internet sharing.

First check with Terminal or exists in the directory /Library/Preferences/SystemConfiguration by means of:

ls -al /Library/Preferences/SystemConfiguration/

If it does not exist yet, you must first start and stop the internet sharing, so that the plist is automatically created by OS X.

When is present in the directory you can change the subnet using the command below in Terminal:

sudo defaults write /Library/Preferences/SystemConfiguration/ SharingNetworkNumberStart

NB! run the command as one line with a space between …nat and Sharing…

As a string you indicate the IP range (/24 class-C) that you want to use, for example, then restart the internet sharing and the new IP range is active.

‘); } }

Read original article here

Denial of responsibility! Verticall lobby is an automatic aggregator around the global media. All the content are available free on Internet. We have just arranged it in one platform for educational purpose only. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials on our website, please contact us by email – The content will be deleted within 24 hours.

Leave a comment