免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1473 | 回复: 6
打印 上一主题 下一主题

redhat 配置dhcp出现问题 求解决 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-05-14 18:47 |只看该作者 |倒序浏览
[root@cj root]# service dhcpd start
dhcpd:Internet Software Consortium DHCP Server V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.

Not configured to listen on any interfaces!


If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
                                                           [失败]

论坛徽章:
0
2 [报告]
发表于 2011-05-14 18:53 |只看该作者
把配置贴出来吧。。

论坛徽章:
0
3 [报告]
发表于 2011-05-14 19:02 |只看该作者
启动dhcpd系统服务:chkconfig dhcpd on
编辑dhcpd.conf文件:vi /etc/dhcpd.conf
启动DHCP服务器:service dhcpd start
dhcpd.conf文件内容如下:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.31.0 netmask 255.255.255.0 {
option routers192.168.31.1;  
option subnet-mask 255.255.255.0;
option domain-name "example.com";
option domain-name-servers 192.168.31.2;
option time-offset  -18000;
range dynamic-bootp 192.168.31.20 192.168.31.100;
default-lease-time 21600;
max-lease-time 43200;
host ns {
hardware ethernet 12:34:56:78:AB:CD
fixed-address 192.168.31.50;
option domain-name-servers 192.168.31.5;
       }
}
redhat安装在虚拟机中,请问一下虚拟机中是否还配置什么?

论坛徽章:
0
4 [报告]
发表于 2011-05-14 20:08 |只看该作者
回复 3# oscar16


    routers 后面有空格吧

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
5 [报告]
发表于 2011-05-14 22:26 |只看该作者
routers后面少一个空格

论坛徽章:
0
6 [报告]
发表于 2011-05-15 08:39 |只看该作者
把配置贴出来吧。。

论坛徽章:
0
7 [报告]
发表于 2011-05-15 10:58 |只看该作者
有测试配置文件的命令的
  1. dhcpd3 -t -cf /config/file/path
复制代码
有什么错误的地方会很明显的告诉你在第几行出错的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP