dnsmasq не запускается Ошибка: неизвестный интерфейс wlan0 - PullRequest
0 голосов
/ 13 октября 2019

Я пытаюсь запустить dnsmasq. Какие бы были шаги для отладки ошибки, интерфейс неизвестен. Это не происходит при запуске, так как для вопросов в Интернете, интерфейс может быть не готов, когда запускается служба dnsmasq. Я запускаю его вручную systemctl start dnsmasq и sudo dnsmasq --no-daemon --interface=wlan0

● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
  Loaded: loaded (/lib/systemd/system/dnsmasq.service; disabled; vendor preset: enabled)
 Drop-In: /run/systemd/generator/dnsmasq.service.d
          └─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
  Active: failed (Result: exit-code) since Sun 2019-10-13 13:44:50 UTC; 10s ago
 Process: 2160 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=2)
 Process: 2157 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)

Oct 13 13:44:49 NanoPi-NEO-Core2 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Oct 13 13:44:50 NanoPi-NEO-Core2 dnsmasq[2157]: dnsmasq: syntax check OK.
Oct 13 13:44:50 NanoPi-NEO-Core2 dnsmasq[2160]: dnsmasq: unknown interface wlan0
Oct 13 13:44:50 NanoPi-NEO-Core2 systemd[1]: dnsmasq.service: Control process exited, code=exited status=2
Oct 13 13:44:50 NanoPi-NEO-Core2 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
Oct 13 13:44:50 NanoPi-NEO-Core2 systemd[1]: dnsmasq.service: Unit entered failed state.
Oct 13 13:44:50 NanoPi-NEO-Core2 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.

И происходит сбой с неизвестным интерфейсом wlan0

ip address list

3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 60:23:a4:01:49:4d brd ff:ff:ff:ff:ff:ff

NetworkManager.conf

[main]
plugins=ifupdown,keyfile,ofono
#dns=dnsmasq

[ifupdown]
managed=true
...