我正在尝试在内核版本为3.5.3的CentOs 5内核上使用dhcrealy。
我这样configuration/ etc / sysconfig / dhcrelay文件
dhcrelay -i eth1 192.168.0.1
当dhcrealy停止,我运行/etc/init.d/dhcrelay status ,我得到这个输出。
Internet Systems Consortium DHCP Relay Agent V3.0.5-RedHat Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth1/08:00:27:49:5e:e7 Sending on LPF/eth1/08:00:27:49:5e:e7 Sending on Socket/fallback dhcrelay (pid 27536) is running...
然后我检查ps aux | grep dhcrelay ps aux | grep dhcrelay ,看到dcrecrelay已经启动了。 虽然它返回OK,但我无法通过调用/etc/init.d/dhcrelay stop停止它,每当我检查状态时,它都会启动新的进程。 然后我只能通过调用killall dhcrelay命令来停止它
我安装的dhcp软件包是dhcp-3.0.5-23.el5_6.4
我想知道有没有人面临同样的问题?
很可能这只是一个破坏的init.d -script,不支持参数( start , stop , status ),但总是启动dhcprelay。
您可能想要将其作为软件包的维护人员的错误报告。
我找出这个错误的原因。 Conf文件不应该包含命令。 我改变了它,解决了问题。
INTERFACES="eth1" DHCPSERVERS="192.168.0.1"