[HOWTO] – Setup dhcpd on Mac OS X

from : http://macosx.com/forums/howto-faqs/14022-howto-setup-dhcpd-server-mac-os-x-workstation.html

First, go to the official DHCP web page and have a look around:

Now, logged in as an admin-level user, open the Terminal (located in /Applications/Utilities)
type the following commands:

cd /path/to/the/file/you/downloaded
tar -zxvf dhcp-latest.tar.gz
cd dhcp-3.0
get food or something – takes about 3 mins to compile – oh btw, when prompted for a password, enter your password
cd work.darwin
cd server
sudo make install
cd ../common
sudo make install
cd ../dhcpctl
sudo make install
cd ../opamip
sudo make install

ok, now type sudo pico dhcpd.conf

## /etc/dhcpd.conf file
ddns-update-style ad-hoc;

subnet netmask {
default-lease-time 300000;
max-lease-time 350000;
option routers;
option broadcast-address;
option subnet-mask;
option domain-name-servers;
option nntp-server;


sudo touch /var/db/dhcpd.leases

okey dokey, now we’re set. Here’s how you start the server:

sudo dhcpd &

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.