Recent Changes - Search:




Mega Plan



Static WIFI

Setting up a static IP address on the linux system loaded on the Raspberry Pi.

Move to the network directory: cd /etc/network/

Edit the interface file as root with your favorite editor: sudo vim interfaces

Now your network may have a diffrent setup so here is an example:

auto lo

iface lo inet loopback

iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet static

pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -B

The address is the IP that you would like, netmask must be the same for all robots and clients (Usually standard across the network), and gateway must be the router you are using.

wpa_supplicant is where your password and SSID are and can be created with this command: iwconfig wlan0 essid NETWORK_NAME key WIRELESS_KEY

Now run sudo ifdown wlan0 then sudo ifup wlan0, or sudo reboot to update the network.

That should be all thats needed to setup the wireless with a static IP

Edit - History - Print - Recent Changes - Search
Page last modified on February 21, 2014, at 04:40 PM