|
|
Much simpler way to do this, using `defaults` command in Terminal
There's a much, much simpler way to do this, if you don't mind using Terminal for like 15 seconds. First, paste the following line into Terminal to make a backup, noting that sudo requires your admin password, and won't work on Leopard if your password is blank: * sudo cp com.apple.nat.plist{,.backup} Then verify the current setting for the plist file before making any changes: * defaults read /Library/Preferences/SystemConfiguration/com.apple.nat (Note that this won't work if you have the full "com.apple.nat.plist", as the defaults command insists on omitting the ".plist" file extension. Blame Apple.) Then, assert the new setting (this is the only line that actually does anything): * sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat SharingNetworkNumberStart 192.168.3.150 Use whatever you find appropriate for that IP address. Then, confirm the change: * defaults read /Library/Preferences/SystemConfiguration/com.apple.nat That's it. ---
Much simpler way to do this, using `defaults` command in Terminal
using the "defaults write" stuff worked fine for me, in that it added the relevant line to the file. However, it didn't add it under NAT as the OP mentioned.
Much simpler way to do this, using `defaults` command in Terminal
I was having the same problem. I found the fix. If the information is in memory when you start/stop Internet Sharing, the file on disk gets written over both when Internet Sharing is started and stopped. I stopped Internet Sharing, changed the file, then rebooted the machine prior to restarting Internet Sharing. After the reboot, it had to get the information from the file. So, the new address information was retained and kept in memory to be written out when it stopped again.
Much simpler way to do this, using `defaults` command in Terminal
You got that almost right. A little experimentation showed that this variation worked on 10.6.2:
defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkNumberStart 192.168.24.0 |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|