You are not logged in.
Pages: 1
Hi everyone! I just switched from Ubuntu to Arch, and I am having some problems with ethernet and wifi. When I was at home I set up both ethernet and wifi and everything was working. Now that I am using my laptop in another place it won't connect to the new wifi (and ethernet does not work either). First, i check i the cards are working:
[ λ : ~ ] ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 68:f7:28:7a:2e:37 brd ff:ff:ff:ff:ff:ff
3: wlp4s0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 5c:c5:d4:a7:04:04 brd ff:ff:ff:ff:ff:ffSince the wifi (wlp4s0) is marked as DOWN, I try to bring it up by executing
ip link set wlp4s0 up, but a quick check with
ip linkshows that the wifi is still DOWN. I activated dhcpcd for both, and even created (as the beginner guide suggests) the following two files for netctl:
Description='A basic dhcp ethernet connection'
Interface=enp0s25
Connection=ethernet
IP=dhcp
#DHCPClient=dhcpcd
#DHCPReleaseOnStop=no
## for DHCPv6
#IP6=dhcp
#DHCP6Client=dhclient
## for IPv6 autoconfiguration
#IP6=statelessDescription='A simple WPA encrypted wireless connection'
Interface=wlp4s0
Connection=wireless
Security=wpa
IP=dhcp
ESSID='MyNetwork'
# Prepend hexadecimal keys with \"
# If your key starts with ", write it as '""<key>"'
# See also: the section on special quoting rules in netctl.profile(5)
Key='WirelessKey'
# Uncomment this if your ssid is hidden
#Hidden=yes
# Set a priority for automatic profile selection
#Priority=10When rebooting, I get the following two errors:
Failed to start dhcpcd on enp0s25 [...]and
Failed to start dhcpcd A simple WPA encrypted wireless connection [...]. Both errors suggest that I check
systemctl status', and here are the two entries:
● dhcpcd@enp0s25.service - dhcpcd on enp0s25
Loaded: loaded (/usr/lib/systemd/system/dhcpcd@.service; enabled; vendor preset: disabled)
Active: failed (Result: resources) since Mon 2017-02-06 11:32:00 UTC; 4min 49s ago
Process: 330 ExecStart=/usr/bin/dhcpcd -q -w %I (code=exited, status=0/SUCCESS)
Feb 06 11:32:00 anonymous systemd[1]: Starting dhcpcd on enp0s25...
Feb 06 11:32:00 anonymous systemd[1]: dhcpcd@enp0s25.service: PID file /run/dhcpcd-enp0s25.pid not readable (yet?) after start: No such file or directory
Feb 06 11:32:00 anonymous systemd[1]: Failed to start dhcpcd on enp0s25.
Feb 06 11:32:00 anonymous systemd[1]: dhcpcd@enp0s25.service: Unit entered failed state.
Feb 06 11:32:00 anonymous systemd[1]: dhcpcd@enp0s25.service: Failed with result 'resources'.● netctl@wireless\x2dwpa.service - A simple WPA encrypted wireless connection
Loaded: loaded (/etc/systemd/system/netctl@wireless\x2dwpa.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-02-06 11:32:16 UTC; 5min ago
Docs: man:netctl.profile(5)
Process: 349 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
Main PID: 349 (code=exited, status=1/FAILURE)
Feb 06 11:32:00 anonymous systemd[1]: Starting A simple WPA encrypted wireless connection...
Feb 06 11:32:00 anonymous network[349]: Starting network profile 'wireless-wpa'...
Feb 06 11:32:16 anonymous network[349]: WPA association/authentication failed for interface 'wlp4s0'
Feb 06 11:32:16 anonymous network[349]: Failed to bring the network up for profile 'wireless-wpa'
Feb 06 11:32:16 anonymous systemd[1]: netctl@wireless\x2dwpa.service: Main process exited, code=exited, status=1/FAILURE
Feb 06 11:32:16 anonymous systemd[1]: Failed to start A simple WPA encrypted wireless connection.
Feb 06 11:32:16 anonymous systemd[1]: netctl@wireless\x2dwpa.service: Unit entered failed state.
Feb 06 11:32:16 anonymous systemd[1]: netctl@wireless\x2dwpa.service: Failed with result 'exit-code'.When trying to connect using NetworkManager (GNOME) it won't connect. What can I do?
Last edited by Eenin (2017-02-06 16:01:58)
Offline
First step is to choose only one networkmanager, you cannot use all (netctl+networkmanager+dhcpcd). Once you choose one disable all other and try to setup your network with that.
Arch is home!
https://github.com/Docbroke
Offline
Oh, I tought that dhcpcd was the tool responsible for getting the dynamic IP, thus it had to interact with networkmanager/netctl. Anyway, I would like to use the one that is more user-frienly. From what I understood, in order to connect to a new Wifi in netctl i should create a new profile, correct?
Offline
Dhcpcd is started automatically by netctl/networkmanager when needed, or it can be used directly without them. So if you are using netctl you should not enable dhcpcd.
Yes you need to create new profile, it would be easier to create with wifi-menu. ( You will need dialog installed). Once profile is created with wifi-menu, it can be used with netctl.
Arch is home!
https://github.com/Docbroke
Offline
Ok, I disabled NetworkManager and rebooted and I finally managed to connect to the wifi! Thank you Docbroke!
Offline
That's nice. Please mark this thread solved by editing your first post, and prepending [solved] to the title.
Arch is home!
https://github.com/Docbroke
Offline
Pages: 1