免费注册 查看新帖 |

Chinaunix

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

求助 DHCP配制出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-12 10:59 |只看该作者 |倒序浏览
兄弟我配了个DHCP,一起服务就报错,配制如下:
ddns-update-style interim;
ignore client-updates;
                                                                                                               
subnet 192.168.0.0 netmask 255.255.255.0 {
                                                                                                               
   default gateway
        option routers                  192.168.0.1;
        option subnet-mask              255.255.255.0;
                                                                                                               
                                                                                                               
#       option domain-name              "example.com";
#       option domain-name-servers      192.168.0.1,192.168.0.2;
                                                                                                               
        option time-offset              -18000; # Eastern Standard Time
#       op
#       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 192.168.0.100 192.168.0.250;
        range dynamic-bootp 192.168.0.10 192.168.0.90;
        default-lease-time 21600;
        max-lease-time 43200;
                                                                                                               
                                                                                                               
        host ns {
                hardware ethernet 12:34:56:78:AB:CD;
                fixed-address 192.168.0.4;
     }


报错信息如下:
[root@learnlinux etc]# 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
/etc/dhcpd.conf line 6: no option named gateway
   default gateway
           ^
/etc/dhcpd.conf line 31: expecting a declaration

^
/etc/dhcpd.conf line 33: expecting a declaration
}
^
/etc/dhcpd.conf line 34: expecting a declaration
}
^
Configuration file errors encountered -- exiting

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 [报告]
发表于 2006-06-12 16:07 |只看该作者
最后少了一个 { ?

论坛徽章:
0
3 [报告]
发表于 2006-06-12 16:08 |只看该作者
这一行有错,少了一个 #

# default gateway

最后少了一个 } ?

论坛徽章:
0
4 [报告]
发表于 2006-06-13 16:35 |只看该作者
谢谢各位大侠,问题以解决,以后,少不了麻烦个位。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP