[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:
http://isc.org/products/DHCP/
Now, logged in as an admin-level user, open the Terminal (located in /Applications/Utilities)
type the following commands:
Code:
cd /path/to/the/file/you/downloaded
tar -zxvf dhcp-latest.tar.gz
cd dhcp-3.0
./configure
make
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 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.50 192.168.1.200;
default-lease-time 300000;
max-lease-time 350000;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.1;
option nntp-server 17.254.0.26;
}
then,
sudo touch /var/db/dhcpd.leases
okey dokey, now we’re set. Here’s how you start the server:
sudo dhcpd &