分类: WINDOWS
2009-02-04 16:38:32
先下载dhcp的软件包,
然后解包准备安装:
[root@Linux]# tar zxvf dhcp-4.1.0.tar.gz
解包好了,,然后进入目录:
# cd dhcp-4.1.0
开始configure:
# ./configure –with-srv-lease-file=/var/db/dhcpd.leases –with-cli-lease-file=/var/db/dhclient.leases –with-srv-pid-file=/var/db/dhcpd.pid –with-cli-pid-file=/var/db/dhclient.pid
#make && make install
结束安装!
配置file:
/etc/dhcpd.conf
allow booting;
allow bootp;
default-lease-time 600;
max-lease-time 7200;
authoritative;
#option perform-mask-discovery on;
#option mask-supplier on;
option space gpxe;
option gpxe-encap-opts code 175 = encapsulate gpxe;
option gpxe.bus-id code 177 = string;
ddns-update-style ad-hoc;
subnet 10.0.0.0 netmask 255.255.255.0 {
use-host-decl-names on;
#range dynamic-bootp 10.0.0.20 10.0.0.200;
range 10.0.0.20 10.0.0.200;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
default-lease-time 1800;
max-lease-time 86400;
}
next-server 10.0.0.19;
host gl1 {
#hardware ethernet 00:0C:29:2D:55:6B;
hardware ethernet 00:00:00:00:00:00;
#fixed-address 10.0.0.0;
}
if not exists gpxe.bus-id {
filename "undionly.kpxe";
} else {
filename "";
option root-path "aoe:e0.0";
#option root-path "iscsi:192.168.2.1::::iqn.2001-04.com.server:server01.vg00.lun0";
}