You are not logged in.
Hello everyone, this is my first post in the forums and first time using arch so please bear with me. I recently bought an Asus UX51, formatted it and installed arch linux with the help of the beginner's guide. After overcoming several problems (preinstalled raid, nvidia optimus to name a few) I managed to get it running, installed a DE and was using wireless connection just fine with
# ip link set wlp3s0 up
# wifi-menu wlp3s0 Everything was going fine until I came for a holyday's week to my parents house and tried to connect to their wireless network to no avail. I have WAP in my house, same do they in their house (in which I'm right now).
I have been trying the past 2 days with netctl, and even the manual method described in the wiki , googled, etc. I'm already out of ideas so I decided it was time to ask for help. If it's of any use, wifi-menu scans the network properly, and # netctl status wlp3s0-interface_name returns this:![]()
Also read somewhere in the forums to try # journalctl -b , this is what I get on the last page:![]()
When I try #ping, I get the following after having to wait around 15 secs :
~$ ping google.com
ping: unknown host google.comI even tried booting from an USB with an arch iso, just to try getting a wired connection, mount my arch installation and download some other network manager just to see if I got any luck, but not even that worked (in my house, just by connecting the cable before booting I would automatically have internet access when booting with the iso, but it didn't work here...).
Any help would greatly be appreciated.
Last edited by contiver (2013-08-01 18:06:48)
Offline
The picture of your journal is hard to read, bit it kind of appears as though you have multiple profiles trying to run at the same time. You can only use one profile at a time. Or if you want proper roaming support, you need to set up netctl-auto.
To check to see if you have more than one thing trying to control your network, can you check/post the output of (where the stuff in the '[' and ']' are optional):
$ systemctl [list-units] --type=service Look for any things that might be atempting to control the network. Disable and stop them all. Or in the case of netctl, you can use the netctl command to do it as well (since it interfaces with systemd/systemctl quite well). Then try with just one profile. If it fails, you need to ensure that you stop that profile.
In the event that this doesn't work out, you should try to see if things work manually. That is, use wpa_supplicant and dhcpcd (or dhclient).
Offline
First of all thanks for the response.
I think I had an ethernet profile running apart from the wireless one (from when I tried going through the wired connection way). This is how # journalctl -b looks like now after disabling that (hopefully it's more readable than before):![]()
And this is the # systemctl --type=service:![]()
Is there anything more for me to try with netctl or should I just try once more the manual way and post the results?
Last edited by contiver (2013-08-01 02:11:32)
Offline
You need to also stop dhcpcd.service. That service is also trying to handle your network connection. It simply runs dhcpcd on all found interfaces, and this is not what you want if you are going to be starting netctl afterwords.
Offline
Stopped it. The journal looks pretty clean now (in the meaning of no relevant red messages, still get those nouveau ones but that's a different story I believe).
But that's only after booting, I noticed that if I try # ping google.com and wait until it replies with "unknown host", and then check # journalctl -b again, I get the same messages in red I had in the previous image, saying:
ntpd_intres[1179]: host name not found: 0.pool.ntp.org
ntpd_intres[1179]: host name not found: 1.pool.ntp.org
ntpd_intres[1179]: host name not found: 2.pool.ntp.org
ntpd_intres[1179]: host name not found: 0.pool.ntp.org
ntpd_intres[1179]: host name not found: 1.pool.ntp.org
ntpd_intres[1179]: host name not found: 2.pool.ntp.orgShould I take a picture anyway?
Offline
Yeah, those ntpd meddages are normal. When it can't find where it wants to sync to, this is to be expected.
So are you able to now associate with the access point and get an ip address using netctl? If you have those things, you may still be missing the dns servers that should be specified in /etc/resolv.conf. In any case, you should check the output of "ip route" or "route" if you have the net-tools package.
Now that you have successfully stopped all the things that could be conflicting with the network, I think the next debugging step would be to try to use the most basic of tools to get the network up and running. Read through this section of the wireless wiki page and then try to get things up using those tools. Since you seem to have indicated that you use WPA, you will need to use wpa_supplicant/wpa_passphrase and then dhcpcd.
Offline
This is my # ip route :![]()
If I can assume correctly that one of those IPs in the image is the one being assigned to my laptop, that would be strange since it's out of the range of values my router is set up to assign through the dhcp.
Tried editing resolv.conf to realize it's overwritten on reboot, so after googling a bit I tried creating a resolv.conf.head and added the router ip as it shows on my phone (on which I get wireless connection without much trouble, DNS and router IP show as the same).
After doing that, rebooting and trying ping I get the following:
$ ping google.com
PING google.com (173.194.42.4) 56(84) bytes of data.And it just hangs there until I press control-c, replying 100% packet loss, etc. (The last digit in the ip address shown changes every time I ping)
I guess I'll give the manual way a shot and post the results. Should I stop the netctl service too if I'm doing it with wpa_supplicant and the rest of the commands?
Last edited by contiver (2013-08-01 14:45:07)
Offline
I got it running !
Just followed the manual guide once more, but managed to bypass some problem I had the first time I tried (you could say I was a bit lost by the command in the wiki but managed to understand it a bit more this time)
I believe the setup my parents have here is pretty messed up, other people get similar problems from time to time with the network, but I don't really understand much to mess with it so I'd rather leave it like it is.
In case it's of any use to anybody I'll leave here how everything was left in the end in my laptop.
Used:
wpa_passphrase foobarssid foobarpasswordto generate:
network={
ssid="foobarssid"
#psk="foobarspassword"
psk=f5d1c49e15e679bebe385c37648d4141bc5c9297796a8a185d7bc5ac62f954e3
}I copy pasted that on my /etc/wpa_supplicant.conf ,which had a line at the start which seems was a leftover from the time I tried before (when I tried using wpa_supplicant it failed and complained about it in the error msg).
After that I used
wpa_supplicant -B -iwlp3s0 -c/etc/wpa_supplicant.confAfter that I used
dhcpcd -A wlp3s0That failed because it said that there already was a dhcpcd process running, I killed it, tried again and it all went fine. Tried ping and kept answering "unknown host". Tried rebooting and that's when # ping google.com started to behave like it should. Tried browsing a bit and no problems whatsoever.
Thanks a lot for the help!
Offline
So instead of copying and pasting the output of wpa_passphrase, you should redirect it. wpa_supplicant is *very* picky about whitespace and whatnot in the configuration file. So it is a much better idea to just let it write itself. In case you are not familiar with a redirect, it would be:
# wpa_passphrase SuperNetworkSSID password > /etc/wpa_supplicant.conf Alternatively, if you also want the info dumped to your screen to ensure that it is creating something legit, you can do:
# wpa_passphrase SuperNetworkSSID password | tee /etc/wpa_supplicant.conf If you parents setup should be very simple, such as just a single router connected to a cable/dsl modem, then maybe it would be a good idea to fix it. It won't take any know how really. You can just reset the router to the factory defaults, then go to the web interface after you connect with an ethernet cable (some routers will let you associate wirelessly before configuration too) then just set the SSID (network name), security type (wpa2 personal psk), and then of course the password. If they are not using anything fancy like port forwarding or static dhcp reservations, then that should be all it needs.
Offline
Thanks for the tip about wpa_supplicant, so far it's working good but I'll take it into account should I need to mess with the network settings manually again. The setup here is a modem with 2 routers (the signal from one doesn't reach very well to the 2nd floor so they use another one for it), so I'm not so sure about touching it.
I have 2 other things I'd like to know what they are. One is those red nouveau messages I get in the journalctl -b , because they also pop up after or while I log in, another one is a "fsck failed with error 8" that shows in red in the journal too, but I should probably open another thread for them after googling a bit more, they are inoffensive anyway.
One last question, once I get back to my home, can I just use the wireless network with netctl as I had been? or would I need to disable some of the manual stuff I changed now (like dhcpcd)?
Last edited by contiver (2013-08-01 21:07:41)
Offline