You are not logged in.

#1 2019-11-04 17:40:03

Cator Canulis
Member
Registered: 2018-03-23
Posts: 13

netctl fails because "interface already up"

Cheers,

I installed the most recent version of arch on my server yesterday.

Despite the obvious disadvantages I decided to hook the server up via wifi (so I can place it whereever I want).

I installed dhcpcd, netctl, dialog (for wifi-menu) and wpa_supplicant.

Connecting to wifi worked during installation but not in the installed system.

ntctl won't configure the interface because it's already up an configured (but by what?).

Issuing

    ip link set wlp2s0 down

and then

    netctl start wifi2

works. On the next reboot, it's the same problem. How can I set up netctl configuring the wifi interface persistently?


Thanks in advance

Markus

Offline

#2 2019-11-04 17:45:48

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: netctl fails because "interface already up"

systemctl list-unit-files --state=enabled

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2019-11-04 17:46:06

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 412
Website

Re: netctl fails because "interface already up"

You more than likely have multiple services trying to manage your network. What's the output of

systemctl list-unit-files --state=enabled

"the wind-blown way, wanna win? don't play"

Offline

#4 2019-11-04 21:37:07

Cator Canulis
Member
Registered: 2018-03-23
Posts: 13

Re: netctl fails because "interface already up"

The output was
- autovt.service
- dhcpcd.service
- getty0.service
- netctl.service
- sshd.service
- remote-fs.target

I enabled netctl. But there is no difference wether it is enabled or not.

Offline

#5 2019-11-05 00:02:47

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 412
Website

Re: netctl fails because "interface already up"

This link from the netctl wiki appears to match your issue, try the steps outlined there if you haven't already.


"the wind-blown way, wanna win? don't play"

Offline

#6 2019-11-05 00:12:27

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: netctl fails because "interface already up"

You have dhcpcd.service and netctl.service both attempting to control the interface.

Offline

#7 2019-11-05 03:00:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: netctl fails because "interface already up"

Cator Canulis wrote:

The output was
- autovt.service
- dhcpcd.service
- getty0.service
- netctl.service
- sshd.service
- remote-fs.target

I enabled netctl. But there is no difference wether it is enabled or not.

No, it was not.   Please post actual output when it is requested. 
Regardless, carefully read loqs' post.

Last edited by ewaller (2019-11-05 03:02:15)


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

#8 2019-11-05 08:04:15

Cator Canulis
Member
Registered: 2018-03-23
Posts: 13

Re: netctl fails because "interface already up"

Thanks for the Link CarboChauvinist. This solution worked for me already. Unfortunately it does not survive reboot. Also "ForceConnect=yes" doesn't solve the problem.

Oddly enough, I disabled all network related services that I could find (dhcpcd, netctl and also wpa_supplicant). The error message about the failed netctl service remained.

I solved it for the time beeing by creating a systemd-unit that shuts the interface down and then reenables it, in the late boot stages. But it doesn't seem like the correct way to solve this issue.

@ewaller: Sorry, but I cant copy paste from a command line only machine without network access. Typing it in seemed impractical.

Offline

#9 2019-11-05 08:37:52

Cator Canulis
Member
Registered: 2018-03-23
Posts: 13

Re: netctl fails because "interface already up"

loqs wrote:

You have dhcpcd.service and netctl.service both attempting to control the interface.

I had a look at /etc/dhcpcd.conf but couldn't find any setting that would indicate that dhcpcd is configuring wlp2s0.

Offline

#10 2019-11-05 08:54:06

seth
Member
Registered: 2012-09-03
Posts: 49,947

Re: netctl fails because "interface already up"

The unconditional dhcpcd service (w/o @something) seeks to control all interfaces.

Online

#11 2019-11-05 10:33:40

Cator Canulis
Member
Registered: 2018-03-23
Posts: 13

Re: netctl fails because "interface already up"

How can this be prevented? I'm completely new to "manuel networking". If necessary I will dig deeper through the wiki pages, but maybe it's just a very simple command or setting in some conf-file...

Last edited by Cator Canulis (2019-11-05 10:34:06)

Offline

#12 2019-11-05 12:40:14

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: netctl fails because "interface already up"

Choose one network management service to use on the system and stop plus disable the other.

Offline

Board footer

Powered by FluxBB