SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-09-02 20:42:13

lordmacbayne
Member
Registered: 2011-03-03
Posts: 32

Wifi issues with a specific network

I am unable to connect to the internet with wifi on my BL laptop at my sister's house.  This laptop is able to connect to other networks.

I am able to relay the wifi to the laptop by tethering it to my tablet which is on the same wifi network.

On wifi, the laptop connects to the internet, but no internet connection is available.  Chrome, Firefox, Pidgin, all fail as does pinging.

I have never seen anything like this.  I use this network 2-3 times a week, so I'd like to fix this.  But then again, I am not always here.  Can someone tell me how I should trouble shoot this?

Offline

Help fund CrunchBang, donate to the project!

#2 2015-09-02 20:54:43

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Wifi issues with a specific network

Can you "see" the access point from your laptop?

sudo iwlist wlan0 scan|grep SSID

If you attempt a manual connection, any error messages displayed may aid diagnosis.

First, disable NetworkManager and clear the IP addresses:

sudo systemctl stop NetworkManager ModemManager
sudo ip a flush dev wlan0

Then make sure that the interface is up:

sudo ip l set wlan0 up

Then attempt to associate:

sudo wpa_supplicant -B -D nl80211,wext -i wlan0 -c <(wpa_passphrase "<SSID>" "<password>")

Replace <SSID> with the name of your access point and replace <password> with your, er, password.

Finally, assign the IP addresses:

sudo dhclient wlan0

If your interface is not called "wlan0", replace that with the correct name (use `ip l` to list all interfaces).

Offline

#3 2015-09-02 21:16:30

lordmacbayne
Member
Registered: 2011-03-03
Posts: 32

Re: Wifi issues with a specific network

Offline

#4 2015-09-02 21:35:34

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Wifi issues with a specific network

Humble apologies for my stupid mistake above, I'm very tired ATM.
sad

The `wpa_passphrase` command is in /sbin so the whole command needs to be run as root.

sudo bash -c 'wpa_supplicant -B -D nl80211,wext -i wlan0 -c <(wpa_passphrase "mysisterswifi" "mysteriouspwd")'

Note the lack of "<" & ">" symbols wink

You will have to kill any running instances of wpa_supplicant before you try that command.

sudo killall wpa_supplicant

Offline

#5 2015-09-03 02:19:57

lordmacbayne
Member
Registered: 2011-03-03
Posts: 32

Re: Wifi issues with a specific network

Thanks for your help.  I will try this when I am back at her house on Saturday.

Offline

#6 2015-09-07 04:57:28

lordmacbayne
Member
Registered: 2011-03-03
Posts: 32

Re: Wifi issues with a specific network

Ok, this does not seem to be working for me.  All I get when I run this is

>
>
>

Offline

#7 2015-09-07 06:28:14

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Wifi issues with a specific network

Please post the shell output with the commands included so that I can see exactly what you have tried.

Offline

#8 2015-09-07 07:25:53

Ak_0
#! Member
Registered: 2011-05-14
Posts: 83

Re: Wifi issues with a specific network

Last edited by Ak_0 (2015-09-09 03:12:56)


Вкру́те и вяз перело́мишь - In affect you can break even an elm.
Всё гениальное просто. - Genius is simplicity.

Offline

#9 2015-09-10 02:15:06

lordmacbayne
Member
Registered: 2011-03-03
Posts: 32

Re: Wifi issues with a specific network

ok, here.

me@bunsen:~$ sudo bash -c 'wpa_supplicant -B -D nl80211,wext -i wlan0 -c ("sistersnetwork" "mysteriouspassword")
> 
> 
> 
> 

Offline

#10 2015-09-10 04:09:39

Ak_0
#! Member
Registered: 2011-05-14
Posts: 83

Re: Wifi issues with a specific network

You forgot to put the last quote '
And substitute the password and SSID with the network's.
My issue turned out to be DNS related you should check to see if that's your problem too.

Last edited by Ak_0 (2015-09-10 05:49:20)


Вкру́те и вяз перело́мишь - In affect you can break even an elm.
Всё гениальное просто. - Genius is simplicity.

Offline

#11 2015-09-10 06:19:49

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Wifi issues with a specific network

ping -c3 8.8.8.8
ping -c3 google.com

Offline

#12 2015-09-14 00:31:37

lordmacbayne
Member
Registered: 2011-03-03
Posts: 32

Re: Wifi issues with a specific network

Thanks for the output from both suggestions.  I must be getting some part of the syntax wrong.

meh@bunsen:~$ sudo bash -c 'wpa_supplicant -B -D nl80211,wext -i wlan0 -c ("sistersnetwork" "mysterouspassword")'
[sudo] password for me: 
bash: -c: line 0: syntax error near unexpected token `('
me@bunsen:~$ ping -c3 8.8.8.8
connect: Network is unreachable

Offline

#13 2015-09-14 01:05:01

photonucleon
Quantum Geek
From: Hogwarts
Registered: 2013-06-10
Posts: 952

Re: Wifi issues with a specific network

Just a suggestion, not sure if this is relevant though: I have had problems connecting to a specific network recently, and it turned out to be because my laptop's wireless card only supports b/g networks (and not n networks), while the router was set to ignore b/g connections and only accept n connections. Had to set the router to b/g/n for it to work.

Another thing that has just occurred to me is that perhaps for some reason your laptop might be on a blacklist in the router settings? Not sure why that would be the case, but could be some type of accidentally activated IP address blacklisting...?


- Ai! Aníron Undómiel. -
- Some things are certain. -
- Et Eärello Endorenna utúlien. Sinome maruvan ar Hildinyar tenn' Ambar-metta. -

Offline

#14 2015-09-14 01:27:09

lordmacbayne
Member
Registered: 2011-03-03
Posts: 32

Re: Wifi issues with a specific network

The router is a dual band and supports b/g/n.  There are currently three android devices a chromecast, and a windows machine all connected to this router. 

I logged into the router.  I saw nothing blocked under MAC filtering.

Offline

#15 2015-09-14 10:41:36

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Wifi issues with a specific network

meh@bunsen:~$ sudo bash -c 'wpa_supplicant -B -D nl80211,wext -i wlan0 -c ("sistersnetwork" "mysterouspassword")'

Offline

#16 2015-10-15 00:36:42

lordmacbayne
Member
Registered: 2011-03-03
Posts: 32

Re: Wifi issues with a specific network

Ok, finally got this done. 

root@bunsen:~# wpa_supplicant -B -D nl80211,wext -i wlan0 -c <(wpa_passphrase "mysisterswifi" "mysteriouspwd")
Successfully initialized wpa_supplicant
root@bunsen:~# 

I think I have said this before, but the wifi *looks* like it's connected, but does not connect to any websites, ping or anything. 

When I execute this command, the apparent connection drops.  It looks like it tries to reconnect, but doesn't.

Offline

#17 2015-10-15 09:14:41

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: Wifi issues with a specific network

Offline

#18 2015-10-26 02:35:21

lordmacbayne
Member
Registered: 2011-03-03
Posts: 32

Re: Wifi issues with a specific network

I disabled WPS on the router and now it's working. 

Anyway, thanks, I am going to get started on the new forums now!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo