3

(Using ubuntu 14 on a laptop) I followed this guide to set up my wifi by sshing into the pi via ethernet. I checked my routers networks settings and it showed two ip addresses from the pi, and I could ssh into the wireless address without a problem.

When I unlplugged the ethernet and restarted the pi the wifi address does not show up, and I can't ssh in.

I tried restarting it with and without ethernet with the same results. whats happening?

Here is my interfaces file:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0

iface wlan0 inet dhcp
wpa-ssid "Patty likes oldman"
wpa-psk "analrapist"
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet dhcp

Here is my wpa_supplicant.conf file:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="Patty like oldman"
psk="analrapist"

# Protocol type can be: RSN (for WP2) and WPA (for WPA1)
proto=WPA

# Key management type can be: WPA-PSK or WPA-EAP (Pre-Shared or Enterprise)
key_mgmt=WPA-PSK

# Pairwise can be CCMP or TKIP (for WPA2 or WPA1)
pairwise=TKIP

#Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used $
auth_alg=OPEN
}
tkelly003
  • 31
  • 2

1 Answers1

1

This applies to Raspbian Wheezy prior to 2015-05-05 for later (and Jessie) See How do I set up networking/WiFi/Static IP

This SHOULD work, but without seeing your /etc/network/interfaces it is hard to know.

I do not think this is the best option. I suggest /etc/network/interfaces should contain

allow-hotplug wlan0
auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet dhcp

wpa-roam will keep trying to reconnect when it finds no wired network.

wpa-conf option will not keep reconnecting.

It is difficult to find the documentation for these commands.

Milliways
  • 62,573
  • 32
  • 113
  • 225