I did a bunch of work with my raspberry pi about a year ago. I got busy with other projects, but have started to work with the pi again. I somehow set my IP address to 192.168.1.123, but I don't see how this is happening. I check the configuration settings on my router, and it says 192.168.1.123 has a dhcp lease on its IP. I check /etc/network/interfaces, and it has no reference to static. If I cycle the power on the pi, each time the IP address gets assigned the same value, as if it was static. How is this possible? Could it be that my router associates the MAC address of my pi with a static IP I assigned in a previous version of /etc/network/interfaces?
Here is the current version of /etc/network/interfaces
pi@raspberrypi ~ $ cat /etc/network/interfaces auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Here is /etc/wpa_supplicant/wpa_supplicant.conf
pi@raspberrypi ~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="LFI92"
key_mgmt=NONE
auth_alg=SHARED
wep_key0=3f8blahblahblah
}
release
orrenew
the IP on the Pi; even then you may get the same, depending on the router's algorithm.