LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 728|回复: 1

配置dhcp服务,出现不明信息?

[复制链接]
发表于 2003-11-5 23:44:01 | 显示全部楼层 |阅读模式
配置dhcp.conf格式为:
subnet 219.245.36.0 netmask 255.255.255.0{
        option routers 219.245.36.1;
        option subnet-mask 255.255.255.0;
        option domain-name "xjtu.edu.cn";
        option domain-name-servers 202.117.0.20,202.117.0.21;
        range dynamic-bootp 219.245.36.161 219.245.36.161;
        default-lease-time 1200;
        max-lease-time 87600;
        ddns-update-style ad-hoc;
}
执行#//etc/rc.d/init.d/dhcpd restart
出现
root@Hero root]# /etc/rc.d/init.d/dhcpd restart
关闭 dhcpd:                                               [失败]
启动 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

** You must add a ddns-update-style statement to /etc/dhcpd.conf.
   To get the same behaviour as in 3.0b2pl11 and previous
   versions, add a line that says "ddns-update-style ad-hoc;"
   Please read the dhcpd.conf manual page for more information. **

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.
不知是什么原因?
发表于 2003-11-6 00:53:41 | 显示全部楼层
格式不对,给个例子:

ddns-update-style interim;
ignore client-updates;

subnet 172.31.12.0 netmask 255.255.255.0 {

# --- default gateway
option routers 172.31.12.199;
option subnet-mask 255.255.255.0;

# option nis-domain "domain.org";
option domain-name "fog-ibm.suzhou";
option domain-name-servers 172.31.12.199;

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). Dont change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range 172.31.12.200 172.31.12.210;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
#host station2 {
#hardware ethernet 00:E0:4E:E8:9B:BC;
#fixed-address 192.168.0.2;
#}
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表