DNSMASQ refuses to start with "unknown interface error" even though the interface is up
10
votes
5
answers
12955
views
A bizarre problem that I haven't found anywhere else on the internet, hinting it's probably me f'ing something up, but what?
Trying to start
dnsmasq.service
, no matter if on boot or from user session when all network services are available and working, fails with unknown interface enp2s0
error... except the entire rest of the system claims it's up.
andrzej@andrzej-PC ~ $ sudo systemctl start dnsmasq
Job for dnsmasq.service failed because the control process exited with
error code. See "systemctl status dnsmasq.service" and "journalctl -xe" for details.
andrzej@andrzej-PC ~ $ systemctl status dnsmasq
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; disabled; vendor preset:
Drop-In: /run/systemd/generator/dnsmasq.service.d
└─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
Active: failed (Result: exit-code) since Mon 2017-07-10 02:09:41 CEST; 3s ago
Process: 5551 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=
Process: 5548 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUC
Jul 10 02:09:41 andrzej-PC systemd: Starting dnsmasq - A lightweight DHCP and
Jul 10 02:09:41 andrzej-PC dnsmasq: dnsmasq: syntax check OK.
Jul 10 02:09:41 andrzej-PC dnsmasq: dnsmasq: unknown interface enp2s0
Jul 10 02:09:41 andrzej-PC systemd: dnsmasq.service: Control process exited,
Jul 10 02:09:41 andrzej-PC systemd: Failed to start dnsmasq - A lightweight D
Jul 10 02:09:41 andrzej-PC systemd: dnsmasq.service: Unit entered failed stat
Jul 10 02:09:41 andrzej-PC systemd: dnsmasq.service: Failed with result 'exit
Right, except:
andrzej@andrzej-PC ~ $ ifconfig
enp2s0 Link encap:Ethernet HWaddr /*correct address*/
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:921 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:147421 (147.4 KB)
and same for ip addr
:
2: enp2s0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether /*same*/ brd ff:ff:ff:ff:ff:ff
and finally:
andrzej@andrzej-PC ~ $ cat /sys/class/net/enp2s0/operstate
up
What? Oh, and my config file looks like this:
port=0
interface=enp2s0
dhcp-range=192.168.0.50,192.168.0.150,12h
dhcp-boot=/install/netboot/pxelinux.0
dhcp-option-force=209,install/netboot/pxelinux.cfg
dhcp-option-force=210,/
dhcp-option-force=66,192.168.0.1
enable-tftp
tftp-root=/mnt
Asked by Deuxis
(343 rep)
Jul 10, 2017, 01:06 AM
Last activity: Jan 6, 2025, 06:06 AM
Last activity: Jan 6, 2025, 06:06 AM