免费注册 查看新帖 |

Chinaunix

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

帮我看看错在哪里?《dhcp》 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-16 10:50 |只看该作者 |倒序浏览
ddns-update-style interim;
ignore client-updates;

subnet 10.13.116.210 netmask 255.255.252.0 {

# --- default gateway
option routers 10.13.119.254;
option subnet-mask 255.255.252.0;

option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 202.96.128.166;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 10.13.116.20 10.13.116.240;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}

论坛徽章:
0
2 [报告]
发表于 2008-12-16 10:51 |只看该作者
ip是10.13.116.···
网关10.13.119.254
dns202.96.128.166

论坛徽章:
0
3 [报告]
发表于 2008-12-16 10:57 |只看该作者

回复 #1 bullef 的帖子

host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
这些注释掉

论坛徽章:
0
4 [报告]
发表于 2008-12-16 15:17 |只看该作者
ddns-update-style interim;
ignore client-updates;

subnet 10.13.116.210 netmask 255.255.252.0 {

# --- default gateway
option routers 10.13.119.254;
option subnet-mask 255.255.252.0;

option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 202.96.128.166;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 10.13.116.20 10.13.116.240;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
#host ns {
#next-server marvin.redhat.com;
#hardware ethernet 12:34:56:78:AB:CD;
#fixed-address 207.175.42.254;
}
}






但是启动时弹出
root@localhost ~]# service dhcpd resatra
dhcpd: unrecognized service
[root@localhost ~]#

如何解决啊

论坛徽章:
34
亥猪
日期:2015-03-20 13:55:11戌狗
日期:2015-03-20 13:57:01酉鸡
日期:2015-03-20 14:03:56未羊
日期:2015-03-20 14:18:30子鼠
日期:2015-03-20 14:20:14丑牛
日期:2015-03-20 14:20:31辰龙
日期:2015-03-20 14:35:34巳蛇
日期:2015-03-20 14:35:56操作系统版块每日发帖之星
日期:2015-11-06 06:20:00操作系统版块每日发帖之星
日期:2015-11-08 06:20:00操作系统版块每日发帖之星
日期:2015-11-19 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13
5 [报告]
发表于 2008-12-16 18:26 |只看该作者

回复 #4 bullef 的帖子

看看 /etc/init.d/ 里面有没有 dhcpd,service 调用的都是这儿的启动脚本。
ps: resatra 是什么东西啊?

论坛徽章:
0
6 [报告]
发表于 2008-12-16 18:33 |只看该作者
没认出服务来
/etc/init.d/dhcpd restart这样试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP