有线连接随机断开

有线连接随机断开

将 ubuntu 16 更新到 ubuntu 20.04.1 后,有线连接不断随机断开连接。

解决方案是手动通过左上角的按钮关闭和打开连接。但是,我正在远程工作,这不再是一个选择。

我尝试过类似的解决方案但它们对我不起作用。

这是一些命令的输出,我认为它们在连接时可能会有用不是在职的:

ifconfig:

eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::896d:d145:fe49:db08  prefixlen 64  scopeid 0x20<link>
        inet6 2a0c:5bc0:40:1028:df60:8e5c:3fb0:a0dd  prefixlen 64  scopeid 0x0<global>
        inet6 2a0c:5bc0:40:1028:60f4:f459:9371:5e6e  prefixlen 64  scopeid 0x0<global>
        inet6 2a0c:5bc0:40:1028:4597:f3aa:b00c:62bb  prefixlen 64  scopeid 0x0<global>
        ether 18:60:24:8b:fe:32  txqueuelen 1000  (Ethernet)
        RX packets 65344897  bytes 10798738778 (10.7 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1644328  bytes 1140060185 (1.1 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf3100000-f3120000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 90170  bytes 10380905 (10.3 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 90170  bytes 10380905 (10.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

nmcli d:

DEVICE  TYPE      STATE      CONNECTION        
eno1    ethernet  connected  Wired connection 1
lo      loopback  unmanaged  --    

猫/etc/NetworkManager/NetworkManager.conf:

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

[device]
wifi.scan-rand-mac-address=no

nmcli:

eno1: connected to Wired connection 1
        "Intel Ethernet"
        ethernet (e1000e), 18:60:24:8B:FE:32, hw, mtu 1500
        ip4 default, ip6 default
        inet6 2a0c:5bc0:40:1028:4597:f3aa:b00c:62bb/64
        inet6 2a0c:5bc0:40:1028:60f4:f459:9371:5e6e/64
        inet6 2a0c:5bc0:40:1028:df60:8e5c:3fb0:a0dd/64
        inet6 fe80::896d:d145:fe49:db08/64
        route6 2a0c:5bc0:40:1028::/64
        route6 ::/0
        route6 ff00::/8
        route6 fe80::/64

lo: unmanaged
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

编辑

managed=false在 /etc/NetworkManager/NetworkManager.conf 中设置并重新启动。这是连接时一些命令的输出工作中

猫/等/网络/接口:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

sudo lshw -C 网络:

  *-network                 
       description: Ethernet interface
       product: Ethernet Connection (2) I218-LM
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: eno1
       version: 05
       serial: 18:60:24:8b:fe:32
       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.1-4 ip=155.198.45.81 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:33 memory:f3100000-f311ffff memory:f313b000-f313bfff ioport:2040(size=32)

编辑

这些是有线设置的捕获:

详细信息选项卡 身份标签 IPv4 选项卡 IPv6 选项卡

编辑

这是输出ls -al /etc/NetworkManager/system-connections/Wired*

-rw------- 1 root root 261 Nov 16 16:06 '/etc/NetworkManager/system-connections/Wired connection 1.nmconnection'

相关内容