- 论坛徽章:
- 0
|
大侠帮忙啊,郁闷了好几天了
我配置ddns,dns部分配置正常通过,而dhcp 部分报错,我的配置文件如下:dhcpd.conf
ddns-update-style interim;
ignore client-updates;
key wgzddns {
algorithm HMAC-MD5;
secret fDlgh+lCpcZOJ9P/wupblD6Fwb1KRXLNDBCOCWQu+Mw=;
};
zone abc.com. {
primary 127.0.0.1;
key wgzddns;
}
zone 140.98.10.in-addr.arpa. {
primary 127.0.0.1;
key wgzddns;
}
subnet 10.98.140.0 netmask 255.255.255.0 {
range 10.98.140.100 10.98.140.200;
option routers 10.98.140.254;
option subnet-mask 255.255.255.0;
option domain-name "abc.com";
option domain-name-servers 10.98.140.18,10.98.140.4;
default-lease-time 6000;
max-lease-time 12000;
}
系统报错如下:
[root@db etc]# /etc/rc.d/init.d/dhcpd start
Starting dhcpd: Internet Software Consortium DHCP Server 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.
Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html
/etc/dhcpd.conf line 1: expecting a parameter or declaration.
ddns-update-style
^
/etc/dhcpd.conf line 2: expecting a parameter or declaration.
ignore
^
/etc/dhcpd.conf line 3: expecting a parameter or declaration.
key
^
/etc/dhcpd.conf line 6: expecting a parameter or declaration.
};
^
/etc/dhcpd.conf line 11: expecting a parameter or declaration.
zone
^
Configuration file errors encountered -- exiting
exiting.
[FAILED] |
|