shimmikins
Posts: 3
Joined: Tue Dec 18, 2012 7:49 am

trouble connecting to wifi

Sun Dec 23, 2012 9:52 pm

i have modified my network interfaces from DHCP to static and chnaged the 2 needed lines in wpa_supplicant and am having issues connecting to wifi.. is there a step i am missing for it to auto connect upon bootup?

Code: Select all


auto lo

iface lo inet loopback
iface eth0 inet static

  address 192.168.0.99
  netmask 255.255.255.0
  network 192.168.0.0
  broadcast 192.168.0.255
  gateway 192.168.0.1

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

  address 192.168.0.98
  netmask 255.255.255.0
  network 192.168.0.0
  broadcast 192.168.0.255
  gateway 192.168.0.1

Code: Select all

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

network={
        ssid="Belkin_G_Wireless_2F43E1"
        psk="********"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        auth_alg=OPEN
}
thx for any help, as i am getting frustrated with this.. :P

edit: it has connected to the AP a few times, but when i reboot it always disconnects and wont reconnect

pjc123
Posts: 922
Joined: Thu Mar 29, 2012 3:37 pm
Contact: Website

Re: trouble connecting to wifi

Sun Dec 23, 2012 10:20 pm

The following command is for connecting at boot for wlan0:

auto wlan0
My Raspberry Pi Project Page:

https://www.flaminghellmet.com/launch/

shimmikins
Posts: 3
Joined: Tue Dec 18, 2012 7:49 am

Re: trouble connecting to wifi

Sun Dec 23, 2012 11:42 pm

Code: Select all

shim@shodan ~ $ auto wlan0
-bash: auto: command not found
shim@shodan ~ $ sudo auto wlan0
[sudo] password for shim:
sudo: auto: command not found
shim@shodan ~ $

shimmikins
Posts: 3
Joined: Tue Dec 18, 2012 7:49 am

Re: trouble connecting to wifi

Mon Dec 24, 2012 12:57 am

just tryed adding the " auto wlan0 " at the top of the wlan section in my /etc/network/interfaces and still no avail.. worked on the reboot, but as soon as i powered off the device, it wont connect

Mobius
Posts: 238
Joined: Thu Aug 30, 2012 1:07 am
Location: San Angelo, Texas USA

Re: trouble connecting to wifi

Mon Dec 24, 2012 7:56 pm

Have you tried changing the "manual" to "static" in your wlan0 line? Other than that, it might be an issue with your wireless device. I had similar problems with a Ralink device and eventually gave up and bought an Edimax. No problems since.

pjc123
Posts: 922
Joined: Thu Mar 29, 2012 3:37 pm
Contact: Website

Re: trouble connecting to wifi

Mon Dec 24, 2012 8:38 pm

Mobius wrote:Have you tried changing the "manual" to "static" in your wlan0 line? Other than that, it might be an issue with your wireless device. I had similar problems with a Ralink device and eventually gave up and bought an Edimax. No problems since.
If you mean this line:
iface wlan0 inet manual

It must be set to "manual" for this line to work:
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

I have also seen others with boot up problems with specific devices, although I never tried to correlate the brands or chipsets. I bought the Edimax right off the bat many months ago because of the good reviews and it works great.
My Raspberry Pi Project Page:

https://www.flaminghellmet.com/launch/

Return to “Beginners”