DHCP服务器的设置问题,请教大家

由 ghost_diy 在 01-08-2003 18:30 发表:

DHCP服务器的设置问题,请教大家

有一台linux主机,一块网卡,网络配置为:

ip:10.165.1.130

netmask:255.255.255.0

gateway:10.165.1.254

现在想用它来做DHCP服务器,dhcpd.conf文件如下:

ddns-update-style ad-hoc;

default-lease-time 600;

max-lease-time 7200;

option subnet-mask 255.255.255.0;

option broadcast-address 192.168.1.255;

option routers 192.168.1.254;

option domain-name-servers 192.168.1.1,192.168.1.2;

allow unknown-clients;

subnet 10.165.1.0 netmask 255.255.255.0 {

}

subnet 192.168.1.0 netmask 255.255.255.0 {

range 192.168.1.10 192.168.1.100;

range 192.168.1.150 192.168.1.200;

}

/usr/sbin/dhcpd -d -f

启动,有以下信息:

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

Wrote 0 leases to leases file.

Listening on LPF/eth0/00:06:5b:2c:27:f1/10.165.1.0/24

Sending on LPF/eth0/00:06:5b:2c:27:f1/10.165.1.0/24

Sending on Socket/fallback/fallback-net

当有客户请求时,却出现以下出错信息:

DHCPREQUEST for 192.168.0.251 from 00:50:56:40:5c:7c via eth0: ignored (not authoritative).

DHCPREQUEST for 192.168.0.251 from 00:50:56:40:5c:7c via eth0: ignored (not authoritative).

DHCPREQUEST for 192.168.0.251 from 00:50:56:40:5c:7c via eth0: ignored (not authoritative).

DHCPREQUEST for 192.168.0.4 from 00:e0:4c:62:17:71 via eth0: ignored (not authoritative).

DHCPREQUEST for 192.168.0.4 from 00:e0:4c:62:17:71 via eth0: ignored (not authoritative).

DHCPDISCOVER from 00:50:56:40:5c:7c via eth0: network 10.165.1.0/24: no free leases

DHCPDISCOVER from 00:50:56:40:5c:7c via eth0: network 10.165.1.0/24: no free leases

DHCPDISCOVER from 00:50:56:40:5c:7c via eth0: network 10.165.1.0/24: no free leases

DHCPDISCOVER from 00:50:56:40:5c:7c via eth0: network 10.165.1.0/24: no free leases

DHCPDISCOVER from 00:50:56:40:5c:7c via eth0: network 10.165.1.0/24: no free leases

客户机也无法获得ip地址,这是什么问题?


由 ghost_diy 在 01-09-2003 09:38 发表:

难道真的没人知道吗?

我的确是没办法了,那位知道啊?


由 jamlee800 在 01-09-2003 11:10 发表:


广播路由做没有


由 ghost_diy 在 01-09-2003 11:38 发表:


你说这个是吧:

route add -host 255.255.255.255 dev eth0

看我的路由表:

Kernel IP routing table

Destination Gateway Genmask Flags

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