求助:刚刚还好,重启以后DHCP启动失败了(RedHat9.0)
各位大侠:
我在新装的RedHat9.0系统下为DHCP做配置,DHCP server成功启动,在client 端也收到了动态IP。但是,服务器重启登陆后,发现DHCP总是『Fail』。十分不解!
开始的配置工作:
1. RedHat9.0安装时选择了安装network servers里dhcpd和pxe
2. 关了防火墙
3. #ifconfig eth0 192.168.1.100
4. 配置/etc/dhcpd.conf:
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr code 7 = ip-address;
class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "XEClient";
option vendor-class-identifier "XEClient";
vendor-option-space PXE;
# At least one of the vendor-specific PXE options must be set in
# order for the client boot ROMs to realize that we are a PXE-compliant
# server. We set the MCAST IP address to 0.0.0.0 to tell the boot ROM
# that we can't provide multicast TFTP (address 0.0.0.0 means no address).
option PXE.mtftp-ip 0.0.0.0;
# This is the name of the file the boot ROMs should download.
filename "/tftpboot/pxelinux.0";
# This is the name of the server they should get it from.
next-server 192.168.1.100;
}
ddns-update-style interim;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.201 192.168.1.220;
default-lease-time 86400;
max-lease-time 86400;
option routers 192.168.1.1;
option ip-forwarding off;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.100;
option ntp-servers 192.168.1.100;
option netbios-name-servers 192.168.1.100;
# we want the nameserver to appear at a fixed address
host gms {
hardware ethernet 00:0A:EB:7B:2C:AD;
fixed-address 192.168.1.222;
}
}
5.#touch /var/lib/dhcp/dhcpd.leases
6.#chkconfig dhcpd on
7.把/usr/lib/syslinux/pxelinux.0 复制到/tftpboot下
8.把RedHat9.0安装CD1/image/pxeboot/vmlinuz和 initrd.img复制到/tftpboot下
9.建立 /tftpboot/pxelinux.cfg/C0A801DE,内容为:
DEFAULT install
PROMPT 1
LABEL install
KERNEL vmlinuz
APPEND initrd=initrd.img devfs=nomount ramdisk_size=16384
10.#service dhcpd start
[OK]
#service dhcpd restart
[OK]
这时使用RTL8139 在client端收到动态分配的IP:192.168.1.222,进入网络安装界面。
但是, 第二天早上开机发现dhcp 没起来,再做 service dhcpd start 出现错误:
Starting dhcpd: 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 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on LPF/eth0/00:0f:ea:24:ea:81/192.168.1.0/24
Sending on LPF/eth0/00:0f:ea:24:ea:81/192.168.1.0/24
Can't bind to dhcp address: Address already in use
Please make sure there is no other dhcp server
running and that there's no entry for dhcp or
bootp in /etc/inetd.conf. Also make sure you
are not running HP JetAdmin software, which
includes a bootp server.
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.
exiting.
[FAILED]
我的网路很简单,是直接用线把server 和client 连起的。
查了几遍,真是没有头绪,恳请大家指点迷津。。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论