Chinaunix首页 | 论坛 | 博客
  • 博客访问: 105568
  • 博文数量: 7
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 200
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-09 11:36
文章分类

全部博文(7)

文章存档

2010年(2)

2009年(3)

2008年(2)

我的朋友

分类: LINUX

2009-11-19 12:10:29

CentOs 5.3安装DHCP服务器

2009.11.19安装测试服务器:

dhcpd网站:

1、先安装DHCP软件

[root@localhost /]# rpm -ivh dhcp-3.0.5-18.el5.i386.rpm

2、将范本复制到/etc下

[root@localhost /]# cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf

3、修改dhcpd.conf文件

[root@localhost /]# vi /etc/dhcpd.conf

ddns-update-style interim;   

ignore client-updates;

subnet 172.86.55.0 netmask 255.255.255.0 {

# --- default gateway

             option routers                  172.86.55.250;

             option subnet-mask              255.255.255.0;

             option nis-domain               "domain.org";

             option domain-name              "domain.org";

             option domain-name-servers      210.21.4.130;

             option time-offset              -18000; # Eastern Standard Time

#       option ntp-servers              192.168.1.1;

#       option netbios-name-servers     192.168.1.1;

# --- Selects point-to-point node (default is hybrid). Don't change this unless

# -- you understand Netbios very well

#       option netbios-node-type 2;

             range dynamic-bootp 172.86.55.41 172.86.55.44;

             default-lease-time 21600;

             max-lease-time 43200;

        # we want the nameserver to appear at a fixed address

              host ns {

                next-server marvin.redhat.com;

                hardware ethernet 00:30:F1:97:F4:05;

                fixed-address 172.86.55.44;

        }

}

4、查看租用记录文件

[root@localhost /]# vi /var/lib/dchp/dhcpd.leases

 

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