swiftsunshine 2014-04-19 08:27 采纳率: 0%
浏览 4258

centos6.0 中的dhcp服务无法开启

[root@localhost ~]# service dhcpd start
Starting dhcpd: [FAILED]
[root@localhost ~]# tail -f /var/log/messages
Apr 19 06:52:23 localhost dhcpd:
Apr 19 06:52:23 localhost dhcpd: This version of ISC DHCP is based on the release available
Apr 19 06:52:23 localhost dhcpd: on ftp.isc.org. Features have been added and other changes
Apr 19 06:52:23 localhost dhcpd: have been made to the base software release in order to make
Apr 19 06:52:23 localhost dhcpd: it work better with this distribution.
Apr 19 06:52:23 localhost dhcpd:
Apr 19 06:52:23 localhost dhcpd: Please report for this software via the CentOS Bugs Database:
Apr 19 06:52:23 localhost dhcpd: http://bugs.centos.org/
Apr 19 06:52:23 localhost dhcpd:
Apr 19 06:52:23 localhost dhcpd: exiting.

/etc/dhcpd.conf的具体配置如下

ddns-update-style none;
subnet 192.168.137.0 netmask 255.255.255.0{
option routers 192.168.137.4;
option subnet-mask 255.255.255.0;
option domain-name mycentos;
option domain-name-servers 200.3.4.10, 200.3.4.20;

range 192.168.137.81 192.168.137.200;
default-lease-time 86400;
max-lease-time 172000;
}
望高手解答,小弟在此谢过

  • 写回答

2条回答

  • Mr-稻帅 2014-04-23 04:25
    关注

    ddns-update-style interim;

    ignore client-updates;

    allow booting;

    allow bootp;

    subnet 192.168.1.0 netmask 255.255.255.0

    {

    range dynamic-bootp 192.168.1.10 192.168.1.80; #这边的ip为需要广播的ip范围,看需要网络安装的计算机数量

    option rooters 192.168.1.201; #填写网关地址

    option subnet-mask 255.255.255.0; #子网掩码

    option broadcask-address 192.168.1.255;

    default-lease-time 21600;

    max-lease-time 43200;

    next-server 192.168.1.92; #tftp的ip地址

    filename "pxelinux.0";

    }

    对比试一下。。这个是我自己的linux dhcp的配置,可以正常启动的。。

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题