我有一台运行Centos 7的机器,带有8个网络接口.我配置并运行了其中三个接口.
我已配置dhcpd来处理本地局域网接口.
我在syslog中为未配置的接口收到以下警告:
No subnet declaration for enp6s0 (no IPv4 addresses).
** Ignoring requests on enp6s0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface enp6s0 is attached. **
在过去,我会编辑/ etc / syslog / dhcpd来指示要监听的接口.但是该文件现在表示不这样做并为接口指定子网.
这些未使用的接口没有地址,所以我看不出如何为它们编写子网配置.
是否有另一种方法让dhcpd忽略这些接口?
第一编辑 –
对现有子网声明执行此操作会使警告消失:
subnet xx.xx.xx.xx mask yy.yy.yy.yy {
interface zzzzzz;
.... subnet declaration
}
但是,我可以找到零文档,显示子网的接口选项.我觉得这很奇怪.