dnsmasq无法启动错误:未知接口wlan0

时间:2019-10-13 14:02:18

标签: dnsmasq

我正在尝试启动dnsmasq。调试接口未知错误的步骤是什么。对于Internet中的问题,在启动时不会发生这种情况,当dnsmasq服务启动时,接口可能未准备好。我正在手动启动systemctl start dnsmasqsudo 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

0 个答案:

没有答案
相关问题