解决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     #当没有出现任何提示的时候,表示成功启动了。

            查看一下,调试输出:

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

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

 

相关文章:

  • 2021-08-08
  • 2021-04-05
  • 2021-04-29
  • 2021-12-13
  • 2022-12-23
  • 2021-05-03
猜你喜欢
  • 2021-12-21
  • 2022-02-17
  • 2022-12-23
  • 2022-01-05
  • 2021-11-04
  • 2021-08-26
  • 2021-12-21
相关资源
相似解决方案