[root@server log]# vi /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.1.0;
option subnet-mask 255.255.255.0;
option nis-domain "test.com";
option domain-name "test.com";
option domain-name-servers 192.168.1.99;
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 192.168.1.50 192.168.1.200;
# default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host apex {
hardware ethernet 00-1B-B9-5B-C7-4C;
fixed-address 192.168.1.111;
}
}
现在想通过IP绑定MAC,也就是说想绑定1.111的MAC地址。我的服务器是192.168.1.99
报错日志为:
Aug 26 19:19:50 server dhcpd: /etc/dhcpd.conf line 27: expecting numeric value.
Aug 26 19:19:50 server dhcpd: hardware ethernet 00-1B-B9-5B-C7-4C;
Aug 26 19:19:50 server dhcpd: ^
Aug 26 19:19:50 server dhcpd: Configuration file errors encountered -- exiting
Aug 26 19:19:50 server dhcpd:
Aug 26 19:19:50 server dhcpd: If you did not get this software from ftp.isc.org, please
Aug 26 19:19:50 server dhcpd: get the latest from ftp.isc.org and install that before
Aug 26 19:19:50 server dhcpd: requesting help.
Aug 26 19:19:50 server dhcpd:
Aug 26 19:19:50 server dhcpd: If you did get this software from ftp.isc.org and have not
Aug 26 19:19:50 server dhcpd: yet read the README, please read it before requesting help.
Aug 26 19:19:50 server dhcpd: If you intend to request help from the dhcp-server@isc.org
Aug 26 19:19:50 server dhcpd: mailing list, please read the section on the README about
Aug 26 19:19:50 server dhcpd: submitting bug reports and requests for help.
Aug 26 19:19:50 server dhcpd:
Aug 26 19:19:50 server dhcpd: Please do not under any circumstances send requests for
Aug 26 19:19:50 server dhcpd: help directly to the authors of this software - please
Aug 26 19:19:50 server dhcpd: send them to the appropriate mailing list as described in
Aug 26 19:19:50 server dhcpd: the README file.
Aug 26 19:19:50 server dhcpd:
Aug 26 19:19:50 server dhcpd: exiting.
Aug 26 19:19:50 server dhcpd: dhcpd startup failed
可是1.111机器上的MAC地址就是
00-1B-B9-5B-C7-4C这个啊,郁闷不得其解
明明配置正确,可是却老是报错,求解
- zjnx
- 帖子: 66
- 注册时间: 2006-04-03 11:27
- 联系: