把服务器重装FreeBSD 6.0-RELEASE后启动dhcp出错

这两天刚出来了freebsd6.0-RELEASE,前几天刚装的一台freebsd5.4服务器准备将他重装,服务器提供ipf+ipnat+dhcp服务。安装先把利用ftp将服务器的一些配置文件(/etc/ipf.conf; /etc/ipnat.conf; /etc/dhcp.conf)先备份下来,这样装这些服务器时可以加快速度。

操作系统、ipf和ipnat都安装成功,dhcp的安装也很成功,但当重启后查看进程发现dhcpd并没有启动,手动启动/usr/local/sbin/dhcpd -cf /etc/dhcp.conf xl0后出现如下提示:

Internet Systems Consortium DHCP Server V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/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 BPF/xl0/00:50:da:93:30:df/172.16.0/22

Sending on BPF/xl0/00:50:da:93:30:df/172.16.0/22

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.

没道理啊,配置文件我都是安装前备份下来的,都是一模一样的,竟然提示不行,折腾了半天没想出法子来,后来我运行时不带网卡直接/usr/local/sbin/dhcpd,竟然可以成功,只是对外网网卡有些错误提示,这样看来是
内网网卡问题了,我就换了个IP,重启,竟然成功启动dhcp。

问题所在:看来是因为重装前局域网中有原来这机器(freebsd5.4时)的dhcp缓存,所以一
直提示我dhcp server已经存在,然后 我再将IP改回原来的,竟然也成功启动,问题到此解决。

2 Comments

Leave a Reply