免费注册 查看新帖 |

Chinaunix

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

dhcpd 重启失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-11 22:54 |只看该作者 |倒序浏览
DHCP装好后可以使用,但是有报错。
[root@linuxguan ~]# dhcpd restart


No subnet declaration for restart (0.0.0.0).
** Ignoring requests on restart.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface restart is attached. **


Not configured to listen on any interfaces!

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.

论坛徽章:
0
2 [报告]
发表于 2006-06-11 23:36 |只看该作者
原帖由 guanwg 于 2006-6-11 22:54 发表
DHCP装好后可以使用,但是有报错。
[root@linuxguan ~]# dhcpd restart
No subnet declaration for restart (0.0.0.0).


你可能搞错了。

基本上你执行的那是 /usr/sbin/dhcpd 程式,该程式使用参数只有:

  1. Usage: dhcpd [-p <UDP port #>] [-d] [-f][-cf config-file] [-lf lease-file]  [-user user] [-group group] [-chroot dir]  [-tf trace-output-file] [-play trace-input-file] [-t] [-T] [-s server] [if0 [...ifN]]
复制代码


简单说通常会传入 interface,比方使用像是:

  1. dhcpd eth0 eth1
复制代码


而你传入竟然是 restart,这个不是介面名称吧?

再者我想你可能没把 /etc/init.d/ 这类 SysV 的 script 执行与弄清楚,因为你需要的是 /etc/init.d/dhcpd restart 这样才对。

放 /etc/init.d/  里面都是 shell script,依据传入参数是 {start|stop|restart|reload} 等等参数提供相关功能。比方你执行:

  1. /etc/init.d/dhcpd start
复制代码


那可能相当于执行:

  1. /usr/sbin/dhcpd
复制代码


也就是启动该服务。而那你执行像是:

  1. /etc/init.d/dhcpd stop
复制代码


那可能就是相当于执行:
  1. kill -HUP dhcpd_pid_number
复制代码


也就是停止结束该程式。

所以请先厘清这种差异后再继续。

==

论坛徽章:
1
15-16赛季CBA联赛之吉林
日期:2018-05-23 14:31:12
3 [报告]
发表于 2006-07-06 20:47 |只看该作者
试一下 service dhcpd restart

论坛徽章:
0
4 [报告]
发表于 2006-07-09 20:36 |只看该作者

回复 2楼 kenduest 的帖子

呵呵,台湾人就是严谨……
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP