Мой сетевой сервис не добирается, перестал работать в lubuntu

Я пытался запустить сетевой сервис, но не работа. Я добираюсь ниже ошибки. Я попробовал много путей, но ни один не работал.

root@cerberos:~# service networking restart
Job for networking.service failed because the control process exited with error code. See "systemctl status networking.service" and "journalctl -xe" for details.

После ввода systemctl управляют, чтобы я получил это:

● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
  Drop-In: /run/systemd/generator/networking.service.d
           └─50-insserv.conf-$network.conf
   Active: failed (Result: exit-code) since Thu 2019-04-04 14:47:36 UTC; 5min ago
     Docs: man:interfaces(5)
  Process: 749 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
  Process: 746 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited
 Main PID: 749 (code=exited, status=1/FAILURE)

Apr 04 14:47:36 cerberos systemd[1]: Starting Raise network interfaces...
Apr 04 14:47:36 cerberos ifup[749]: Cannot find device "eth0"
Apr 04 14:47:36 cerberos ifup[749]: Failed to bring up eth0.
Apr 04 14:47:36 cerberos systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Apr 04 14:47:36 cerberos systemd[1]: Failed to start Raise network interfaces.
Apr 04 14:47:36 cerberos systemd[1]: networking.service: Unit entered failed state.
Apr 04 14:47:36 cerberos systemd[1]: networking.service: Failed with result 'exit-code'.
lines 1-17/17 (END)

Ниже конфигурационного файла/etc/network/interfaces дает мне это.

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# Source interfaces
# Please check /etc/network/interfaces.d before changing this file
# as interfaces may have been defined in /etc/network/interfaces.d
# See LP: #1262951
source /etc/network/interfaces.d/*.cfg

and the content of /etc/network/interfaces.d/ shows 

uto eth0
iface eth0 inet static
address 10.4.0.2
netmask 255.255.255.0
gateway 10.4.0.1
dns-nameservers 10.4.1.12

На самом деле я не могу понять, почему ifup не может найти eth0 устройство и как может заставить его работать?

0
задан 6 April 2019 в 01:52

1 ответ

Если я понимаю Вашу проблему правильно, необходимо сделать это...

Изменение /etc/network/interfaces быть похожими на это...

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback

# Source interfaces
# Please check /etc/network/interfaces.d before changing this file
# as interfaces may have been defined in /etc/network/interfaces.d
# See LP: #1262951
#    source /etc/network/interfaces.d/*.cfg

#    and the content of /etc/network/interfaces.d/ shows 

#   auto eth0
#    iface eth0 inet static
#    address 10.4.0.2
#    netmask 255.255.255.0
#    gateway 10.4.0.1
#    dns-nameservers 10.4.1.12

Затем перейдите к NetworkManager GUI, создайте новое Wired Connection, установите его для ручного обращения и введите вышеупомянутую статическую информацию там. Вот то, на что это должно быть похожим..., что мой будет выглядеть немного отличающимся, чем Ваш, как я нахожусь на 18,10, но Вы получите идею...

enter image description here

0
ответ дан 25 October 2019 в 06:59

Другие вопросы по тегам:

Похожие вопросы: