开发者社区> 问答> 正文

批量安装centos7.5时DHCP服务起不来

2018_08_16_1_
2018_08_16_2_
报错提示如下:
[root@server dhcp]# systemctl restart dhcpd.service
Job for dhcpd.service failed because the control process exited with error code. See "systemctl status dhcpd.service" and "journalctl -xe" for details.

[root@server dhcp]# journalctl -xe

-- Unit dhcpd.service has failed.

-- The result is failed.
Aug 17 05:04:11 server dhcpd[3135]: you want, please write a subnet declaration
Aug 17 05:04:11 server systemd[1]: Unit dhcpd.service entered failed state.
Aug 17 05:04:11 server dhcpd[3135]: in your dhcpd.conf file for the network segment
Aug 17 05:04:11 server systemd[1]: dhcpd.service failed.
Aug 17 05:04:11 server dhcpd[3135]: to which interface ens33 is attached. **
Aug 17 05:04:11 server dhcpd[3135]:
Aug 17 05:04:11 server dhcpd[3135]:
Aug 17 05:04:11 server dhcpd[3135]: Not configured to listen on any interfaces!
Aug 17 05:04:11 server dhcpd[3135]:
Aug 17 05:04:11 server dhcpd[3135]: This version of ISC DHCP is based on the release av
Aug 17 05:04:11 server dhcpd[3135]: on ftp.isc.org. Features have been added and other
Aug 17 05:04:11 server dhcpd[3135]: have been made to the base software release in orde
Aug 17 05:04:11 server dhcpd[3135]: it work better with this distribution.
Aug 17 05:04:11 server dhcpd[3135]:
Aug 17 05:04:11 server dhcpd[3135]: Please report for this software via the CentOS Bugs
Aug 17 05:04:11 server dhcpd[3135]: http://bugs.centos.org/
Aug 17 05:04:11 server dhcpd[3135]:
Aug 17 05:04:11 server dhcpd[3135]: exiting.
Aug 17 05:04:11 server polkitd[619]: Unregistered Authentication Agent for unix-process
Aug 17 05:04:13 server dhclient[3110]: DHCPDISCOVER on ens33 to 255.255.255.255 port 67
Aug 17 05:04:19 server dhclient[3110]: DHCPDISCOVER on ens33 to 255.255.255.255 port 67

展开
收起
酷谷马 2018-08-16 21:13:26 4928 0
2 条回答
写回答
取消 提交回答
  • 我试一下

    2019-07-17 23:01:14
    赞同 展开评论 打赏
  • 旺旺:nectar2。

    题主您好,

    日志里说,好象您没有在dhcpd.conf的配置文件里写上子网。

    2019-07-17 23:01:14
    赞同 1 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
低代码开发师(初级)实战教程 立即下载