1、Centos dhcp环境

centos 6.6,dhcp通过yum安装,网卡IP:10.70.11.230/24

2、dhcp配置文件

option domain-name-servers  10.70.11.230;
default-lease-time 432000;   
max-lease-time 432000;
authoritative;
ddns-update-style none;
subnet 10.70.12.0 netmask 255.255.255.0{
       range dynamic-bootp 10.70.12.10 10.70.12.229;
       option broadcast-address 10.70.12.255;
       option routers 10.70.12.1;
}

3、dhcp服务启动报错,日志如下:

Oct  7 10:52:31 sh dhcpd: No subnet declaration for eth0 (10.70.11.230).
Oct  7 10:52:31 sh dhcpd: ** Ignoring requests on eth0.  If this is not what
Oct  7 10:52:31 sh dhcpd:    you want, please write a subnet declaration
Oct  7 10:52:31 sh dhcpd:    in your dhcpd.conf file for the network segment
Oct  7 10:52:31 sh dhcpd:    to which interface eth0 is attached. **
Oct  7 10:52:31 sh dhcpd:
Oct  7 10:52:31 sh dhcpd:
Oct  7 10:52:31 sh dhcpd: Not configured to listen on any interfaces!
Oct  7 10:52:31 sh dhcpd:
Oct  7 10:52:31 sh dhcpd: This version of ISC DHCP is based on the release available
Oct  7 10:52:31 sh dhcpd: on ftp.isc.org.  Features have been added and other changes
Oct  7 10:52:31 sh dhcpd: have been made to the base software release in order to make
Oct  7 10:52:31 sh dhcpd: it work better with this distribution.
Oct  7 10:52:31 sh dhcpd:
Oct  7 10:52:31 sh dhcpd: Please report for this software via the CentOS Bugs Database:
Oct  7 10:52:31 sh dhcpd:     http://bugs.centos.org/
Oct  7 10:52:31 sh dhcpd:
Oct  7 10:52:31 sh dhcpd: exiting.

4、解决问题的方法

Centos dhcpd服务配置的时候一定要将本身IP地址划入DHCP分配范围

调整后的dhcpd.conf

option domain-name-servers  10.70.11.230;
default-lease-time 432000;   
max-lease-time 432000;
authoritative;
ddns-update-style none;

subnet 10.70.11.0 netmask 255.255.255.0{
       range dynamic-bootp 10.70.11.10 10.70.11.229;
       option broadcast-address 10.70.11.255;
       option routers 10.70.11.1;
}

subnet 10.70.12.0 netmask 255.255.255.0{
       range dynamic-bootp 10.70.12.10 10.70.12.229;
       option broadcast-address 10.70.12.255;
       option routers 10.70.12.1;
}

转载于:https://my.oschina.net/u/3702678/blog/1547257

centos dhcpd No subnet declaration 解决方法相关推荐

  1. centos /dev/mapper/cl-root 100% 解决方法

    centos /dev/mapper/cl-root 100% 解决方法 参考文章: (1)centos /dev/mapper/cl-root 100% 解决方法 (2)https://www.cn ...

  2. CentOS cannot change locale UTF-8解决方法及设置中文支持

    CentOS cannot change locale UTF-8解决方法及设置中文支持 原文链接:https://blog.csdn.net/wave_1102/article/details/45 ...

  3. centOS控制台字体太小解决方法

    centOS控制台,注意,不是图像界面的终端,其实无论控制台还是终端都可行.我用的是centos6.9,字体是一个我觉得很棒的terminus.解决正常分辨率下控制台字体太小的问题. 控制台字体不大是 ...

  4. CentOS时差8个小时解决方法

    (转载:https://www.cnblogs.com/itcomputer/p/6298618.html) CentOS系统时间与现在时间相差8小时解决方法 很多网友在安装完CentOS系统后发现时 ...

  5. linux centos rc.local 自启动无效 解决方法

    解决方法:加可执行权限 chmod +x /etc/rc.d/rc.local

  6. VMware新装CentOS无法连接外网解决方法

    1.进入root模式 su root 2.进入以下目录,找到以太网配置文件ifcfg-eno16777736(不同电脑后面的数字不同) cd /etc/sysconfig/network-script ...

  7. 腾讯云搭建 CentOS 可视化界面startx无效解决方法

    安装达梦数据库,一直报错 Failed to Initialize the GUI, if the current windows does not support the GUI, please e ...

  8. linux centos 使用 alpine 编译的二进制文件 报错 /lib/ld-musl-x86_64.so.1: bad ELF interpreter 解决方法

    CentOS 下如果直接使用 Alpine Linux 下编译的二进制文件,会报类似 ld-musl-x86_64.so.1: bad ELF interpreter 的错误 那么我们需要补一个mus ...

  9. Win7 + Linux(Centos)双系统无法打开Win7解决方法

    问题:用U盘装上linux系统后,开机时引导界面只有centos,没有window入口 解决方法: 步骤1. 先进入Linux 步骤2. bash shell(命令行)切换root账号 步骤3. 用编 ...

最新文章

  1. 从芯片巨头沦落到收购对象 高通是怎样失去魔力的?
  2. pytorch attention 注意力
  3. Paper:《Multimodal Machine Learning: A Survey and Taxonomy,多模态机器学习:综述与分类》翻译与解读
  4. 中邮智递通过数加和datav将系统和服务迁移到大数据平台
  5. Practice Lab 7:路由再分发
  6. 什么?你还不知道IDEA Debug界面的按钮都是干啥用的?快进来补补课~
  7. mysql update多表联合更新
  8. Simulink与Flightgear的倾转旋翼联合仿真
  9. dorado关于下拉框的的onSelect()方法
  10. 工程流体力学笔记暂记17(漩涡的基本概念+求解漩涡强度的斯托克斯定理)
  11. 有关串口、USB接口串联小电阻的对话
  12. word流程图两条线的端点连接_word 2013流程图连线 word流程图连线
  13. Linux嵌入式开发 -- imx6ull 主频配置
  14. (已解决)解决第三方平台访问Vue项目cue-router把#号变成百分号23导致项目404的问题
  15. Encoder-Decoder框架与Attention机制
  16. hadoop yarn web无法访问
  17. NVME之Device Self-test Operations
  18. python抓主力资金_【邢不行|量化小讲堂系列09-Python量化入门】通过逐笔数据计算主力资金流数据...
  19. 什么软件质量/如何评价软件的质量
  20. 提高复杂网络分析效率!中国科学家研发强化学习新框架

热门文章

  1. Java最低分_java 最高分最低分
  2. Windows作为操作系统的典型特征和主要功能
  3. win10打开计算机闪屏,求助,win10打开程序闪屏
  4. 8大电子印章常见问题,看这里!
  5. 高光时刻 | “吴文俊人工智能科学技术奖”十周年颁奖盛典
  6. mysql唯一性和主键区别_Mysql主键和唯一键的区别点总结
  7. Flutter 项目实战 拍照 | 打开相册 | 上传图片 八
  8. 【阅读笔记】End-to-End Learning for RIS-Aided Communication Systems
  9. dsge模型参数估计 matlab,DSGE求解和模型参数估计的一些认识
  10. 北京秋天里最美的落叶