dhcpd: unable to create icmp socket: Operation not permitted

[admin@huangye etc]$ sudo cat /var/log/errors.log
Oct 7 01:48:58 HuangYe dhcpd: unable to create icmp socket: Operation not permitted
Oct 7 01:48:58 HuangYe dhcpd: Can’t open /var/state/dhcp/dhcpd.leases for append.
Oct 7 01:48:58 HuangYe dhcpd:
Oct 7 01:48:58 HuangYe dhcpd: If you did not get this software from ftp.isc.org, please
Oct 7 01:48:58 HuangYe dhcpd: get the latest from ftp.isc.org and install that before
Oct 7 01:48:58 HuangYe dhcpd: requesting help.
Oct 7 01:48:58 HuangYe dhcpd:
Oct 7 01:48:58 HuangYe dhcpd: If you did get this software from ftp.isc.org and have not
Oct 7 01:48:58 HuangYe dhcpd: yet read the README, please read it before requesting help.
Oct 7 01:48:58 HuangYe dhcpd: If you intend to request help from the dhcp-server@isc.org
Oct 7 01:48:58 HuangYe dhcpd: mailing list, please read the section on the README about
Oct 7 01:48:58 HuangYe dhcpd: submitting bug reports and requests for help.
Oct 7 01:48:58 HuangYe dhcpd:
Oct 7 01:48:58 HuangYe dhcpd: Please do not under any circumstances send requests for
Oct 7 01:48:58 HuangYe dhcpd: help directly to the authors of this software – please
Oct 7 01:48:58 HuangYe dhcpd: send them to the appropriate mailing list as described in
Oct 7 01:48:58 HuangYe dhcpd: the README file.
Oct 7 01:48:58 HuangYe dhcpd:
Oct 7 01:48:58 HuangYe dhcpd: exiting.

解决办法:
sudo touch /var/state/dhcp/dhcpd.leases
监听单网卡:
sudo vim /etc/conf.d/dhcp
在参数最后加上要监听的网卡,如eth1
DHCP4_ARGS=”… eth1″
接下来的一步是告诉路由表对于来自255.255.255.255 的广播,应该在哪一块网卡监听。

1
route add -host 255.255.255.255 eth1

Now, the clients on eth1 will be managed by your DHCP server without having any impact on any client / server on any other ntework interface.

参考文档:
https://wiki.archlinux.org/index.php/Dhcpd

更多
One Response Post a comment
  1. 宅男

    恩,DHCP启动失败这个问题我也遇到过,当时很纳闷,谢谢博主的解决方法!

Leave a Reply

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS