Chinaunix首页 | 论坛 | 博客
  • 博客访问: 500132
  • 博文数量: 110
  • 博客积分: 3971
  • 博客等级: 中校
  • 技术积分: 1175
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-20 23:27
文章分类

全部博文(110)

文章存档

2015年(2)

2014年(1)

2013年(1)

2011年(9)

2010年(28)

2009年(12)

2008年(13)

2007年(23)

2006年(21)

我的朋友

分类: 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";
 }

 

阅读(1074) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~