You are not logged in.
Hi, everybody.
I installed arch a few days ago, but I can't configure the wireless network. I follow the guide (Wireless Network Configuration) but I have a series of problems.
First I execute
ip link
to see the state of the connections.
This appears:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp7s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 88:ae:1d:25:c0:7c brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 78:e4:00:5c:cc:9f brd ff:ff:ff:ff:ff:ff
Then I execute
ip link set dev wlan0 up
And the result is this:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp7s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 88:ae:1d:25:c0:7c brd ff:ff:ff:ff:ff:ff
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 78:e4:00:5c:cc:9f brd ff:ff:ff:ff:ff:ff
Then, following the guide, the next step is to execute:
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
Well, when I execute this command nothing occurs. The cursor stays blinking eternally.
If I execute the command with -B and then I execute
dhcpcd wlan0
this appears:
wlan0: waiting for carrier
timed out
dhcpcd exited
I had to install the b43-firmware because my network controller is Broadcom Limited BCM4312 802.11b/g LP-PHY (rev01)
But I can't connect to the internet via wifi
Thank you
P.D.: Sorry for my bad english, it isn't my native language
Last edited by DarkShiro (2017-05-26 00:41:07)
Offline
And /etc/wpa_supplicant/wpa_supplicant.conf looks like what?
https://wiki.archlinux.org/index.php/WPA_supplicant
Did you have trouble connecting w/ wifi-menu?
Offline
It looks like this:
network={
ssid="My SSID"
#psk="My password"
psk="a lot of numbers and letters"
}
I generate the file with the command
wpa_passphrase "My-SSID password" > /etc/wpa_supplicant/wpa_supplicant
I got the name of my SSID by executing the command:
iw dev wlan0 scan
This only works after I execute
ip link set dev wlan0 up
Edit: I didn't prove with wifi-menu
Last edited by DarkShiro (2017-05-23 22:58:04)
Offline
Since you're not reporting any errors when running wpa_supplicant undaemonized and scanning works, try running dhcpcd with a bigger timeout
dhcpcd -d -t 120 # 2 minutes + debug messages
if that doesn't work, kill the wpa_supplicant instance and try non-daemonized with increased debugging:
wpa_supplicant -dd -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
If that doesn't tell you anything (wrong key, connection refused etc) you may face a bug in dhcpcd - try dhclient instead.
Offline
Thank you very much!
It worked when I ran
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
followed by
dhcpcd -d -t 120
Now the problem is that when I reboot, the connection is down and I have to run this commands again. Is there a way for the connection to stay up?
Offline
https://wiki.archlinux.org/index.php/Ne … k_managers
Pick one. Handcrafting networkmanagement is no good idea.
dhcpcd driven management is documented here: https://wiki.archlinux.org/index.php/Dhcpcd
Offline
Thanks for all your help!
I finally resolved this last problem adding in the .bash_profile this:
ip link set dev wlan0 up
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
sleep 1
dhcpcd -d -t 120
Offline