You are not logged in.
Pages: 1
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=dhcpand tried
systemctl enable netctl-ifplugd@enp0s3.service
systemctl start netctl-ifplugd@enp0s3.servicebecause 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.serviceIt 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.serviceI 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
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.
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
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 ifplugdInstall 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 listOffline
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.servicealso tried to set the interface manually up:
ip link set enp0s3 upnon 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
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)
Offline
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
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)
Offline
Alright tried it with the same success as before:
netctl start ethernet-dhcpwhen I do now
netctl enable ethernet-dhcpI 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
What are the ouputs of
ip a
systemctl list-unit-files --state=enabled
netctl list
netctl status ethernet-dhcp?
Offline
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
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"
Offline
Pages: 1