You are not logged in.

#1 2017-02-06 14:38:36

Eenin
Member
Registered: 2017-02-06
Posts: 3

[SOLVED] Networking problem

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:ff

Since 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 link

shows 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=stateless
Description='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=10

When 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

#2 2017-02-06 15:12:22

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [SOLVED] Networking problem

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.

Offline

#3 2017-02-06 15:20:52

Eenin
Member
Registered: 2017-02-06
Posts: 3

Re: [SOLVED] Networking problem

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

#4 2017-02-06 15:25:10

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [SOLVED] Networking problem

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.

Offline

#5 2017-02-06 15:50:41

Eenin
Member
Registered: 2017-02-06
Posts: 3

Re: [SOLVED] Networking problem

Ok, I disabled NetworkManager and rebooted and I finally managed to connect to the wifi! Thank you Docbroke!

Offline

#6 2017-02-06 15:53:45

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [SOLVED] Networking problem

That's nice. Please mark this thread solved by editing your first post, and prepending [solved] to the title.

Offline

Board footer

Powered by FluxBB