QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 766|回复: 2

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

[复制链接]
发表于 2003-1-8 12:15:11 | 显示全部楼层 |阅读模式
有一台linux主机,一块网卡,网络配置为:  
[code:1]ip:10.165.1.130
netmask:255.255.255.0
gateway:10.165.1.254              [/code:1]

现在想用它来做DHCP服务器,dhcpd.conf文件如下:
[code:1]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;
}[/code:1]

用 [code:1]/usr/sbin/dhcpd -d -f[/code:1]
启动,有以下信息:
[code:1]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[/code:1]


当有客户请求时,却出现以下出错信息:
[code:1]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[/code:1]


客户机也无法获得ip地址,这是什么问题?
发表于 2003-1-25 12:54:48 | 显示全部楼层
好像是要设定虚拟网卡.没有没有设定.
回复

使用道具 举报

发表于 2003-1-25 13:26:24 | 显示全部楼层
Sending on   Socket/fallback/fallback-net
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-17 11:57 , Processed in 0.052499 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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