QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 677|回复: 1

求助:dhcp启动不了

[复制链接]
发表于 2004-9-5 16:20:45 | 显示全部楼层 |阅读模式
dhcp.conf文件如下
ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {


range 192.168.0.10 192.168.0.15;
# --- default gateway
option routers 219.243.36.1;
option subnet-mask 255.255.255.0;

option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 202.113.15.2;

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.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;

}













启动时出错,显示如下:

Starting dhcpd: Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.

No subnet declaration for eth0 (219.243.36.152).
** Ignoring requests on eth0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0 is attached. **


Not configured to listen on any interfaces!

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 [email protected]
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.


我是第一次用
求救高手
发表于 2004-9-7 09:54:04 | 显示全部楼层
你分配的IP也太少了吧?从10-15,还不如手动分配。另外你的网关也不对。
这个是我在RH8下面写的,你看看能不能用上

subnet 192.168.0.0 netmask 255.255.255.0 {
#当地电信DNS地址
        option domain-name-servers 202.113.15.2;
#广播地址
        option broadcast-address 192.168.0.255;
#子网掩码
        option subnet-mask 255.255.255.0;
#默认网关
        option routers 192.168.0.1;
#租期
        max-lease-time 259200;
        default-lease-time 28800;
#动态分配的IP范围
        range 192.168.0.10 192.168.30.200;
        }
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-7 19:17 , Processed in 0.069866 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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