centos 6.0 dhcp 报错及解决

1.安装centos 6.0 dhcp 服务

 [[email protected] ~]#   yum install dhcp -y 
Centos6,安装的时候出现,
Transaction Check Error:
  file /usr/share/man/man5/dhcp-eval.5.gz from install of dhcp-common-12:4.1.1-43.P1.el6.centos.i686 conflicts with file from package dhclient-12:4.1.1-12.P1.el6.i686
  file /usr/share/man/man5/dhcp-options.5.gz from install of dhcp-common-12:4.1.1-43.P1.el6.centos.i686 conflicts with file from package dhclient-12:4.1.1-12.P1.el6.i686
Error Summary

发现dhclient有冲突,yum remove dhclient,连带的NetworkManager也卸载了。

 [[email protected] ~]#   yum install dhcp -y  成功安装
[[email protected] ~]# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf

[[email protected] ~]# /etc/init.d/dhcpd restart

正在启动 dhcpd:                                           [失败]

[[email protected] ~]# tail -l /var/log/messages
Feb  2 21:09:23 localhost dhcpd:
Feb  2 21:09:23 localhost dhcpd: This version of ISC DHCP is based on the release available
Feb  2 21:09:23 localhost dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  2 21:09:23 localhost dhcpd: have been made to the base software release in order to make
Feb  2 21:09:23 localhost dhcpd: it work better with this distribution.
Feb  2 21:09:23 localhost dhcpd:
Feb  2 21:09:23 localhost dhcpd: Please report for this software via the CentOS Bugs Database:
Feb  2 21:09:23 localhost dhcpd:     http://bugs.centos.org/
Feb  2 21:09:23 localhost dhcpd:
Feb  2 21:09:23 localhost dhcpd: exiting.

以上没有日志找不出什么问题,然后调试命令看看哪里报错了!

[[email protected] ~]#  /usr/sbin/dhcpd restart   #调试命令
Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp/dhcpd.conf line 114: 192.168.20.10 (262): expecting IP address or hostname
  next-server "192.168.20.10"
               ^
/etc/dhcp/dhcpd.conf line 114: expecting a parameter or declaration
  next-server "192.168.20.10";
                             ^
/etc/dhcp/dhcpd.conf line 115: unexpected end of file
^
Configuration file errors encountered -- exiting
This version of ISC DHCP is based on the release available
on ftp.isc.org.  Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.
Please report for this software via the CentOS Bugs Database:
    http://bugs.centos.org/
exiting.
[[email protected] ~]# vi /etc/dhcp/dhcpd.conf  # 配置如下
subnet 192.168.20.0 netmask 255.255.255.0 {
  range 192.168.20.100 192.168.20.200;
  option domain-name-servers ns1.internal.example.org;
  option domain-name "internal.example.org";
  option routers 192.168.20.10;
  option broadcast-address 192.168.20.255;
  default-lease-time 600;
  max-lease-time 7200;
  filename "pxelinux.0";
  next-server 192.168.20.10; 这里不需要双引号
}
时间: 2024-08-05 01:41:31

centos 6.0 dhcp 报错及解决的相关文章

未能加载文件或程序集 Newtonsoft.Json, Version=4.5.0.0 的报错,解决方法

使用httpclient测试webapi的时候客户端报错: {"未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项.找到的程序集清单定义与程序集引用不匹配. (异常来自 HRESULT:0x80131040)":"Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, Publ

Win7_64位MyEclipse2015以yarn-client提交spark到CDH5.10.0任务报错及解决方法

CDH版本:5.10.0 IDE环境:win7 64位 MyEclipse2015 spark模式:yarn 提交模式:yarn-client 之前同样的IDE环境下,向alone模式的spark提交任务,一直很顺利,今天测了一下spark on yarn模式,提交只能是yarn-client模式,其它基本不变,只是换了模式,结果出现下面错误: java.io.IOException: Cannot run program "/etc/hadoop/conf.cloudera.yarn/topo

CentOS7.0开机报错“piix4_smbus”和“dev fd0”的解决办法

系统:CentOS 7.0 X64 报错现象: 此问题包含了两个错误: 错误1: piix4_smbus host smbus controller not enabled 修改办法: [[email protected] ~]# lsmod | grep i2c i2c_piix4              22106  0  i2c_core               40325  2 drm,i2c_piix4 [[email protected] ~]# vi /etc/modprob

centos编译libpng报错,解决方法

/usr/local/lib/libz.a: could not read symbols: Bad value 一般是64 位 电脑才会出现. 解决方法如下: 1 cd zlib-1.2.3 //进入zlib目录 2 3 CFLAGS="-O3 -fPIC" ./configure //使用64位元的方法进行编译 4 5 make 6 7 make install 8 9 make clean centos编译libpng报错,解决方法,布布扣,bubuko.com

Centos 6.5 启动DHCP报错 Can't chown new lease file: Operation not permitted

在使用centos 6.5安装DHCP时,配置已经全部ok,但在启动服务时报错 message" Can't chown new lease file: Operation not permitted" 服务无法正常启动, 在6.5中多了一个配置要修改,如下: 编辑 /etc/rc.d/init.d/dhcpd 文件,将其中的 user=dhcpd group=dhcpd 改为 user=root group=root 注: 如果不做此修改,启动DHCP时在 "/var/lo

mysql8.0+运行报错The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. 解决办法

话不多说,从错误即可知道是时区的错误,因此只要将时区设置为你当前系统时区即可, 因此使用root用户登录mysql,按照如下图所示操作即可. 我电脑的系统为北京时区,因此在系统中设置后,再连接数据库运行,一切OK! mysql8.0+运行报错The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. 解决办法 原文地址:https://www.cnblogs.co

Jexus System.MissingMethodException: Method 'System.Web.Hosting.HostingEnvironment.set_IsHosted' not found 报错的解决

看到大家都尝试Jexus以及dotnetcore,再加上新租了腾讯云的centos linux云服务器,决定要把公司比较简单的提供升级下载的网站部署到linux下试一下. 按照ASP.NET跨平台实践:无需安装Mono的Jexus“独立版” 的方法安装好Jexus . 部署网站,访问网站时下出现错误System.MissingMethodException: Method 'System.Web.Hosting.HostingEnvironment.set_IsHosted' not found

centOS下进入mysql报错-You must SET PASSWORD before executing this statement

解决办法: mysql>  SET PASSWORD = PASSWORD('123456'); Query OK, 0 rows affected (0.03 sec) mysql> create database roger; Query OK, 1 row affected (0.00 sec) 也就是用mysql>  SET PASSWORD = PASSWORD('123456');这句话重新设置一次密码! centOS下进入mysql报错-You must SET PASSW

Can't bind to local 8700 for debugger报错和解决

[2016-02-15 22:37:17 - ddms] Can't bind to local 8700 for debugger报错和解决 1.打开studio monitor是出错: Can't bind to local 8700 for debugger 2.netstat -apn |grep 8700(或者netstat -apo|findstr 8700)查询,得到的结果是: tcp6 0 0 123.0.0.1:8700  :::*     LISTEN   3665/java