Apparently, Yosemite (10.10) now needs a bit more info to start InternetSharing.

http://hints.macworld.com/article.php?story=20090510120814850

Apparently, Yosemite (10.10) now needs a bit more info to start InternetSharing.

SharingNetworkMask
255.255.255.0
SharingNetworkNumberEnd
192.168.0.20
SharingNetworkNumberStart
192.168.0.0

Because of cacheing, you should use defaults write:

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.20
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkMask 255.255.255.0

I hope someone more familiar with writing plists can improve this, but it worked for me as written.

廣告
本篇發表於 未分類。將永久鏈結加入書籤。

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s