Configuration files Isc dhcp服务器未启动错误:未配置为侦听任何接口

Configuration files Isc dhcp服务器未启动错误:未配置为侦听任何接口,configuration-files,dhcp,Configuration Files,Dhcp,我已经安装了Isc dhcp服务器并相应地配置了文件,但它仍然显示错误,即它没有配置为侦听任何接口。 我有ubuntu 17.04 64位 接口文件: 在/etc/default/isc dhcp服务器文件中 /etc/dhcp/dhcpd.conf文件: 我得到的错误是: 看来您的界面enp2s0没有启动。您可以使用ifconfig进行检查 您可以通过在/etc/network/interfaces中的auto-enp2s0下放置:auto-enp2s0来修复此问题。问题是我的isc dhcp

我已经安装了Isc dhcp服务器并相应地配置了文件,但它仍然显示错误,即它没有配置为侦听任何接口。 我有ubuntu 17.04 64位

接口文件: 在/etc/default/isc dhcp服务器文件中 /etc/dhcp/dhcpd.conf文件: 我得到的错误是:

看来您的界面
enp2s0
没有启动。您可以使用
ifconfig
进行检查


您可以通过在
/etc/network/interfaces
中的
auto-enp2s0
下放置:
auto-enp2s0
来修复此问题。问题是我的isc dhcp服务器配置文件被重置为具有空白接口的原始文件。 我重新安装了ubuntu,效果很好。

有点晚,但:

isc-dhcp服务器
作为名为
isc-dhcp服务器的
/etc/default
文件夹中的配置文件
此文件是否位于最后一行,您必须设置接口,其中
isc-dhcp服务器
将侦听:

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0 eth1"
INTERFACESv6=""
尝试使用
接口v4

然后重新启动服务器

server isc-dhcp-server restart

我的界面启动了。我已经用ifconfig检查过了
 subnet 10.90.90.0 netmask 255.255.255.0 {
      range 10.90.90.10 10.90.90.20;
      default-lease-time 600;
      max-lease-time 7200;
      option routers 10.90.90.1;
    }
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0 eth1"
INTERFACESv6=""
server isc-dhcp-server restart