免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1562 | 回复: 2
打印 上一主题 下一主题

dhcp无法启动 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-18 23:37 |只看该作者 |倒序浏览
[root@localhost ~]# vi /etc/dhcpd.conf               

allow booting;
allow bootp;
class "pxeclients" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
next-server ;
filename "pxelinux.0";
}



[root@localhost tftpboot]# service dhcpd start
Starting dhcpd:                                            [FAILED]


[root@localhost ~]# tail /var/log/messages -f
Nov 18 23:36:04 localhost dhcpd: Internet Systems Consortium DHCP Server V3.0.5-RedHat
Nov 18 23:36:04 localhost dhcpd: Copyright 2004-2006 Internet Systems Consortium.
Nov 18 23:36:04 localhost dhcpd: All rights reserved.
Nov 18 23:36:04 localhost dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Nov 18 23:36:04 localhost dhcpd: /etc/dhcpd.conf line 6: semicolon expected.
Nov 18 23:36:04 localhost dhcpd: filename
Nov 18 23:36:04 localhost dhcpd: ^
Nov 18 23:36:04 localhost dhcpd: /etc/dhcpd.conf line 6: expecting a parameter or declaration
Nov 18 23:36:04 localhost dhcpd: filename "pxelinux.0";
Nov 18 23:36:04 localhost dhcpd:                      ^
Nov 18 23:36:04 localhost dhcpd: /etc/dhcpd.conf line 7: unexpected end of file
Nov 18 23:36:04 localhost dhcpd: }
Nov 18 23:36:04 localhost dhcpd: ^
Nov 18 23:36:04 localhost dhcpd: Configuration file errors encountered -- exiting
Nov 18 23:36:04 localhost dhcpd:
Nov 18 23:36:04 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Nov 18 23:36:04 localhost dhcpd: get the latest from ftp.isc.org and install that before
Nov 18 23:36:04 localhost dhcpd: requesting help.
Nov 18 23:36:04 localhost dhcpd:
Nov 18 23:36:04 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Nov 18 23:36:04 localhost dhcpd: yet read the README, please read it before requesting help.
Nov 18 23:36:04 localhost dhcpd: If you intend to request help from the server@isc.org[/email]
Nov 18 23:36:04 localhost dhcpd: mailing list, please read the section on the README about
Nov 18 23:36:04 localhost dhcpd: submitting bug reports and requests for help.
Nov 18 23:36:04 localhost dhcpd:
Nov 18 23:36:04 localhost dhcpd: Please do not under any circumstances send requests for
Nov 18 23:36:04 localhost dhcpd: help directly to the authors of this software - please
Nov 18 23:36:04 localhost dhcpd: send them to the appropriate mailing list as described in
Nov 18 23:36:04 localhost dhcpd: the README file.
Nov 18 23:36:04 localhost dhcpd:
Nov 18 23:36:04 localhost dhcpd: exiting.

论坛徽章:
0
2 [报告]
发表于 2008-11-18 23:44 |只看该作者
原帖由 chao008 於 2008-11-18 23:37 發表
[root@localhost ~]# vi /etc/dhcpd.conf               

allow booting;
allow bootp;
class "pxeclients" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
next-server  ...


next-server 後面的 tftp server ip 呢 ?

  1. next-server ip;
复制代码


若你的 tftp server 與 dhcp 這同機器,就該行省略即可

论坛徽章:
0
3 [报告]
发表于 2008-11-19 00:08 |只看该作者

回复 #1 chao008 的帖子

配置文件第六行有错误
/etc/dhcpd.conf line 6: semicolon expected
参考修改如下
#       next-server 172.16.100.245;
#       filename "/tftpboot/pxelinux.0"; #注:启动映象文件
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP