I found this script in this thread. that error comes from the original, i only changed some file links.
The sed commands parses through data streams. in this case the cat would generate a stream and pipe output into the input of the first sed looking for the default values and changing them the the values needed for Mark V ICS again piping into another sed command to modify the secondary and tunneling that output to overwrite (or create new if non existant) our temp.bootpd.plist
com.apple.NetworkSharing.plist is unmodified only need to be turned off before changing settings and turned back on again to put them into effect
in the script it seems in the original post the .plist was left out of the command. and i had modified mine by hand before using the script, while still figuring things out. try this:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.NetworkSharing.plist
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat.plist NAT -dict-add SharingNetworkNumberStart 172.16.42.0
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.NetworkSharing.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