You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Debian 12配置ISC DHCP服务器出现接口监听错误的求助

Debian 12配置ISC DHCP服务器出现接口监听错误的求助

最近我在Debian 12上折腾ISC DHCP服务器的安装和配置,结果一直卡在接口监听的问题上,syslog里反复弹出这些错误信息:

Jul 26 13:42:38 3ecc1b69 dhcpd[774]: No subnet declaration for enp2s0 (no IPv4 addresses).
Jul 26 13:42:38 3ecc1b69 dhcpd[774]: ** Ignoring requests on enp2s0.  If this is not what
Jul 26 13:42:38 3ecc1b69 dhcpd[774]:    you want, please write a subnet declaration
Jul 26 13:42:38 3ecc1b69 dhcpd[774]:    in your dhcpd.conf file for the network segment
Jul 26 13:42:38 3ecc1b69 dhcpd[774]:    to which interface enp2s0 is attached. **
Jul 26 13:42:38 3ecc1b69 dhcpd[774]: 
Jul 26 13:42:38 3ecc1b69 dhcpd[774]: 
Jul 26 13:42:38 3ecc1b69 dhcpd[774]: Not configured to listen on any interface

我目前用到的配置文件内容如下:

dhcpd.conf

subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.100 192.168.1.200;
    option routers 192.168.1.1;
    option domain-name-servers 192.168.1.1;
    option subnet-mask 255.255.255.0;
}

interfaces

sourc...

备注:内容来源于stack exchange,提问作者Jargo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 10:50:32