LinuxSir.cn,穿越时空的Linuxsir!

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

dhcp问题 ~ 老大我都哭了 ~~~

[复制链接]
发表于 2004-9-26 07:01:44 | 显示全部楼层 |阅读模式
怎么配也 不行,跪求高手看看:

配置为:
option domain-name "linux";
option domain-name-servers 192.168.1.1, 192.168.1.2;
option routers 192.168.1.254;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
ddns-update-style none;
default-lease-time 600;
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.10 192.168.1.100;
  max-lease-time 72000;
}

错误报告为:
linux:~ # /usr/sbin/dhcpd
Internet Software Consortium DHCP Server V3.0.1rc13
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.

No subnet declaration for eth0 (219.148.133.140).
** 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 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.

我自己弄了 一周了 ,就是不好用,请高手看看,给点意见~~!!~~!!
 楼主| 发表于 2004-9-26 07:02:47 | 显示全部楼层
我是参照/usr/share/doc/howto/en/html/DHCP/x369.html 改的。系统为suse9
发表于 2004-9-26 09:21:42 | 显示全部楼层
你有两个网卡吧?这个是因为你没有指定DHCPD的网卡界面。
http://www.douzhe.com/docs/RH9/r ... iguring-server.html
 楼主| 发表于 2004-9-26 10:26:45 | 显示全部楼层
我只有一个网卡呀。
发表于 2004-9-26 11:21:38 | 显示全部楼层
配置一个虚拟接口

ifconfig eth0:0 192.168.0.*
然后再试,你的本地网络接口地址不匹配.
发表于 2004-9-26 11:22:56 | 显示全部楼层
ifconfig eth0:0 192.168.1.*

看错了,不好意思.
 楼主| 发表于 2004-9-26 12:03:54 | 显示全部楼层
linux:/home/haod # ifconfig eth0:0192.168.1.*
eth0:0192 Link encap:Ethernet  HWaddr 00:0A:EB:0C:39:4D
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xbf00
 楼主| 发表于 2004-9-26 12:04:57 | 显示全部楼层
用ROOT用户的打入ifconfig eth0:0192.168.1.*
没有反映~~
 楼主| 发表于 2004-9-26 15:42:01 | 显示全部楼层
linux:/home/haod # ifconfig eth0:0 192.168.1.*
192.168.1.*: 未知的主机
ifconfig: `--help' gives usage information.
 楼主| 发表于 2004-9-26 16:00:03 | 显示全部楼层
我服了 ,嗷嗷的 ~~~~
怎么会又出现这个错误:
haod@linux:~> /usr/sbin/dhcpd
Internet Software Consortium DHCP Server V3.0.1rc13
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
unable to create icmp socket: Operation not permitted
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Can't open /var/lib/dhcp/db/dhcpd.leases for append.

可是这个文件一直存在呀老大~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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