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

由 haod 在 09-26-2004 07:01 发表:

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

怎么配也 不行,跪求高手看看:

配置为:

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 [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.

我自己弄了 一周了 ,就是不好用,请高手看看,给点意见~~!!~~!!


由 haod 在 09-26-2004 07:02 发表:


我是参照/usr/share/doc/howto/en/html/DHCP/x369.html 改的。系统为suse9


由 blackwhite 在 09-26-2004 09:21 发表:


你有两个网卡吧?这个是因为你没有指定DHCPD的网卡界面。

http://www.douzhe.com/docs/RH9/rhl-...ing-server.html


由 haod 在 09-26-2004 10:26 发表:


我只有一个网卡呀。


由 th0ri4 在 09-26-2004 11:21 发表:


配置一个虚拟接口

ifconfig eth0:0 192.168.0.*

然后再试,你的本地网络接口地址不匹配.


What makes lift dreary is the want of motive.


由 th0ri4 在 09-26-2004 11:22 发表:


ifconfig eth0:0 192.168.1.*

看错了,不好意思.


What makes lift dreary is the want of motive.


由 haod 在 09-26-2004 12:03 发表:


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


由 haod 在 09-26-2004 12:04 发表:


用ROOT用户的打入ifconfig eth0:0192.168.1.*

没有反映~~


由 haod 在 09-26-2004 15:42 发表:


linux:/home/haod # ifconfig eth0:0 192.168.1.*

192.168.1.*: 未知的主机

ifconfig: `--help' gives usage information.


由 haod 在 09-26-2004 16:00 发表:


我服了 ,嗷嗷的 ~~~~

怎么会又出现这个错误:

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.

可是这个文件一直存在呀老大~~~


由 th0ri4 在 09-26-2004 18:40 发表:


晕ing

*是通配符,替换为1-254的数字.

cheers


What makes lift dreary is the want of motive.


由 th0ri4 在 09-26-2004 18:41 发表:


权限不够,su一下.

<font face="腩戾,verdana, arial, helvetica

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus