RHEL 8 中缺少以太网接口

RHEL 8 中缺少以太网接口

早些时候,Network-scripts 目录中没有任何内容,但从 ISO 安装网络脚本后,几乎所有文件都出现了,但 RHEL 8 VM 中的网络接口丢失了。

rhel8 中缺少网络接口

我尝试使用 nmtui 添加以太网设备,它会创建文件,但在重新启动网络服务后出现错误“找不到设备”。

Feb 28 12:02:57 localhost.localdomain network[9163]: 'network-scripts' will be removed>
Feb 28 12:02:57 localhost.localdomain network[9164]: It is advised to switch to 'Netwo>
Feb 28 12:03:00 localhost.localdomain NET[9284]: /etc/sysconfig/network-scripts/ifup-p>
Feb 28 12:03:00 localhost.localdomain network[9149]: [46B blob data]
Feb 28 12:03:01 localhost.localdomain NetworkManager[7515]: <info>  [1582909381.5032] >
Feb 28 12:03:01 localhost.localdomain NetworkManager[7515]: <info>  [1582909381.5842] >
Feb 28 12:03:01 localhost.localdomain network[9149]: Bringing up interface enp0s3:  Error: Connection activation failed: No suitable device found for this connection (device found for this connection (device virbr0 not available because profile is not available because profile is not compatible with device (mismatching interface name)).>
Feb 28 12:03:01 localhost.localdomain network[9149]: [13B blob data]
Feb 28 12:03:01 localhost.localdomain network[9149]: RTNETLINK answers: File exists
Feb 28 12:03:01 localhost.localdomain network[9149]: RTNETLINK answers: File exists
Feb 28 12:03:01 localhost.localdomain network[9149]: RTNETLINK answers: File exists
Feb 28 12:03:01 localhost.localdomain network[9149]: RTNETLINK answers: File exists
Feb 28 12:03:01 localhost.localdomain network[9149]: RTNETLINK answers: File exists
Feb 28 12:03:01 localhost.localdomain network[9149]: RTNETLINK answers: File exists
Feb 28 12:03:01 localhost.localdomain network[9149]: RTNETLINK answers: File exists
Feb 28 12:03:01 localhost.localdomain network[9149]: RTNETLINK answers: File exists
Feb 28 12:03:01 localhost.localdomain network[9149]: RTNETLINK answers: File exists
Feb 28 12:03:02 localhost.localdomain systemd[1]: network.service: Control process exi>
Feb 28 12:03:02 localhost.localdomain systemd[1]: network.service: Failed with result >
Feb 28 12:03:02 localhost.localdomain systemd[1]: Failed to start LSB: Bring up/down n>
-- Subject: Unit network.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit network.service has failed.
-- 
-- The result is RESULT.
lines 1389-1415/1415 (END)

添加设备后在此输入图像描述

从评论中添加:输出ip link

[root@localhost network-scripts]# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether 52:54:00:21:d2:2f brd ff:ff:ff:ff:ff:ff
3: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN mode DEFAULT group default qlen 1000
    link/ether 52:54:00:21:d2:2f brd ff:ff:ff:ff:ff:ff
[root@localhost network-scripts]#
Thanks for your reply A B,
There is no change in Hardware or Accidental damage. i was able to use same VM 3-4 months ago. suddenly network was not working. i tried installing new VM with RHEL8, still same issue.

Adding Output of #lspci -n -n

00:00.0 Host bridge [0600]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge [8086:7190] (rev 01)
00:01.0 PCI bridge [0604]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge [8086:7191] (rev 01)
00:07.0 ISA bridge [0601]: Intel Corporation 82371AB/EB/MB PIIX4 ISA [8086:7110] (rev 08)
00:07.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB PIIX4 IDE [8086:7111] (rev 01)
00:07.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 08)
00:07.7 System peripheral [0880]: VMware Virtual Machine Communication Interface [15ad:0740] (rev 10)
00:0f.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
00:10.0 SCSI storage controller [0100]: BusLogic BT-946C (BA80C30) [MultiMaster 10] [104b:1040] (rev 01)
00:11.0 PCI bridge [0604]: VMware PCI bridge [15ad:0790] (rev 02)
00:15.0 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:15.1 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:15.2 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:15.3 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:15.4 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:15.5 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:15.6 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:15.7 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:16.0 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:16.1 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:16.2 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:16.3 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:16.4 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:16.5 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:16.6 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:16.7 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:17.0 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:17.1 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:17.2 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:17.3 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:17.4 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:17.5 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:17.6 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:17.7 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:18.0 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:18.1 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:18.2 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:18.3 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:18.4 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:18.5 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:18.6 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
00:18.7 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
02:00.0 USB controller [0c03]: VMware USB1.1 UHCI Controller [15ad:0774]
02:01.0 Ethernet controller [0200]: Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE] [1022:2000] (rev 10)
02:02.0 Multimedia audio controller [0401]: Ensoniq ES1371/ES1373 / Creative Labs CT2518 [1274:1371] (rev 02)
02:03.0 USB controller [0c03]: VMware USB2 EHCI Controller [15ad:0770]
02:05.0 SATA controller [0106]: VMware SATA AHCI controller [15ad:07e0]
02:06.0 Ethernet controller [0200]: Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE] [1022:2000] (rev 10)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

答案1

在将旧的 RedHat 实例升级到 RHEL 7 后,我遇到了这个问题(或类似的问题)。一些与网络相关的服务在启动时失败。它们会超时,因此我的系统不会被阻止启动,但它无法获得任何网络连接。

编辑:我以前的解决方案不完整,下次我必须应用它时会失败。现在看来,这是完整的解决方案。

我发现 Red Hat 的这篇文章描述了该问题以及对我有用的解决方案:https://access.redhat.com/solutions/2592561 这篇文章非常准确地描述了我的情况:使用 DVD ISO 映像将 VMWare 来宾从 6 升级到 7,该映像不包含可以防止此问题的“勘误表”。

我最终运行了这些命令:

nmcli connection modify 'System eth0' connection.interface-name ens192
nmcli connection modify 'System eth0' connection.id ens192
nmcli connection up ens192

重新启动,系统又恢复正常了!

相关内容