-->
tar zxvf dhcp-3.0.5.tar.gz
cd dhcp-3.0.5
./configure
make
make install
vi /etc/dhcpd.conf
touch /var/state/dhcp/dhcpd.leases
下面是dhcpd.conf的一个例子
[root@supersun dhcp]# cat dhcpd.conf
ddns-update-style interim;
ddns-update-style ad-hoc;
max-lease-time 86400;
default-lease-time 86400;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.220 192.168.2.249;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option routers 192.168.2.254;
option domain-name-servers 192.168.2.20;
option domain-name "ns1.dareway.cn";
host platinum {
hardware ethernet 00:12:79:D5:53:25;
fixed-address 192.168.2.20;
}
# host bchyi {
# hardware ethernet 00:80:c8:e4:c1:e4;
# fixed-address 172.25.39.2;
# }
}

发表评论