QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1284|回复: 6

关于dhcpd的问题?

[复制链接]
发表于 2005-4-6 09:24:28 | 显示全部楼层 |阅读模式
我运行[root@ml ~]# /etc/rc.d/init.d/dhcpd start后出现:
启动 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/
/etc/dhcpd.conf line 15: semicolon expected.
range
^
Configuration file errors encountered -- exiting

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 [email protected]
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.
                                                           [失败]
请指教.
发表于 2005-4-6 09:43:01 | 显示全部楼层
帖配置看看撒!
回复

使用道具 举报

 楼主| 发表于 2005-4-6 09:45:04 | 显示全部楼层
ddns-update-style interim;

ignore client-updates;

subnet 192.168.2.0 netmask 255.255.255.0 {

option routers 192.168.2.0;

option subnet-mask 255.255.255.0;

option domain-name-servers 192.168.2.1
                       
range 192.168.2.10,192.168.2.250;

default-lease-time 21600;

max-lease-time 43200;

}
回复

使用道具 举报

发表于 2005-4-6 14:27:29 | 显示全部楼层
[code:1]server-identifier 192.168.6.208;
default-lease-time 3000;
ddns-update-style ad-hoc;
max-lease-time 87600;
option broadcast-address 192.168.6.255;
option domain-name 'jarson.com.cn";
option domain-name-servers 202.96.128.68;
option routers 192.168.6.208;
option subnet-mask 255.255.255.0;
subnet 192.168.6.0 netmask 255.255.255.0{range 192.168.6.21 192.168.6.200;}[/code:1]
此我自己的配置,請參攷一下吧!
回复

使用道具 举报

 楼主| 发表于 2005-4-8 10:02:53 | 显示全部楼层
先谢谢这位jarson了.
我已经按照你的配置改过了,但还是出现错误,但这次好像是提示地址/var/lib/dhcp/dhcpd.leases没有dhcpd.leases,但我已经touch /var/lib/dhcp/dhcpd.leases为什么还会出现:
启动 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 [email protected]
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.
                                                           [失败]
回复

使用道具 举报

发表于 2005-4-8 14:20:29 | 显示全部楼层
好像是权限不足?你是用什么用户配置dhcp的?
回复

使用道具 举报

 楼主| 发表于 2005-4-8 20:41:56 | 显示全部楼层
我是用root超级用户编辑的。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-6 05:28 , Processed in 0.050967 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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