I am currently using the Raspberry Pi to create a wireless controlled robot that I plan on controlling using an HTML GUI.
I followed some instructions online and made my Raspberry Pi act as a wireless AP and gave it a static IP address. Now the problem is that I have got the wireless AP working and can connect to my Raspberry Pi. The problem is that the static IP address isn't kicking in, so I have to manually enter the command "$ sudo ifdown wlan0; sudo ifup wlan0; sudo service hostapd restart" and only then does it start to work (example below). I have also entered a copy of the contents in etc/network/interfaces
.
I have only been playing with the Raspberry Pi for about a month now, so I am still fairly new to it, but I really need a solution to this problem so that I can load the static IP address on start-up.
The Problem and My Temporary Solution
pi@raspberrypi ~ $ hostname -I
192.168.1.108
pi@raspberrypi ~ $ sudo ifdown wlan0
pi@raspberrypi ~ $ sudo ifup wlan0
pi@raspberrypi ~ $ sudo service hostapd restart
[ ok ] Stopping advanced IEEE 802.11 management: hostapd.
[ ok ] Starting advanced IEEE 802.11 management: hostapd.
pi@raspberrypi ~ $ hostname -I
192.168.1.108 10.0.0.1
Content in /etc/network/interfacesauto lo
iface lo inet loopback
iface eth0 inet dhcp
iface wlan0 inet static
---address 10.0.0.1
---netmask 255.255.255.0
The following part is in my file but commented out
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp