解决Centos 7 dhcp服务器-no subnet declaration for start (no IPV4 addresses.)

上面的配置是hyper-v 安装的 centos 7.0 

安装dhcp 服务器的方法是

yum install dhcpd  

 

在安装和配置好后,运行的时候出现错误

错误提示如下:

      

no subnet declaration for start (no IPV4 addresses.) --- 错误一.
...
not configured to listen on any interfaces! ---错误二.

 

  -----------------------------------

    分析问题:

        错误原因为:/etc/rc.d/init.d/  目录里面没有dhcpd 模块。

        解决方法:  

                复制 /usr/bin/dhcpd 到/etc/rc.d/init.d/ 目录里面

           重启服务 systemctl restart dhcpd.service     #当没有出现任何提示的时候,表示成功启动了。

            查看一下,调试输出:

        

       出现红色区域中的字。证明dhcp能正常工作了。

 

posted @ 2015-01-06 19:27  sndnvaps  阅读(6449)  评论(0编辑  收藏  举报