I'm trying to set up my Raspberry Pi2 as an access point. hostapd and isc-dhcp-server run without any errors. I see the network, but I can't connect with any device, it just times out or tells me it can't connect.
And the strange thing is, I don't see ANY activity of the DHCP server in the syslog of the Pi, so I'm not sure if the hostapd or the dhcp-server is causing the error. Can anyone help me?
output ifconfig:
eth0 Link encap:Ethernet HWaddr b8:27:eb:38:f4:25
inet addr:192.168.8.55 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fe38:f425/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1646 errors:0 dropped:0 overruns:0 frame:0
TX packets:3974 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:113231 (110.5 KiB) TX bytes:4730604 (4.5 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:720 (720.0 B) TX bytes:720 (720.0 B)
wlan0 Link encap:Ethernet HWaddr 74:da:38:35:86:51
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::76da:38ff:fe35:8651/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:7 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
hostapd.conf:
interface=wlan0 driver=rtl871xdrv ssid=NAME hw_mode=g channel=6 macaddr_acl=0 auth_algs=3 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=PASSWORD wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP rsn_pairwise=CCMP
dhcpd.conf:
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.200;
option domain-name-servers 8.8.8.8;
option domain-name "local";
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}
wpa_pairwise=TKIPand it's working well. This doesn't explain why it's not working, but it might be worth a shot. Are the devices associating with the AP but simply not getting an IP address, or not associating at all? – bobstro Sep 24 '15 at 17:05sudo stop service hostapd, then run it with verbose debug outputsudo hostapd -d /etc/hostapd/hostapd.conf(correcting for wherever your hostapd.conf actually lives). You should see a lot of diagnostic messages which may show whether your device is associating. What wifi adapter are you using? – bobstro Sep 24 '15 at 18:10