I have (among other network devices) a RPi
Linux rpi2 4.1.10+ #821 PREEMPT Sat Oct 10 00:12:23 BST 2015 armv6l GNU/Linux
It is connected via WiFi to an access point (like the other devices). A static network configuration works (connection to the AP and TCP/IP traffic).
I now wanted to move it to DHCP by modifying in /etc/network/interfaces
the wlan0
stanza from
auto wlan0
iface wlan0 inet static
address 10.10.10.5
netmask 255.255.255.0
gateway 10.10.10.254
wpa-essid "MYSSID"
wpa-psk "mypassword"
to
auto wlan0
iface wlan0 inet dhcp
wpa-essid "MYSSID"
wpa-psk "mypassword"
The interface connects to the AP (which is visible though iwconfig
) but does not get any IP.
- No request is visible on the server (which runs
dnsmasq
so I can se all the logs - which include the ones from other devices). - other devices on the same AP get addresses without problems
- a
tcpdump
does not show any DHCP requests
What could block the RPi to request an IP address?
Answer (summarizing the answer to the question and my further comments): the lack of a client (which I must have removed when reconfiguring the device many times). Installing isc-dhcp-client
fixed the issue.