LinuxSir.cn,穿越时空的Linuxsir!

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

搞了一天的dhcp,晕了,救我. fc4

[复制链接]
发表于 2005-10-27 16:13:31 | 显示全部楼层 |阅读模式
/etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;

subnet 10.24.27.0 netmask 255.255.255.0 {

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

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

        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.24.27.128 10.24.27.254;
        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;
        }
}


dhcpd start 时 提示
dhcpd start
Internet Systems Consortium DHCP Server V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.

No subnet declaration for start (0.0.0.0).
** Ignoring requests on start.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface start 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 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.
 楼主| 发表于 2005-10-31 09:25:56 | 显示全部楼层
我的dhcp 照上面的设置必须在终端下用 dhcpd 才能启动,用 ps -ax 可以看到 dhcpd 已启动,在fc4下的图形 服务配置 给dhcpd 打上勾 不能自动启动,并且点击 开始 出现提示说启动错误,但是停止服务必须用 服务配置 停止才能停止, 并且dhcpd 启动后几分钟内客户端能获得dhcp,时间一长就不行了,得不到dhcp了,这是怎么回事.
回复 支持 反对

使用道具 举报

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

本版积分规则

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