Linux/Python学习论坛-京峰教育

 找回密码
 立即注册

一键登录:

搜索
热搜: 活动 交友 discuz
查看: 3204|回复: 2

配置dhcp服务器报错无法启动

[复制链接]

217

主题

331

帖子

4725

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
4725
QQ
发表于 2015-4-15 10:20:51 | 显示全部楼层 |阅读模式

在服务器上配置dhcp服务器,配置完后,无法启动报错如下:
  1. pr 15 10:18:48 iZ25nv1rninZ dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
  2. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: Copyright 2004-2010 Internet Systems Consortium.
  3. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: All rights reserved.
  4. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: For info, please visit https://www.isc.org/software/dhcp/
  5. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
  6. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: Wrote 0 leases to leases file.
  7. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:
  8. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: No subnet declaration for docker0 (192.168.42.1).
  9. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: ** Ignoring requests on docker0.  If this is not what
  10. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:    you want, please write a subnet declaration
  11. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:    in your dhcpd.conf file for the network segment
  12. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:    to which interface docker0 is attached. **
  13. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:
  14. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:
  15. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: No subnet declaration for eth1 (123.57.11.203).
  16. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: ** Ignoring requests on eth1.  If this is not what
  17. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:    you want, please write a subnet declaration
  18. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:    in your dhcpd.conf file for the network segment
  19. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:    to which interface eth1 is attached. **
  20. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:
  21. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:
  22. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: No subnet declaration for eth0 (10.172.219.9).
  23. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: ** Ignoring requests on eth0.  If this is not what
  24. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:    you want, please write a subnet declaration
  25. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:    in your dhcpd.conf file for the network segment
  26. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:    to which interface eth0 is attached. **
  27. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:
  28. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:
  29. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: Not configured to listen on any interfaces!
  30. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:
  31. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: This version of ISC DHCP is based on the release available
  32. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: on ftp.isc.org.  Features have been added and other changes
  33. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: have been made to the base software release in order to make
  34. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: it work better with this distribution.
  35. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:
  36. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: Please report for this software via the CentOS Bugs Database:
  37. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:     http://bugs.centos.org/
  38. Apr 15 10:18:48 iZ25nv1rninZ dhcpd:
  39. Apr 15 10:18:48 iZ25nv1rninZ dhcpd: exiting.
复制代码
这是什么引起的啊

京峰Linux教育创始人之一,只为有梦想的人!任何事情只要去行动,就会收获结果!
回复

使用道具 举报

0

主题

50

帖子

1069

积分

金牌会员

Rank: 6Rank: 6

积分
1069
发表于 2015-4-15 18:28:44 | 显示全部楼层
对多网卡没有声明子网吧,对配置文件添加相对应的subnet与netmask
回复 支持 反对

使用道具 举报

217

主题

331

帖子

4725

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
4725
QQ
 楼主| 发表于 2015-4-15 23:24:34 | 显示全部楼层
罗锋 发表于 2015-4-15 18:28
对多网卡没有声明子网吧,对配置文件添加相对应的subnet与netmask

恩 罗峰说的很对,这个错误就是因为没有配置相关的dhcp配置导致的。
京峰Linux教育创始人之一,只为有梦想的人!任何事情只要去行动,就会收获结果!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|京峰教育,只为有梦想的人 ( 京ICP备15013173号 )

GMT+8, 2021-10-27 22:00 , Processed in 0.031190 second(s), 23 queries , Apc On.

快速回复 返回顶部 返回列表