【问题标题】:Isc-dhcp-server not starting error: not configured to listen to any interfacesIsc-dhcp-server 未启动错误:未配置为侦听任何接口
【发布时间】:2018-01-29 12:00:05
【问题描述】:

我已经安装了 Isc-dhcp-server 并相应地配置了文件,但仍然显示未配置为侦听任何接口的错误。 我有 ubuntu 17.04 64 位

接口文件:

auto lo
iface lo inet loopback
iface enp2s0 inet static
address 10.90.90.5
netmask 255.255.255.0
gateway 10.90.90.1
broadcast 10.90.90.255
dns-nameservers 8.8.8.8
up service isc-dhcp-server restart

在 /etc/default/isc-dhcp-server 文件中

   INTERFACES="enp2s0"

/etc/dhcp/dhcpd.conf 文件:

 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;
    }

我得到的错误:

error

【问题讨论】:

    标签: configuration-files dhcp


    【解决方案1】:

    有点晚了,但是:

    isc-dhcp-server 作为/etc/default 文件夹中名为isc-dhcp-server 的配置文件是该文件在最后一行,您必须设置isc-dhcp-server 将监听的接口:

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

    尝试使用INTERFACESv4 键。

    然后重启服务器。

    server isc-dhcp-server restart
    

    【讨论】:

      【解决方案2】:

      问题是我的 isc-dhcp-server 配置文件被重置为具有空白接口的原始文件。 我确实重新安装了 ubuntu,它运行良好。

      【讨论】:

        【解决方案3】:

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

        您可以通过将:auto enp2s0 under auto lo in /etc/network/interfaces 来修复它

        【讨论】:

        • 我的界面已启动。我已经使用 ifconfig 进行了检查
        猜你喜欢
        • 2019-07-10
        • 1970-01-01
        • 1970-01-01
        • 2021-09-08
        • 2017-11-21
        • 2018-12-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多