DHCP on OS X: bootp

August 22, 2014

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.plist

And 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)..

bootp\_enabled detect\_other\_dhcp\_server 1 dhcp\_enabled en3 reply\_threshold\_seconds 0 Subnets allocate lease\_max 86400 lease\_min 86400 name 192.168.33 net\_address 192.168.33.0 net\_mask 255.255.255.0 net\_range 192.168.33.2 192.168.33.254

Once that’s there, you can launch it using:

sudo launchctl load -w /System/Library/LaunchDaemons/bootps.plist

The easiest way to see if it’s working is using tcpdump:

tcpdump -i en3

And to kill the server:

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

That’s it!


James Hagerman

Written by James Hagerman

© 2026