You are not logged in.

#1 2014-09-01 14:32:32

ben-mcf
Member
From: Melbourne, Australia
Registered: 2013-05-18
Posts: 11

[SOLVED] iw connected but no internet

While attempting to configure auto-netcl on my MacBook Pro I messed up my wifi settings to such an extent that I couldn't connect to networks anymore, so I decided to uninstall netctl, networkmanager and wpa_supplicant in order to get back to basics and try to learn how wireless networking should be managed in Arch.

Now I've turned my router's encryption off so I can use iw without wpa_supplicant and I seem to be able to connect to it:

$ iw dev wlp2s0 link

Connected to 84:1b:5e:05:ed:5f (on wlp2s0)
	SSID: anor
	freq: 5220
	signal: -66 dBm
	tx bitrate 270.0 Mbit/s

I'm not connected to the internet, though:

$ ping google.com

ping: unknown host google.com

Other devices can access the internet through the same SSID.

My MacBook doesn't appear on my router's list of connected devices.

I've tried using an external wifi adapter and it, too, seems to connect, but doesn't enable me to access the internet.

I've tried Google and searching these forums, but I'm at a loss. Any suggestions would be appreciated.

Last edited by ben-mcf (2014-09-01 14:50:26)

Offline

#2 2014-09-01 14:42:25

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] iw connected but no internet

Might work better if you request ip/route/dns info by using a dhcp client. Eg $(dhcpcd wlp2s0)

Or just use NetworkManager or similar.

Last edited by Mr.Elendig (2014-09-01 14:43:18)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2014-09-01 14:50:38

ben-mcf
Member
From: Melbourne, Australia
Registered: 2013-05-18
Posts: 11

Re: [SOLVED] iw connected but no internet

I'm astonished it was that simple. Wish I could buy you a beer.

Offline

#4 2014-09-01 14:54:59

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] iw connected but no internet

The iw output shows that you have associated with your AP, but you haven't made any attempt to configure an IP address, route, or DNS config. As noted above, you can use dhcp for this, or you can configure a static address.

There is nothing Arch-specific about wireless configuration, apart from the fact that netctl was developed as an Arch project. I'd recommend that you use networkmanager, connman, or a combination of wpa_supplicant and systemd-networkd

Offline

Board footer

Powered by FluxBB