我的网络服务没有在 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 设备以及如何使其工作?

海尼玛

如果我正确理解你的问题,你需要这样做......

改成/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,但你会明白的......

在此处输入图片说明

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Lubuntu 14.04中的“无网络连接”

网络指示器在Lubuntu中消失了

只有Skype在lubuntu中没有标题栏

Lubuntu 16.04.03引导失败并带有4.13

在lubuntu 16.04中没有GUI的Openbox登录黑屏?

亚马逊商城网络服务(MWS)-将我的优惠添加到现有产品中

lubuntu中的lxpanel中的网络图标问题

为什么`git pull`在我的网络服务器上失败?

无法连接到Lubuntu 14.04中的Wi-Fi网络

Lubuntu 服务器中的历史记录

Lubuntu 20.04 中 lightdm 服务的替代品是什么

无法更改lubuntu 17.10中的更新服务器

在Lubuntu中安装?

如何使用内置网络服务器返回 .php 文件的内容,在 url 中没有 .php 扩展名

lubuntu 14.04中我的垃圾桶在哪里?

我可以在Windows XP中安装Lubuntu ISO吗?

我可以默认在Lubuntu中图标化新窗口吗?

如何加快Android中的网络服务?

保护iOS中的网络服务通话

我正在尝试通过具有自定义字段的网络服务在穆德尔中添加新用户

lambda函数失败,并显示s3键错误。在亚马逊网络服务中

为什么我在golang中的网络服务器不处理并发请求?

Lubuntu无法在我的Macbook上安装:“ grub-efi-amd64-signed安装失败”

使用网络服务在Moodle中吸引所有用户

在带有Lubuntu的AcetoneISO中,我得到了错误:在/ usr / bin中找不到xorrisfs

Lubuntu 16.04中的启动磁盘创建器使USB只读,没有持久性存储选项

无法在lubuntu 14.04上安装pulseaudio(因为在Skype中没有声音)

系统启动时在Lubuntu中没有声音

在另一个网络服务中调用网络服务