You are not logged in.
Pages: 1
I have a ethernet (end0) and a USB wireless (wlu0). I defined netctl services for both interfaces.
end0 as a static IP and wlu0 gets IP from dhcp
When system starts, wlu0 works well, but end0 failed as:
x netctl@end0.service - A basic static ethernet connection
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; enabled; preset: disabled)
Drop-In: /etc/systemd/system/netctl@end0.service.d
`-profile.conf
Active: failed (Result: exit-code) since Sun 2023-03-19 10:21:32 CST; 22min ago
Docs: man:netctl.profile(5)
Process: 201 ExecStart=/usr/lib/netctl/network start end0 (code=exited, status=1/FAILURE)
Main PID: 201 (code=exited, status=1/FAILURE)
CPU: 92msMar 19 10:21:32 node1 systemd[1]: Starting A basic static ethernet connection...
Mar 19 10:21:32 node1 network[201]: Starting network profile 'end0'...
Mar 19 10:21:32 node1 network[201]: The interface of network profile 'end0' is already up
Mar 19 10:21:32 node1 systemd[1]: netctl@end0.service: Main process exited, code=exited, status=1/FAILU>
Mar 19 10:21:32 node1 systemd[1]: netctl@end0.service: Failed with result 'exit-code'.
Mar 19 10:21:32 node1 systemd[1]: Failed to start A basic static ethernet connection.
It looks like end0 interface starts before netctl service. So I have to set end0 down and restart netctl service.
What should I do to make it work when system starts?
Thank for any suggestion
Last edited by gcd0318 (2023-03-19 02:52:11)
Offline
Find the other service that put the interface up and stop / disable it.
find /etc/systemd -name \*.service -type l -a -xtype f -printf %f\\n
Offline
Find the other service that put the interface up and stop / disable it.
find /etc/systemd -name \*.service -type l -a -xtype f -printf %f\\n
It's clear that only networkd services and 2 netctl services for the wireless (netctl@wlu1) and wired (netctl@end0) connections are about network
systemd-networkd-wait-online.service
dbus-org.freedesktop.timesync1.service
dbus-org.freedesktop.network1.service
dbus-org.freedesktop.resolve1.service
getty@tty1.service
haveged.service
systemd-timesyncd.service
netctl@wlu1.service
systemd-networkd.service
netctl@end0.service
sshd.service
systemd-resolved.service
That's the most confusings to me
Offline
netctl@.service and systemd-networkd.service are enabled. Choose one and only one networking service to use.
Солідарність з Україною
Offline
netctl@.service and systemd-networkd.service are enabled. Choose one and only one networking service to use.
Thanks, this looks reasonable. I'm trying, and also turning to docs for more details.
BTW, could you please give more idea about why the conflict only affect ethernet interface (end0), but not wireless (wlu)?
Offline
Oh, I got it from other reference
Thanks a lot @schard
Offline
Pages: 1