Hello, gute Nacht,
I have a persistent failure in networking.service. Interface eth0 is working normally. I don't know the reason for this error and how to solve it:
Code
# systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-11-22 20:20:06 CET; 5s ago
Docs: man:interfaces(5)
Process: 31960 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Main PID: 31960 (code=exited, status=1/FAILURE)
nov 22 20:20:06 host.myhost.com systemd[1]: Starting Raise network interfaces...
nov 22 20:20:06 host.myhost.com ifup[31960]: RTNETLINK answers: File exists
nov 22 20:20:06 host.myhost.com ifup[31960]: ifup: failed to bring up eth0
nov 22 20:20:06 host.myhost.com systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
nov 22 20:20:06 host.myhost.com systemd[1]: networking.service: Failed with result 'exit-code'.
nov 22 20:20:06 host.myhost.com systemd[1]: Failed to start Raise network interfaces.
Alles anzeigen
final error says "Failed to start Raise network interfaces", although the interfaces are raised and working. I don't understand
this is the interface configuration:
Code
# cat /etc/etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 89.58.57.125
netmask 255.255.255.0
gateway 89.58.57.1
dns-nameservers 1.1.1.1 1.0.0.1
Alles anzeigen
Code
# cat /etc/network/interfaces.d/50-cloud-init.cfg
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 89.58.57.123/22
gateway 89.58.56.1
When I comment all the lines inside file: 50-cloud-init.cfg, the server hangs and it doesn't work.
Should I keep file 50-cloud-init.cfg always active?
What is the right way to configure an static IP in Netcup and stop that error in networking.service?
thanks for any help!