我偶尔会遇到有线连接失败的情况。重启一次、两次或更多次即可解决问题,如果能正常工作,则在到达登录屏幕时(SSD 上需要几秒钟)即可正常工作。我运行的是 19.04。我的笔记本电脑(除了无线)运行的是 18.10,也遇到了类似的问题。这两台机器也安装了 Windows,似乎没有遇到此问题,所以我几乎可以肯定这不是我的路由器/调制解调器/网络(它们是新的)。如果可能的话,我宁愿通过终端重新启动网络连接/接口,或者更好地解决问题。我尝试在设置中打开和关闭连接,但不起作用。发生这种情况时,有哪些好的故障排除步骤?
sudo lshw -C network
*-network
description: Ethernet interface
product: Ethernet Connection I217-V
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eno1
version: 04
serial: 94:de:80:6c:5b:dd
size: 1Gbit/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-4 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:26 memory:d3a00000-d3a1ffff memory:d3a3d000-d3a3dfff ioport:f080(size=32)
*-network UNCLAIMED
description: Network controller
product: RT5592 PCIe Wireless Network Adapter
vendor: Ralink corp.
physical id: 0
bus info: pci@0000:06:00.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress cap_list
configuration: latency=0
resources: memory:d3800000-d380ffff
/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback