I'm creating a new post about access point configuration on raspberry pi 3 with stretch ( 4.9.73-v7+). I have network on interface eth0 (static IP assigned by the router) and I'd like to setup an AP using the on board wifi with no internet access; I followed the suggestion in viewtopic.php?t=195377 topic and I was able to get the local wifi network, but when I try to connect to the network I get, from the dnsmasq service, the message:
Code: Select all
Jan 11 11:30:16 raspberrypi systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
Jan 11 11:47:23 raspberrypi dnsmasq-dhcp[4596]: no address range available for DHCP request via wlan0
Jan 11 11:47:28 raspberrypi dnsmasq-dhcp[4596]: no address range available for DHCP request via wlan0
Code: Select all
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Code: Select all
interface wlan0
static ip_address=192.168.4.1/24
static routers=192.168.4.1
Code: Select all
interface=wlan0
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,12h
Code: Select all
interface=wlan0
driver=nl80211
ssid=MyWLAN
hw_mode=g
channel=7
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=*pass*
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Code: Select all
# Defaults for hostapd initscript
#
# See /usr/share/doc/hostapd/README.Debian for information about alternative methods of managing hostapd.
#
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration file and hostapd will be start$
# during system boot. An example configuration file can be found at
# /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
DAEMON_CONF="/etc/hostapd/hostapd.conf"
# Additional daemon options to be appended to hostapd command:-
# -d show more debug messages (-dd for even more) -K include key data in debug messages -t include
# timestamps in some debug messages
#
# Note that -B (daemon mode) and -P (pidfile) options are automatically configured by the init.d script and mu$
# not be added to DAEMON_OPTS.
#
#DAEMON_OPTS=""
Code: Select all
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.178.40 netmask 255.255.255.0 broadcast 192.168.178.255
inet6 fe80::ba27:ebff:fed1:7cbe prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:d1:7c:be txqueuelen 1000 (Ethernet)
RX packets 19146 bytes 6764977 (6.4 MiB)
RX errors 0 dropped 5 overruns 0 frame 0
TX packets 4926 bytes 837550 (817.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 1688 bytes 107050 (104.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1688 bytes 107050 (104.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.80.90 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::ba27:ebff:fe84:29eb prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:84:29:eb txqueuelen 1000 (Ethernet)
RX packets 1414 bytes 759240 (741.4 KiB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 1082 bytes 201469 (196.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Thank you!