0

I followed the official Raspberry Pi documentation for "Setting up a Raspberry Pi as an access point in a standalone network (NAT)", but I can't get an IP address on the client. When I assign a static IP address, I cannot connect either. What am I doing wrong that is causing IP addresses to not be given out, and static IP address not to work?

hostapd status:

-- Logs begin at Thu 2016-11-03 13:16:43 EDT, end at Sun 2019-05-12 13:34:06 EDT. --
May 12 13:18:46 raspberrypi systemd[1]: Starting Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator...
May 12 13:18:46 raspberrypi hostapd[439]: Configuration file: /etc/hostapd/hostapd.conf
May 12 13:18:46 raspberrypi hostapd[439]: Failed to create interface mon.wlan0: -95 (Operation not supported)
May 12 13:18:46 raspberrypi hostapd[439]: wlan0: Could not connect to kernel driver
May 12 13:18:46 raspberrypi hostapd[439]: Using interface wlan0 with hwaddr b8:27:eb:85:dc:b4 and ssid "NetworkNameWitheld"
May 12 13:18:47 raspberrypi hostapd[439]: wlan0: interface state UNINITIALIZED->ENABLED
May 12 13:18:47 raspberrypi hostapd[439]: wlan0: AP-ENABLED
May 12 13:18:47 raspberrypi systemd[1]: hostapd.service: PID file /run/hostapd.pid not readable (yet?) after start: No such file or directo
May 12 13:18:47 raspberrypi systemd[1]: Started Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.
May 12 13:20:07 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 IEEE 802.11: associated
May 12 13:20:07 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 RADIUS: starting accounting session D941AE05C8113C59
May 12 13:20:07 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 WPA: pairwise key handshake completed (RSN)
May 12 13:20:10 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 IEEE 802.11: disassociated
May 12 13:20:10 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 IEEE 802.11: disassociated
May 12 13:20:10 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 IEEE 802.11: disassociated
May 12 13:20:13 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 IEEE 802.11: associated
May 12 13:20:13 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 RADIUS: starting accounting session 0282223ADB36780F
May 12 13:20:13 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 WPA: pairwise key handshake completed (RSN)
May 12 13:20:28 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 IEEE 802.11: disassociated
May 12 13:20:28 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 IEEE 802.11: associated
May 12 13:20:28 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 IEEE 802.11: disassociated
May 12 13:20:42 raspberrypi hostapd[474]: wlan0: STA 3c:a9:f4:3e:96:d0 IEEE 802.11: associated

hostapd configuration:

interface=wlan0
driver=nl80211
ssid=NetworkNameWithheld
hw_mode=g
channel=6
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=passwordwitheld
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

dhcpcd status:

-- Logs begin at Thu 2016-11-03 13:16:43 EDT, end at Sun 2019-05-12 13:34:06 EDT. --
May 12 13:18:44 raspberrypi systemd[1]: Starting dhcpcd on all interfaces...
May 12 13:18:44 raspberrypi dhcpcd[299]: dev: loaded udev
May 12 13:18:44 raspberrypi systemd[1]: Started dhcpcd on all interfaces.
May 12 13:18:45 raspberrypi dhcpcd[346]: eth0: waiting for carrier
May 12 13:18:45 raspberrypi dhcpcd[346]: wlan0: waiting for carrier
May 12 13:18:45 raspberrypi dhcpcd[346]: eth0: carrier acquired
May 12 13:18:45 raspberrypi dhcpcd[346]: DUID 00:01:00:01:24:3d:e2:48:b8:27:eb:85:dc:b4
May 12 13:18:45 raspberrypi dhcpcd[346]: eth0: IAID eb:d0:89:e1
May 12 13:18:45 raspberrypi dhcpcd[346]: eth0: adding address fe80::68b1:88fa:63b4:6d50
May 12 13:18:45 raspberrypi dhcpcd[346]: wlan0: carrier acquired
May 12 13:18:45 raspberrypi dhcpcd[346]: wlan0: IAID eb:85:dc:b4
May 12 13:18:45 raspberrypi dhcpcd[346]: wlan0: adding address fe80::7b3f:63ff:9c63:6f4e
May 12 13:18:45 raspberrypi dhcpcd[346]: wlan0: probing address 10.5.0.1/24
May 12 13:18:45 raspberrypi dhcpcd[346]: wlan0: carrier lost
May 12 13:18:45 raspberrypi dhcpcd[346]: wlan0: deleting address fe80::7b3f:63ff:9c63:6f4e
May 12 13:18:45 raspberrypi dhcpcd[346]: eth0: rebinding lease of 10.161.36.103
May 12 13:18:45 raspberrypi dhcpcd[346]: eth0: soliciting an IPv6 router
May 12 13:18:46 raspberrypi dhcpcd[346]: eth0: carrier lost
May 12 13:18:46 raspberrypi dhcpcd[346]: eth0: deleting address fe80::68b1:88fa:63b4:6d50
May 12 13:18:46 raspberrypi dhcpcd[346]: eth0: carrier acquired
May 12 13:18:46 raspberrypi dhcpcd[346]: eth0: IAID eb:d0:89:e1
May 12 13:18:46 raspberrypi dhcpcd[346]: eth0: adding address fe80::68b1:88fa:63b4:6d50
May 12 13:18:47 raspberrypi dhcpcd[346]: wlan0: carrier acquired
May 12 13:18:47 raspberrypi dhcpcd[346]: wlan0: IAID eb:85:dc:b4
May 12 13:18:47 raspberrypi dhcpcd[346]: wlan0: adding address fe80::f1fb:329a:7e21:6104
May 12 13:18:47 raspberrypi dhcpcd[346]: wlan0: probing address 10.5.0.1/24
May 12 13:18:47 raspberrypi dhcpcd[346]: wlan0: soliciting an IPv6 router
May 12 13:18:47 raspberrypi dhcpcd[346]: eth0: rebinding lease of 10.161.36.103
May 12 13:18:47 raspberrypi dhcpcd[346]: eth0: probing address 10.161.36.103/23
May 12 13:18:47 raspberrypi dhcpcd[346]: eth0: soliciting an IPv6 router
May 12 13:18:52 raspberrypi dhcpcd[346]: wlan0: using static address 10.5.0.1/24
May 12 13:18:52 raspberrypi dhcpcd[346]: wlan0: adding route to 10.5.0.0/24
May 12 13:18:52 raspberrypi dhcpcd[346]: eth0: leased 10.161.36.103 for 432000 seconds
May 12 13:18:52 raspberrypi dhcpcd[346]: eth0: adding route to 10.161.36.0/23
May 12 13:18:52 raspberrypi dhcpcd[346]: eth0: adding default route via 10.161.36.1
May 12 13:19:00 raspberrypi dhcpcd[346]: eth0: no IPv6 Routers available
May 12 13:19:00 raspberrypi dhcpcd[346]: wlan0: no IPv6 Routers available

