关于dhcp中继-现在先不说中继怎么配置,先帮忙看看配置文件哪里有问题
时间:2011-08-11
来源:互联网
现需要dhcp服务器为10.0.0.0/24网段和20.0.0.0/24网段分配ip
我在dhcp服务器装好了dhcpd,但dhcpd服务怎么也起不来,望高人看一下/etc/dhcpd.conf文件和日志,现在先不说中继怎么配置,先帮忙看看配置文件哪里有问题。我没有dns服务器,但应该不是这个问题吧??
/etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 10.0.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 10.0.0.254;
option subnet-mask 255.255.255.0;
range 10.0.0.2 10.0.0.99
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 10.0.0.100;
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.0.0.2 10.0.0.99;
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;
# }
}
subnet 20.0.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 20.0.0.254;
option subnet-mask 255.255.255.0;
range 20.0.0.2 20.0.0.99
option nis-domain "aa.com";
option domain-name "aa.com";
option domain-name-servers 20.0.0.100;
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 20.0.0.2 20.0.0.99;
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;
# }
}
错误日志:
Aug 11 03:56:14 localhost dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Aug 11 03:56:14 localhost dhcpd: /etc/dhcpd.conf line 11: semicolon expected.
Aug 11 03:56:14 localhost dhcpd: option
Aug 11 03:56:14 localhost dhcpd: ^
Aug 11 03:56:14 localhost dhcpd: /etc/dhcpd.conf line 41: semicolon expected.
Aug 11 03:56:14 localhost dhcpd: option
Aug 11 03:56:14 localhost dhcpd: ^
Aug 11 03:56:14 localhost dhcpd: Configuration file errors encountered -- exiting
貌似是说期望一个分号,可我这明明有分号啊
作者: ourstory 发布时间: 2011-08-11
[ 本帖最后由 摇滚风 于 2011-8-11 09:03 编辑 ]
作者: 摇滚风 发布时间: 2011-08-11
作者: 摇滚风 发布时间: 2011-08-11
作者: ourstory 发布时间: 2011-08-11
作者: ourstory 发布时间: 2011-08-11
作者: ourstory 发布时间: 2011-08-11
作者: dn833 发布时间: 2011-08-11
作者: ourstory 发布时间: 2011-08-11
作者: jie071218 发布时间: 2011-08-11
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28