Every once in a while, I need to run a DHCP server on my Mac. And I always forget how to do it. So here’s a post so that I can go back and look it up when I need it again.
sudo vim /etc/bootpd.plistAnd put this content in there… Make sure you set the right interface or you’ll very likely cause havoc on your works network… and they will find you.
bc(language-markup)..
Once that’s there, you can launch it using:
sudo launchctl load -w /System/Library/LaunchDaemons/bootps.plistThe easiest way to see if it’s working is using tcpdump:
tcpdump -i en3And to kill the server:
sudo launchctl unload -w /System/Library/LaunchDaemons/bootps.plistThat’s it!
