ubuntuusers.de

Es wurde noch keine Diskussion mit dem Artikel „Ubuntu FAQ/Hardware“ verknüpft. Du kannst eine Diskussion erstellen oder ein vorhandenes Thema verknüpfen.

Can't start isc-dhcp-server because of the Error : Not configured to listen on any interfaces

Status: Ungelöst | Ubuntu-Version: Ubuntu 17.10 (Artful Aardvark)
Antworten |

A.Beater

Anmeldungsdatum:
17. Juni 2017

Beiträge: Zähle...

Hey Ich versuche einen wifi access point mit hostapd und isc-dhcp aufzusetzen.Mithilfe von diesem Tutorial: https://nims11.wordpress.com/2012/04/27/hostapd-the-linux-way-to-create-virtual-wifi-access-point/

Doch wenn ich den dhcp server mit "service isc-dhcp-server start" starten will, bekomme ich den Fehler "Not configured to listen on any interfaces!"

Das problem ist, das ich nicht weiß wieso ich diesen Error bekomme da ich glaube alles angegeben zu haben.

1
2
Job for isc-dhcp-server.service failed because the control process exited with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details.

Hier sind die Details:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

root@l0calh0st:~# journalctl -xe
Jan 09 19:44:42 l0calh0st dhcpd[4212]: 
Jan 09 19:44:42 l0calh0st dhcpd[4212]: 
Jan 09 19:44:42 l0calh0st dhcpd[4212]: Not configured to listen on any interfaces!
Jan 09 19:44:42 l0calh0st dhcpd[4212]: 
Jan 09 19:44:42 l0calh0st dhcpd[4212]: If you think you have received this message due to a bug rather
Jan 09 19:44:42 l0calh0st dhcpd[4212]: than a configuration issue please read the section on submitting
Jan 09 19:44:42 l0calh0st dhcpd[4212]: bugs on either our web page at www.isc.org or in the README file
Jan 09 19:44:42 l0calh0st dhcpd[4212]: before submitting a bug.  These pages explain the proper
Jan 09 19:44:42 l0calh0st dhcpd[4212]: process and the information we find helpful for debugging..
Jan 09 19:44:42 l0calh0st dhcpd[4212]: 
Jan 09 19:44:42 l0calh0st dhcpd[4212]: exiting.
Jan 09 19:44:44 l0calh0st isc-dhcp-server[4201]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnostics. ... failed!
Jan 09 19:44:44 l0calh0st isc-dhcp-server[4201]:  failed!
Jan 09 19:44:44 l0calh0st systemd[1]: isc-dhcp-server.service: Control process exited, code=exited status=1
Jan 09 19:44:44 l0calh0st systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
Jan 09 19:44:44 l0calh0st systemd[1]: Failed to start LSB: DHCP server.
-- Subject: Unit isc-dhcp-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit isc-dhcp-server.service has failed.
-- 
-- The result is RESULT.

Das ist die etc/dhcp/dhcpd.conf Datei:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ddns-update-style none;
ignore client-updates;
authoritative;
option local-wpad code 252 = text;

subnet
10.0.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers
10.0.0.1;
# --- Netmask
option subnet-mask
255.255.255.0;
# --- Broadcast Address
option broadcast-address
10.0.0.255;
# --- Domain name servers, tells the clients which DNS servers to use.
option domain-name-servers
10.0.0.1, 8.8.8.8, 8.8.4.4;
option time-offset
0;
range 10.0.0.3 10.0.0.13;
default-lease-time 1209600;
max-lease-time 1814400;
}

Das ist die /etc/default/isc-dhcp-server Datei:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)

# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf

# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid

# Additional options to start dhcpd with.
#   Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""

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

Das ist die /etc/network/interfaces Datei:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
    # This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback


auto wlan0
iface wlan0 inet static
  address 10.0.0.14
  netmask 255.255.255.0

Tronde Team-Icon

Avatar von Tronde

Anmeldungsdatum:
23. November 2006

Beiträge: 1640

Guten Abend,

laut unserem Wiki musst du auch in der Datei /etc/dhcp/dhcpd.conf ein Interface konfigurieren. ▶ ISC-DHCPD (Abschnitt „Interface“)

Ist der damit schon geholfen?

MfG
Tronde

elektronenblitz63

Avatar von elektronenblitz63

Anmeldungsdatum:
16. Januar 2007

Beiträge: 29307

Wohnort: NRW

Hallo,
bei einem Desktop-System kann das seit Ubuntu 16.xx z.B. auch direkt der Network-Manager, inklusive IP-Forwarding und NAT, man hat IMHO nur keinen Zugriff auf die Einstellungen des DHCP-Servers (dnsmasq-base).

Siehe ansonsten auch WLAN Router.

Die Bezeichnung wlan0 des WLAN-Interface passt eigentlich nicht zum aktuell verwendeten System.

Verwendete WLAN-Karte, Treiber und Interface?

1
2
3
lspci -nnk | grep -i net -A2
lsusb
ip a
Antworten |