internet sharing on mountain lion breaks routing

netstat -nr

sudo route -nv delete default

sudo route -n add default

Add DHCP server in osx

Create /etc/bootpd.list

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
  • Start the server:

    • sudo /bin/launchctl load -w /System/Library/LaunchDaemons/bootps.plist
  • Stop the server

    • sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/bootps.plist

Static IP assignments

Create /etc/bootptab

# machine entries have the following format:
# hostname      hwtype  hwaddr              ipaddr          bootfile
client1         1       00:01:02:03:04:05
client2         1       00:a0:b2:ef:ff:0a

changed May 27, 2014