RPi dnsmasq dhcp issue: devices do not get ip addresses
Posted: Fri Feb 08, 2013 11:19 am
Hello dear community,
I am trying to turn the raspberry pi into a wifi access point.
Although there are several tutorials to do so, there is trouble getting the dhcp server of dnsmasq to work.
First of all: hostapd is running well and providing a wlan other devices could connect to.
But while connecting the dhcp request times out - meaning that clients do not get any ip address.
The config file dnsmasq.conf is really simple as it says the standard settings fit most of the needs. I just added the setting to listen only on the interface wlan0 and set the dhcp range like this:
In /etc/network/interfaces I specified a static ip address for the interface wlan0 within the same subnet:
Finally, iwconfig gives the following information:
Could you please give me a hint why the access point does not give ip addresses to any connecting device?
Thank you for reading!
I am trying to turn the raspberry pi into a wifi access point.
Although there are several tutorials to do so, there is trouble getting the dhcp server of dnsmasq to work.
First of all: hostapd is running well and providing a wlan other devices could connect to.
But while connecting the dhcp request times out - meaning that clients do not get any ip address.
The config file dnsmasq.conf is really simple as it says the standard settings fit most of the needs. I just added the setting to listen only on the interface wlan0 and set the dhcp range like this:
Code: Select all
interface=wlan0
dhcp-range=10.0.0.20,10.0.0.50,255.255.255.0,12hCode: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
# THIS LINE IS REPLACED BY THE FOLLOWING LINES FOR hostapd
#iface wlan0 inet manual
iface wlan0 inet static
address 10.0.0.10
netmask 255.255.255.0
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcpCode: Select all
wlan0 IEEE 802.11bg ESSID:"RAPID" Nickname:"<WIFI@REALTEK>"
Mode:Master Frequency:2.442 GHz Access Point: 80:1F:02:82:23:25
Bit Rate:54 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=2/100 Signal level=2/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0Thank you for reading!