You are not logged in.
Hello, I was using connection to the Internet only through ethernet (which works fine) and when I'm trying connect wirelessly i'm having some issues.
I killed or stopped all dhcpcd, NetworkManager, widc, etc...
First of all my driver status:
$ lspci -k
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 2200 (rev c4)
Subsystem: Intel Corporation Centrino Wireless-N 2200 BGN
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
Getting up interface doesn't give me any errors:
# ip link set wlp3s0 up
Also firmware has been loaded:
$ dmesg | grep firmware
[ 8.983661] iwlwifi 0000:03:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
Now, i'm trying to connect manually:
$ iw dev wlp3s0 link # OK
Not connected
# ip link set wlp3s0 up # OK
$ ip link show wlp3s0 # OK
3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether <MAC> brd ff:ff:ff:ff:ff:ff
# wpa_passphrase "SSID "PASSPHRASE" > /etc/wpa_supplicant/wpa_supplicant.conf # OK
# wpa_supplicant -i wlp3s0 -c /etc/wpa_supplicant/wpa_supplicant.conf # OK
Successfully initialized wpa_supplicant
wlp3s0: SME: Trying to authenticate with <MAC> (SSID='SSID' freq=2462 MHz)
wlp3s0: Trying to associate with<MAC> (SSID='SSID' freq=2462 MHz)
wlp3s0: Associated with <MAC>
wlp3s0: WPA: Key negotiation completed with <MAC> [PTK=CCMP GTK=TKIP]
wlp3s0: CTRL-EVENT-CONNECTED - Connection to <MAC> completed [id=0 id_str=]
$ iw dev wlp3s0 link # OK
Connected to 94:44:52:7e:0b:36 (on wlp3s0)
...
# dhcpcd wlp3s0 # Problem
DUID ....
wlp3s0: IAID ....
wlp3s0: soliciting a DHCP lease
wlp3s0: soliciting an IPv6 router
wlp3s0: no IPv6 Routers available
timed out
dhcpcd exited
# pkill dhcpcd
# sudo dhcpcd wlp3s0 -4 # Same problem
DUID <some address>
wlp3s0: IAID <some address>
wlp3s0: soliciting a DHCP lease
timed out
dhcpcd exited
Thanks in advance.
Last edited by hradecek (2016-06-21 08:06:26)
$ perl -wle '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++'
Offline
I don't quite see the issue... it seems to be properly connected to the access point via WPA.
EDIT On the other hand, given how you described your problem (which is: not at all), I'm just going to assume that your intentions are to establish a working connection to the network, which consists (among other things) of obtaining an IP address and setting a DNS server. Both things are handled by `dhcpcd`, which does not seem to be done in your given code snippets.
In particular
systemctl start dhcpcd
Ignore this, I haven't seen the scroll bar in the code tag. I'm sorry for the noise.
Last edited by ayekat (2015-11-28 15:53:26)
Offline
Ayekat, the problem seems to be that dhcpcd is timing out. (EDIT for the above edit: Ayekat, the OP is properly running dhcpcd in the code snippets. Scroll down, read the whole thing.)
hradecek, in the code snippets your provided you do not background wpa_supplicant. Do you leave it running and go to another terminal to run dhcpcd?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I'm trying to connect to my home wi-fi network. I'm not using systemd at the moment. After some experiments and like 5 resets of my wi-fi router I have managed to connect to it.
So I guess it is kinda broken or at least it is behaving weird, which I wasn't assuming.
Anyway thanks for your time
EDIT: @Trilby: Yeah sorry, i was pasting stuff from many terminals. Of course 'wpa_supplicant' was running haha. I think I'm not that "newbie" haha.
Last edited by hradecek (2015-11-28 15:55:27)
$ perl -wle '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++'
Offline
Also, the obvious question, is there a DHCP server running on that network? Is it a router or another computer? It is managed and not ad-hoc, right?
What is the output of iw wlp3s0 info after the failed dhcpcd?
As a data point, have you tried dhclient instead of dhcpcd
Do you own the router (or whatever is running the DHCP server) and do you have access to its logs?
Edit: We were posting at the same time.
Last edited by ewaller (2015-11-28 15:57:00)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline