LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1408|回复: 5

DHCP启动错误, 兄弟们帮忙看看... 怎么解决?

[复制链接]
发表于 2006-12-15 20:16:20 | 显示全部楼层 |阅读模式
service dhcpd start 时提示的错误信息:

Starting dhcpd: Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Can't open lease database /var/lib/dhcp/dhcpd.leases: Permission denied --
  check for failed database rewrite attempt!
Please read the dhcpd.leases manual page if you
don't know what to do about this.

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
                                                           [FAILED]

请问如何解决? 小弟谢过了...
发表于 2006-12-15 21:03:48 | 显示全部楼层
日志不是写的很清楚吗?
Can't open lease database /var/lib/dhcp/dhcpd.leases: Permission denied --
check for failed database rewrite attempt!

/var/lib/dhcp/dhcpd.leases文件权限不对,检查一下吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-16 09:40:49 | 显示全部楼层
已尝试过 chmod 777 /var/lib/dhcp/dhcpd.leases
但 service dhcpd start 时, 也出现同样的错误!!

附上 dhcpd.conf

ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway
        option routers                  192.168.0.1;
        option subnet-mask              255.255.255.0;
        option broadcast-address        192.168.0.255;
        option nis-domain               "domain.local";
        option domain-name              "domain.local";
        option domain-name-servers      61.144.56.100,61.144.56.101;

        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 192.168.0.10 192.168.0.99;
        range 192.168.0.150 192.168.0.200;
#       default-lease-time 21600;
        default-lease-time 259200;
#       max-lease-time 43200;
        max-lease-time 777600;

        # we want the nameserver to appear at a fixed address
        group {
          use-host-decl-names on;
          host Tim {
            hardware ethernet 00:E0:4C:7A:16:01;
            fixed-address 192.168.0.201;
..........
回复 支持 反对

使用道具 举报

发表于 2006-12-16 14:39:57 | 显示全部楼层
是不是dhcpd已经起来了?用下面命令检查一下:
netstat -ln
ps ax|grep dhcp
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-16 16:50:12 | 显示全部楼层
检查过, 没有启动起来!!
如果启动起来 service dhcpd restart/stop 都可用啊 .....

莫名其妙!! 开始配置那天都能正常启动的...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-18 09:17:43 | 显示全部楼层
已解决!!
mv or rm /var/lib/dhcp/dhcpd.leases is OK.
/var/lib/dhcp/dhcpd.leases 系统自动生成, 不需要手动配置; 如已存在, 可将其删除或移开.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表