You are not logged in.
Hi,
I've been having some issues connecting to a campus wifi (eduroam, but also with a guest network, both of which are shaky). For a few minutes at a time, I can't use the network and get "Destination host unreachable" while pinging 8.8.8.8 or the gateway. Afterward, the network operates normally. I'm using netctl 1.3 and my kernel is 3.11.6.
This most often happens:
- on boot, or on setting the device up after it has been down
- when I have connected to a different network (neither the guest nor the eduroam) recently
About 2-3 times per day, this also occurs when I have already connected to the network (and neither of us has moved); things suddenly start failing.
They consistently fail together; I can access the eduroam network if and only if I can access the guest network.
I've used other networks successfully, but not for a while, so I'm not sure whether I've broken something in the mean-time or this network is somehow different from those. Regardless, I should be able to get to this network to work, since it works under Windows and other people are using it without issue. The guest network is one of those where someone will intercept your first request and send you to a page asking you to register your computer.
The output if "ip addr" and "ip route" are the same when it works and when it doesn't (ip address changes sometimes, but it's not correlated with working wifi):
ip route
default via 10.2.12.1 dev wlp1s0 metric 303
10.2.12.0/22 dev wlp1s0 proto kernel scope link src 10.2.12.154 metric 303
10.2.12.154 via 127.0.0.1 dev lo metric 303 ip addr show wlp1s0
3: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether c4:85:08:ea:24:82 brd ff:ff:ff:ff:ff:ff
inet 10.2.12.154/22 brd 10.2.15.255 scope global wlp1s0
valid_lft forever preferred_lft forever
inet6 fe80::c685:8ff:feea:2482/64 scope link
valid_lft forever preferred_lft foreverHere's the configuration file for the eduroam network:
Description='A wireless connection using a custom network block configuration'
Interface=wlp1s0
Connection=wireless
Security=wpa-configsection
IP=dhcp
WPAConfigSection=(
'ssid="{{redacted}}"'
'proto=RSN'
'key_mgmt=WPA-EAP'
'pairwise=CCMP'
'auth_alg=OPEN'
'eap=PEAP'
'identity="{{redacted}}"'
'password="{{redacted}}"'
)I'm not sure if that matters, though, because the guest network always fails at the same time. I don't think it's the router or laptop hardware, because when I boot into Windows it works consistently, and nobody else using this network has problems.
I have tried (in frustration) changing my ip address, but this didn't resolve anything.
Thanks!
Last edited by dabbler0 (2013-11-08 01:55:57)
Offline
Does netctl print anything to the journal during this time?
Offline
I don't think so...
output of journalctl -n:
-- Logs begin at Tue 2013-08-06 07:22:52 EDT, end at Thu 2013-11-07 20:59:22 EST. --
Nov 07 20:59:07 localhost systemd[327]: Stopping Default.
Nov 07 20:59:07 localhost systemd[327]: Stopped target Default.
Nov 07 20:59:07 localhost systemd[327]: Starting Shutdown.
-- Reboot --
Nov 07 20:59:22 localhost systemd[325]: Failed to open private bus connection: Failed to connect to socket /run/user/1000/dbus/user_bus_socket: No such file or directory
Nov 07 20:59:22 localhost systemd[325]: Mounted /sys/kernel/config.
Nov 07 20:59:22 localhost systemd[325]: Stopped target Bluetooth.
Nov 07 20:59:22 localhost systemd[325]: Stopped target Sound Card.
Nov 07 20:59:22 localhost systemd[325]: Starting Default.
Nov 07 20:59:22 localhost systemd[325]: Reached target Default.
Nov 07 20:59:22 localhost systemd[325]: Startup finished in 32ms.output of systemctl:
...
dbus.service loaded active running D-Bus System Message Bus
dhcpcd.service loaded active running dhcpcd on all interfaces
getty@tty1.service loaded active running Getty on tty1
...
kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
netctl@wlp1s0\x2dPEA\x2dGuest.service loaded active exited Networking for netctl profile wlp1s0-PEA-Guest
ntpd.service loaded active running Network Time Service
...Last edited by dabbler0 (2013-11-08 02:12:24)
Offline
That is your user journal not the system journal.
Offline
Oh, okay. How would I get to the system journal (is it "journalctl -n" as root?)?
Offline
Oh, okay. How would I get to the system journal (is it "journalctl -n" as root?)?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
If you need to redact the value set for SSID, something is weird because it should be set to the essid which should be eduroam. (Indeed, I think that was meant to be part of the point of eduroam although admittedly it hasn't quite worked out like that.)
My connection to eduroam actually gets dropped for no apparent reason from time to time but I just assumed this was network flakiness. (In some cases, I know it IS network flakiness but I may have mistakenly extrapolated to a more general claim than is justified.) However, this tends to be so brief that I only actually notice if I'm looking at the indicator in the bar - it doesn't usually affect use of the web or email, for example.
I guess I'm asking how you know it is disconnected. Does it affect your use of network stuff or do you just see the disconnect? Because the disconnects I see are perfectly consistent with everybody else thinking they are never disconnected - if they don't look. (I don't know whether they would be obvious in Windows or not.)
Last edited by cfr (2013-11-08 04:22:50)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
@cfr:
I know it's disconnected because I can't use the network. HTTP connections stall and then respond "Can't connect to host"; ping responds "Destination host unreachable". This continues for a while (3-5 minutes) before the network returns to normal.
When the network does return to normal, it's always when I have just restarted the netctl profile; it can sometimes go down while I am using the network, but it has never gone back up while I was using the network. This might be sampling bias, because when the network is down I usually restart the profiles until it comes back up.
The SSID isn't eduroam, but I can usually connect to the network perfectly fine. This failure happens randomly, and can't figure out why...
The guest network (not authenticated with eduroam) also fails similarly (always at the same time).
Last edited by dabbler0 (2013-11-08 13:34:31)
Offline
What if you connected manually by using wpa_supplicant directly (along with dhcpcd or whatever you would use the get your IP) and run them in debug or verbose... and don't background them. Then just leave that terminal up and running, when it borks, see if it has anything intersting to say.
Offline
@WonderWoofy
I tried running wpa_supplicant with verbose (-dd flag) to connect, and got it to work in most circumstances. When it fails, it starts logging:
wlp1s0: RSN: processing PMKSA candidate list
wlp1s0: RSN: PMKSA candidate 00:0f:7d:bb:f7:53 selected for pre-authentication
wlp1s0: RSN: starting pre-authentication with 00:0f:7d:bb:f7:53
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portValid=1
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
TX EAPOL (preauth) - hexdump(len=4): 01 01 00 00
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
TX EAPOL (preauth) - hexdump(len=4): 01 01 00 00
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
TX EAPOL (preauth) - hexdump(len=4): 01 01 00 00
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
TX EAPOL (preauth) - hexdump(len=4): 01 01 00 00
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
...It keeps logging
TX EAPOL (preauth) - hexdump(len=4): 01 01 00 00
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStartuntil it times out. Then it repeats from the top. Do you have any idea what this means?
Edit:
It's not actually looping. It keeps going down the list of PMKSA candidates, and all of them fail in this same way (it retries the "CONNECTING" state a bunch of times and then switches to "AUTHENTICATED", but complains that it doesn't have a key and fails). There are a bunch of different routers where I am with the same SSID, which might be why there are multiple candidates? (Pure speculation; I have no idea). At any rate, wpa_supplicant can't perform preauth with any of them, and seems to cycle back to the first ones once it has exhausted and flushed them all.
Last edited by dabbler0 (2013-11-13 00:29:20)
Offline
Hi all,
So, I'm not sure what it does, but wicd (as opposed to wifi-menu or netctl) seems to do something clever. After getting wicd and configuring it with PEAP-GTC, my connection doesn't drop anymore.
Thanks.
Offline