Yes. But see the following course of action...
1. '#'d out bind-interfaces, and then rebooted.
2. ifconfig output:
Code: Select all
wlan0 Link encap:Ethernet HWaddr b8:27:eb:fe:7f:3a
inet6 addr: fe80::ba27:ebff:fefe:7f3a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:120932 errors:0 dropped:120932 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:23742351 (22.6 MiB) TX bytes:8014 (7.8 KiB)
3. sudo service dnsmasq status output:
Code: Select all
Oct 29 22:12:16 raspberrypi dnsmasq[561]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntr...-detect
Oct 29 22:12:16 raspberrypi dnsmasq[561]: warning: interface wlan0 does not currently exist
Oct 29 22:12:16 raspberrypi dnsmasq-dhcp[561]: DHCP, IP range 192.168.10.10 -- 192.168.10.20, lease time 12h
Oct 29 22:12:16 raspberrypi dnsmasq[561]: using nameserver 8.8.8.8#53
Oct 29 22:12:16 raspberrypi dnsmasq[561]: no servers found in /var/run/dnsmasq/resolv.conf, will retry
Oct 29 22:12:16 raspberrypi dnsmasq[561]: read /etc/hosts - 22 addresses
Oct 29 22:12:17 raspberrypi systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
Oct 29 22:12:20 raspberrypi dnsmasq[561]: reading /var/run/dnsmasq/resolv.conf
Oct 29 22:12:20 raspberrypi dnsmasq[561]: using nameserver 8.8.8.8#53
Oct 29 22:12:20 raspberrypi dnsmasq[561]: using nameserver 192.168.1.1#53
Hint: Some lines were ellipsized, use -l to show in full.
4. I execute sudo ifup wlan0, and again, ifconfig output:
Code: Select all
wlan0 Link encap:Ethernet HWaddr b8:27:eb:fe:7f:3a
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fefe:7f3a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:121311 errors:0 dropped:121311 overruns:0 frame:0
TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:23813280 (22.7 MiB) TX bytes:13495 (13.1 KiB)
And sudo service dnsmasq restart, then sudo service dnsmasq status:
Code: Select all
dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
Drop-In: /run/systemd/generator/dnsmasq.service.d
└─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
Active: active (running) since Sun 2016-10-30 10:10:25 AEDT; 25s ago
Process: 10283 ExecStop=/etc/init.d/dnsmasq systemd-stop-resolvconf (code=exited, status=0/SUCCESS)
Process: 10358 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
Process: 10349 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
Process: 10345 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
Main PID: 10357 (dnsmasq)
CGroup: /system.slice/dnsmasq.service
└─10357 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -r /var/run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,....
Oct 30 10:10:25 raspberrypi dnsmasq[10345]: dnsmasq: syntax check OK.
Oct 30 10:10:25 raspberrypi dnsmasq[10357]: started, version 2.72 cachesize 150
Oct 30 10:10:25 raspberrypi dnsmasq[10357]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP connt...detect
Oct 30 10:10:25 raspberrypi dnsmasq-dhcp[10357]: DHCP, IP range 192.168.10.10 -- 192.168.10.20, lease time 12h
Oct 30 10:10:25 raspberrypi dnsmasq[10357]: using nameserver 8.8.8.8#53
Oct 30 10:10:25 raspberrypi dnsmasq[10357]: reading /var/run/dnsmasq/resolv.conf
Oct 30 10:10:25 raspberrypi dnsmasq[10357]: using nameserver 8.8.8.8#53
Oct 30 10:10:25 raspberrypi dnsmasq[10357]: using nameserver 192.168.1.1#53
Oct 30 10:10:25 raspberrypi dnsmasq[10357]: read /etc/hosts - 22 addresses
Oct 30 10:10:25 raspberrypi systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
Hint: Some lines were ellipsized, use -l to show in full.
And then I can connect to the WiFi AP and access the internet.
Progress! But it seems wlan0 is not coming up at boot..?
Raspberry Pi 4 Model B | Raspberry Pi 3 Model B | Raspberry Pi 2 Model B