root@:~# 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 Sat 2023-06-10 16:55:53 PDT; 4min 34s ago
Docs: man:interfaces(5)
Process: 1868 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Main PID: 1868 (code=exited, status=1/FAILURE)
CPU: 35ms
Jun 10 16:55:53 deviceid7317 systemd[1]: Starting Raise network interfaces...
Jun 10 16:55:53 deviceid7317 ifup[1875]: RTNETLINK answers: File exists
Jun 10 16:55:53 deviceid7317 ifup[1868]: ifup: failed to bring up eth1:1
Jun 10 16:55:53 deviceid7317 systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Jun 10 16:55:53 deviceid7317 systemd[1]: networking.service: Failed with result 'exit-code'.
Jun 10 16:55:53 deviceid7317 systemd[1]: Failed to start Raise network interfaces.
root@:~#
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
删除或者注接还是报错
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-06-10 17:28:23 PDT; 7s ago
Docs: man:interfaces(5)
Process: 268457 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Main PID: 268457 (code=exited, status=1/FAILURE)
CPU: 32ms
Jun 10 17:28:23 systemd[1]: Starting Raise network interfaces...
Jun 10 17:28:23 ifup[268464]: RTNETLINK answers: File exists
Jun 10 17:28:23 ifup[268457]: ifup: failed to bring up eth1:1
Jun 10 17:28:23 systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Jun 10 17:28:23 systemd[1]: networking.service: Failed with result 'exit-code'.
Jun 10 17:28:23 systemd[1]: Failed to start Raise network interfaces.
default via 104.149.141.131 dev eth1 onlink
104.149.141.131/31 dev eth1 proto kernel scope link src 104.149.141.130
108.181.24.15/31 dev eth1 proto kernel scope link src 108.181.24.14