Thursday, February 07, 2008

FreeBSD DHCP Server

four# cd /usr/ports/net/isc-dhcp3-server
four# make && make install
four# ee /etc/rc.conf
dhcpd_enable="YES" # dhcpd enabled?
dhcpd_flags="-q" # command option(s)
dhcpd_conf="/etc/dhcpd.conf" # configuration file
dhcpd_ifaces="pcn1" # ethernet interface(s) yg ke client
dhcpd_withumask="022" # file creation mask

four# cp /usr/local/etc/dhcpd.conf.sample /etc/dhcpd.conf
four# ee /etc/dhcpd.conf

###########
# dhcpd.conf


option domain-name "samidz.inc";
option domain-name-servers 172.16.0.126;

default-lease-time 600;
max-lease-time 7200;
ddns-update-style ad-hoc;
log-facility local7;

subnet 10.11.12.0 netmask 255.255.255.224 {
range 10.11.12.2 10.11.12.4;
option routers 10.11.12.1;
}



four# reboot

No comments: