Jump to content

muhammad

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by muhammad

  1. once you've 'clicked' trough enableing ICS on the proper interfaces this will do the rest:

    sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.InternetSharing.plist
    #editing file /Library/Preferences/SystemConfiguration/com.apple.nat.plist
    sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add SharingNetworkNumberStart 172.16.42.0
    sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.InternetSharing.plist
    sudo ifconfig bridge100 172.16.42.42 netmask 255.255.255.0 up”
    cat /etc/bootpd.plist | sed "s/172.16.42.1/172.16.42.42/"|sed "s/172.16.42.2/172.16.42.43/" > /tmp/temp.bootpd.plist
    sudo mv /tmp/temp.bootpd.plist /etc/bootpd.plist 
    sudo kill -HUP `pgrep bootpd`
    

    On Yosemite, you'll need to set SharingNetworkNumberEnd and SharingNetworkMask as well.

    #editing file /Library/Preferences/SystemConfiguration/com.apple.nat.plist

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

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

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

×
×
  • Create New...