步骤一:源码下载和安装
源码下载地址:git clone https://github.com/isc-projects/dhcp.git
执行./configure & make; make install
mkdir -p /usr/local/var/db
touch /usr/local/var/db/dhcpd.leases
mkdir -p /usr/local/var/run
touch /usr/local/var/run/dhcpd.pid
步骤二:dhcpd.conf简单配置
default-lease-time 600;
max-lease-time 7200;
subnet 172.16.128.0 netmask 255.255.255.0 {
range 172.16.128.110 172.16.128.120;
}