我正在使用 Xubuntu 18.04,我的网卡有问题。
当我启动我的电脑时,我无法使用我的网卡:它没有出现在ifconfig
。但当我软重启时,一切都正常了。
在 Xubuntu 16.04 中我没有遇到任何问题。
我怎样才能纠正这个奇怪的行为?
这是我的lspci
输出:
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 04)
当我的lshw
网络断线时:
*-network UNCLAIMED
description: Ethernet controller
product: 82579V Gigabit Network Connection
*-network:0
description: Ethernet interface
capabilities: ethernet physical
*-network:1 DISABLED
description: Ethernet interface
capabilities: ethernet physical
有什么想法吗?谢谢!
编辑2019-06-14 15.20:
我的lshw
网络工作时:
*-network
description: Ethernet interface
product: 82579V Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eno1
version: 04
serial: 00:22:4d:7f:db:ca
size: 100Mbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.13-5 ip=10.19.85.167 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:28 memory:f7c00000-f7c1ffff memory:f7c39000-f7c39fff ioport:f080(size=32)
*-network:0
description: Ethernet interface
physical id: 1
logical name: virbr0
serial: 52:54:00:5a:c2:c1
capabilities: ethernet physical
configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=192.168.122.1 link=no multicast=yes
*-network:1 DISABLED
description: Ethernet interface
physical id: 2
logical name: virbr0-nic
serial: 52:54:00:5a:c2:c1
size: 10Mbit/s
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=tun driverversion=1.6 duplex=full link=no multicast=yes port=twisted pair speed=10Mbit/s
/etc/network/interfaces
简单来说就是:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
这里是输出cat /etc/netplan/*.yaml
:
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
答案1
在 Ubuntu 18.04 中有一个新的网络配置工具 netplan。Netplan 有时会出现一些时间问题。
尝试登录并输入
sudo netplan apply
并检查 ifconfig 或 ip 地址。
如果您的网络现在已配置,那么您就会遇到此时间问题。如果是这种情况,那么您可能应该阅读此 Netplan 在启动时不适用