You are not logged in.

#1 2018-10-01 09:58:00

Komisch
Member
Registered: 2018-05-30
Posts: 45

Ifplugd usage?

Greetings Community,

I am trying to setup a network connection with ifplugd

I want to use the following profile:

Description="sth"
Interface=enp0s3
Connection=ethernet
IP=dhcp

and tried

systemctl enable netctl-ifplugd@enp0s3.service
systemctl start netctl-ifplugd@enp0s3.service

because it didn't work I also tried before this step:

netctl enable ethernet-dhcp

(the network configuration guide doesn't help ME here)

The interface is down, dhcpcd isn't enabled in systemctl.
When I start and enable it I don't get errors, it is simply ignored (loaded, but not started/active)

Thanks in advance.

@Edit:
I was wrong about the no error thing, it doesn't print one but in journalctl it says, that ifplugd could not be found (no idea how to fix that...)

But when I do

systemctl enable netctl-ifplugd@ethernet-dhcp.service
systemctl start netctl-ifplugd@ethernet-dhcp.service

It says, timed out waiting for device sys-subsystem-net-devices-ethernet-dhcp.device - probably because he expects an interface and I gave him an profile. But I don't know where and when to tell him to use the profile or if he already knows that he has to use it.
In that case the question would be "What is missing?".

Even with:

systemctl enable dhcpcd@eth0.service
systemctl start dhcpcd@eth0.service

I still get no error (not even in journalctl) but when I ping google.com I get "Temporary failure in name resolution".

Could there be problems with the edited /etc/hosts file:
added 127.0.1.1 username to it (where username is me) bc instructions told me to.

Last edited by Komisch (2018-10-01 11:14:11)

Offline

#2 2018-10-01 13:09:07

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,723
Website

Re: Ifplugd usage?

Is there a particular reason, you're using netctl?
The ifplugd functionality is natively supported by systemd-networkd, as is DHCP.
So no need to install two additional software packages to achieve your goal.

Komisch wrote:

Could there be problems with the edited /etc/hosts file:
added 127.0.1.1 username to it (where username is me) bc instructions told me to.

Who instructed you to do this?

Last edited by schard (2018-10-01 13:13:00)


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2018-10-01 13:31:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,839

Re: Ifplugd usage?

Ftr, systemd-networkd is by no stretch "native". It's just another NM daemon (and about the worst one I've seen so far)

On topic, @Komisch
You're messing around a lot.
1. ensure to have read https://wiki.archlinux.org/index.php/Netctl
2. stop before you did "because it didn't work I also tried before this step:"
3.

but in journalctl it says, that ifplugd could not be found

pacman -Qs ifplugd

Install https://www.archlinux.org/packages/extr … 4/ifplugd/
4. If that's not the cause, post the outputs of

pacman -Qs ifplug
ip a
systemctl list-unit-files --state=enabled
netctl list

Online

#4 2018-10-01 14:28:11

Komisch
Member
Registered: 2018-05-30
Posts: 45

Re: Ifplugd usage?

Hmm, pacman -Qs gave me that it isn't installed, thought as schard said to be native.
When you say that this is the "worst one" which would you suggest to use.

Is netctl at all a good choice? Is netctl-auto a good deamon?

What was wrong with

systemctl enable dhcpcd@enp0s3.service
systemctl start dhcpcd@enp0s3.service

also tried to set the interface manually up:

ip link set enp0s3 up

non of this gave any feedback and ping still gave "Temporary failure in name resolution"

@schard

the arch installation guide says so (https://wiki.archlinux.org/index.php/installation_guide)


Add matching entries to hosts(5):

/etc/hosts

127.0.0.1    localhost
::1        localhost
127.0.1.1    myhostname.localdomain    myhostname

Last edited by Komisch (2018-10-01 14:31:35)

Offline

#5 2018-10-01 14:32:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,839

Re: Ifplugd usage?

ifplugd isn't installed and that's the problem, so install the package.
Nothing was wrong with those calls at all - just the entire stuff below is bogus.

schard was talking about systemd-netword, which is an entirely different, unrelated thing from ifplugd and is in a category w/ netctl or NetworkManager.

Solicitiation/product recommendations violate forum rules, so I'll just say that I'm happily using netctl and found little to no reason to complain.
(The biggest issue might be the limited availability of GUI/systray frontends - but that doesn't concern me)

Online

#6 2018-10-01 14:34:31

Komisch
Member
Registered: 2018-05-30
Posts: 45

Re: Ifplugd usage?

My problem is I can't get a connection to the internet - so I can install it after I atleast temporarly be able to connect

Offline

#7 2018-10-01 14:37:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,839

Re: Ifplugd usage?

Ah, ok.
Just start the profile you wrote and posted in your first post "sudo netctl start sth" (though it's the file name and not the description)

Do you know what ifplugd actually does and handles?
It's not at all required for some static connection (notably w/ the cable plugged all the time)

Online

#8 2018-10-01 14:56:46

Komisch
Member
Registered: 2018-05-30
Posts: 45

Re: Ifplugd usage?

Alright tried it with the same success as before:

netctl start ethernet-dhcp

when I do now

netctl enable ethernet-dhcp

I get the message, that it is already enabled, so all fine till now

still I can't connect. I also tried to additionally enable it via systemctl but then it tells it is not meant to be enabled this way.

Journalctl only holds one line:
username: TTY=tty1 ; PWD=/home/username ; USER=root ; COMMAND=/usr/bin/netctl start ethernet-dhcp

Offline

#9 2018-10-01 15:35:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,839

Re: Ifplugd usage?

What are the ouputs of

ip a
systemctl list-unit-files --state=enabled
netctl list
netctl status ethernet-dhcp

?

Online

#10 2018-10-01 16:19:06

Komisch
Member
Registered: 2018-05-30
Posts: 45

Re: Ifplugd usage?

ip a

-> enp0s3 is up

systemctl list-unit-files --state=enabled

autovt@.service enabled
getty@.service enabled
remote-fs.target enabled

like I said systemctl refuses to enable netctl because (as it says) it isn't meant to be enabled by systemctl

netctl list

->* ethernet-dhcp

netctl status ethernet-dhcp

active (exited)
Status: "online"
but somelines below:
Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found
Anyway last line says:
Started network profile 'ethernet-dhcp'

Last edited by Komisch (2018-10-01 16:19:49)

Offline

#11 2018-10-01 16:22:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,839

Re: Ifplugd usage?

Do not paraphrase the output, post the entire, actual output.
If you must (because of the network issues), post a photo (use am imageboard, only post a link here)

Also (from what I grasped) add the output of "ip r"

Online

Board footer

Powered by FluxBB