linux centos dhcpd进程,centos7 – 如何在Centos 7上忽略dhcpd中未使用的网络接口

我有一台运行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

}

但是,我可以找到零文档,显示子网的接口选项.我觉得这很奇怪.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值