https://learn.adafruit.com/setting-up-a ... l-software
I have followed the guide completely, but I'm having issues at the "Set up wlan0 for static IP". If I type
Code: Select all
sudo ifdown wlan0
sudo ifconfig wlan0 192.168.42.1
then the ip-address is changed as desired and my wireless access point works. However after rebooting the pi, wlan0 isn't automatically set to 192.168.42.1 and this causes me issues with dhcp loading. Instead, with ifconfig, I get:
Code: Select all
wlan0 Link encap:Ethernet HWaddr 80:1f:02:80:03:2c
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Why isn't this being automated? I've follow the guide to a tee and /etc/network/interfaces is set up exactly how it wants me to:
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.0
#iface wlan0 inet manual
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp
up iptables-restore < /etc/iptables.ipv4.nat