dhcpcd configuration:

# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel

# Inform the DHCP server of our hostname for DDNS.
hostname

# Use the hardware address of the interface for the Client ID.
clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
#duid

# Persist interface configuration when dhcpcd exits.
persistent

# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu

# A ServerID is required by RFC2131.
require dhcp_server_identifier

# Generate Stable Private IPv6 Addresses instead of hardware based ones
slaac private

# Example static IP configuration:
#interface eth0
#static ip_address=192.168.0.10/24
#static ip6_address=fd51:42f8:caae:d92e::ff/64
#static routers=192.168.0.1
#static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1

# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address=192.168.1.23/24
#static routers=192.168.1.1
#static domain_name_servers=192.168.1.1

# fallback to static profile on eth0
#interface eth0
#fallback static_eth0

interface wlan0
   static ip_address=10.5.0.1/24
    nohook wpa_supplicant

dnsmasq status:

-- Logs begin at Thu 2016-11-03 13:16:43 EDT, end at Sun 2019-05-12 13:34:06 EDT. --
May 12 13:18:46 raspberrypi systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 12 13:18:46 raspberrypi dnsmasq[441]: dnsmasq: syntax check OK.
May 12 13:18:47 raspberrypi dnsmasq[485]: started, version 2.76 cachesize 150
May 12 13:18:47 raspberrypi dnsmasq[485]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth 
May 12 13:18:47 raspberrypi dnsmasq-dhcp[485]: DHCP, IP range 10.5.0.12 -- 10.5.0.250, lease time 1d
May 12 13:18:47 raspberrypi dnsmasq[485]: read /etc/hosts - 5 addresses
May 12 13:18:47 raspberrypi dnsmasq[485]: no servers found in /run/dnsmasq/resolv.conf, will retry
May 12 13:18:47 raspberrypi dnsmasq[486]: Too few arguments.
May 12 13:18:47 raspberrypi dnsmasq[486]: Too few arguments.
May 12 13:18:47 raspberrypi systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 12 13:18:53 raspberrypi dnsmasq[485]: reading /run/dnsmasq/resolv.conf
May 12 13:18:53 raspberrypi dnsmasq[485]: using nameserver 10.161.4.40#53
May 12 13:18:53 raspberrypi dnsmasq[485]: using nameserver 10.72.3.16#53
May 12 13:21:47 raspberrypi dnsmasq-dhcp[485]: DHCPDISCOVER(wlan0) 3c:a9:f4:3e:96:d0
May 12 13:21:47 raspberrypi dnsmasq-dhcp[485]: DHCPOFFER(wlan0) 10.5.0.238 3c:a9:f4:3e:96:d0
May 12 13:23:45 raspberrypi dnsmasq-dhcp[485]: DHCPDISCOVER(wlan0) 00:b3:62:b7:5b:74
May 12 13:23:45 raspberrypi dnsmasq-dhcp[485]: DHCPOFFER(wlan0) 10.5.0.133 00:b3:62:b7:5b:74
May 12 13:23:56 raspberrypi dnsmasq-dhcp[485]: DHCPDISCOVER(wlan0) 00:b3:62:b7:5b:74
May 12 13:23:56 raspberrypi dnsmasq-dhcp[485]: DHCPOFFER(wlan0) 10.5.0.133 00:b3:62:b7:5b:74
May 12 13:23:57 raspberrypi dnsmasq-dhcp[485]: DHCPDISCOVER(wlan0) 00:b3:62:b7:5b:74
May 12 13:23:57 raspberrypi dnsmasq-dhcp[485]: DHCPOFFER(wlan0) 10.5.0.133 00:b3:62:b7:5b:74
May 12 13:23:57 raspberrypi dnsmasq-dhcp[485]: DHCPDISCOVER(wlan0) 00:b3:62:b7:5b:74
May 12 13:23:57 raspberrypi dnsmasq-dhcp[485]: DHCPOFFER(wlan0) 10.5.0.133 00:b3:62:b7:5b:74

dnsmasq congifuration:

interface=wlan0
 dhcp-range=10.5.0.12,10.5.0.250,255.255.255.0,24h

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.