From charlesreid1

Line 29: Line 29:


Once you get these two network configuration files squared away, the Raspberry Pi should join that wifi network on boot.
Once you get these two network configuration files squared away, the Raspberry Pi should join that wifi network on boot.
=Flags=
{{PiFlag}}

Revision as of 04:16, 4 April 2017

See the following repo, which has details of how to configure /etc/network/interfaces:

https://git.charlesreid1.com/rpi/pi-join-wifi

The basics:

Joining Unencrypted Wifi

This supposes you want to join a wifi network called MyWifiNetwork that is unencrypted. Add the following wireless network information to /etc/network/interfaces.d/widy.cfg, which is a config file specific to this wifi router that you can use to swap wifi network configurations in and out:

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wireless-essid OpenWrt

Next, include this config file in your /etc/network/interfaces file by adding the last line shown to it:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

source /etc/network/interfaces.d/mywifi.cfg

Once you get these two network configuration files squared away, the Raspberry Pi should join that wifi network on boot.



Flags