LinuxSir.cn,穿越时空的Linuxsir!

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

关于dhcpd出错问题。

[复制链接]
发表于 2006-5-17 16:13:33 | 显示全部楼层 |阅读模式
不知道从什么时候开始,每次启动DHCPD都会在/tmp目录下出现这样的文件。
-rw-r--r-- 1 root root 163 May 17 16:01 /tmp/dhcpd3566.err
-rw-r--r-- 1 root root 163 May 16 14:04 /tmp/dhcpd6372.err
-rw-r--r-- 1 root root 163 May 16 14:04 /tmp/dhcpd6388.err
-rw-r--r-- 1 root root 163 May 16 15:48 /tmp/dhcpd7260.err
而且每个文件内容都是一样
如下:
Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

而DHCP可以正常启动
May 17 16:05:47 ez08 dhcpd: Copyright 2004 Internet Systems Consortium.
May 17 16:05:47 ez08 dhcpd: All rights reserved.
May 17 16:05:47 ez08 dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
May 17 16:05:47 ez08 dhcpd: Wrote 0 deleted host decls to leases file.
May 17 16:05:47 ez08 dhcpd: Wrote 0 new dynamic host decls to leases file.
May 17 16:05:47 ez08 dhcpd: Wrote 0 leases to leases file.
May 17 16:05:47 ez08 dhcpd: Listening on LPF/eth0/00:e0:4c:8a:37:54/192.168.8.0/24
May 17 16:05:47 ez08 dhcpd: Sending on   LPF/eth0/00:e0:4c:8a:37:54/192.168.8.0/24
May 17 16:05:47 ez08 dhcpd: Sending on   Socket/fallback/fallback-net
May 17 16:05:47 ez08 dhcpd: dhcpd startup succeeded


我的dhcpd的配置文件如下
ddns-update-style interim;
ignore client-updates;
####################boot
allow booting;
allow bootp;
class "pxeclients" {
match if substring(option vendor-class-identifier, 0, 9) = "XEClient";
next-server 192.168.8.19;
filename "linux-install/pxelinux.0";
}
###################
subnet 192.168.8.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.8.11;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.8.11,192.168.8.10;
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 192.168.8.190 192.168.8.200;

host u2 {
hardware ethernet 00:118:58:6D:F8;
fixed-address 192.168.8.199;
filename "linux-install/pxelinux.0";
}
}


目前情况:
虽然DHCP 可以正常启动,并且对硬盘的PC可以正确分配地址,但对于无盘的,却无法得到DHCP相应提示错误如下

PXE-E61: Media test failure, check cable
PXE-M0F: Exiting PXE ROM

可以肯定的是网卡是可以上网的,因为我连过硬盘,可以上。

不知道谁可以解救我?!
 楼主| 发表于 2006-5-17 16:16:56 | 显示全部楼层
硬盘分配地址的日志
May 17 16:14:47 ez08 dhcpd: DHCPDISCOVER from 00:11:d8:58:6d:f8 via eth0
May 17 16:14:47 ez08 dhcpd: DHCPOFFER on 192.168.8.199 to 00:11:d8:58:6d:f8 via eth0
May 17 16:14:47 ez08 dhcpd: DHCPREQUEST for 192.168.8.253 (192.168.8.10) from 00:11:d8:58:6d:f8 via eth0: lease 192.168.8.253 unavailable.
May 17 16:14:47 ez08 dhcpd: DHCPNAK on 192.168.8.253 to 00:11:d8:58:6d:f8 via eth0
May 17 16:14:47 ez08 dhcpd: DHCPDISCOVER from 00:11:d8:58:6d:f8 via eth0
May 17 16:14:47 ez08 dhcpd: DHCPOFFER on 192.168.8.199 to 00:11:d8:58:6d:f8 via eth0
May 17 16:14:47 ez08 dhcpd: Dynamic and static leases present for 192.168.8.199.
May 17 16:14:47 ez08 dhcpd: Remove host declaration u2 or remove 192.168.8.199
May 17 16:14:47 ez08 dhcpd: from the dynamic address pool for 192.168.8.0/24
May 17 16:14:47 ez08 dhcpd: DHCPREQUEST for 192.168.8.199 (192.168.8.148) from 00:11:d8:58:6d:f8 via eth0
May 17 16:14:47 ez08 dhcpd: DHCPACK on 192.168.8.199 to 00:11:d8:58:6d:f8 via eth0
回复 支持 反对

使用道具 举报

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

本版积分规则

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