Ubuntu 20.04-网络管理器不断删除/重命名网络设备

我遇到互联网中断(Chrome经常发生:网络连接已中断。NETWORK_CHANGED),所以我尝试调查发生了什么。它大约在1-2天前开始。这在系统日志中大约每分钟重复一次:

May 23 21:59:31 bigless-desktop kernel: [   94.033441] eth0: renamed from vethfb0f30f
May 23 21:59:31 bigless-desktop NetworkManager[1067]: <info>  [1590263971.8658] device (veth64afb83): carrier: link connected
May 23 21:59:31 bigless-desktop kernel: [   94.073299] IPv6: ADDRCONF(NETDEV_CHANGE): veth64afb83: link becomes ready
May 23 21:59:31 bigless-desktop gnome-shell[3540]: Removing a network device that was not added
May 23 21:59:33 bigless-desktop avahi-daemon[1058]: Joining mDNS multicast group on interface veth64afb83.IPv6 with address fd80::7365:b2ef:fc1a:3fee.
May 23 21:59:33 bigless-desktop avahi-daemon[1058]: New relevant interface veth64afb83.IPv6 for mDNS.
May 23 21:59:33 bigless-desktop avahi-daemon[1058]: Registering new address record for fd80::7365:b2ef:fc1a:3fee on veth64afb83.*.
May 23 21:59:52 bigless-desktop containerd[1219]: time="2020-05-23T21:59:52.269610848+02:00" level=info msg="shim reaped" id=344194026b5841d0471112fd1eb7f43951ccea1b99c031bc66c76d404513680b
May 23 21:59:52 bigless-desktop dockerd[2027]: time="2020-05-23T21:59:52.279708974+02:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
May 23 21:59:52 bigless-desktop kernel: [  114.495841] br-9e4a3a49af2d: port 4(veth64afb83) entered disabled state
May 23 21:59:52 bigless-desktop kernel: [  114.495925] vethfb0f30f: renamed from eth0
May 23 21:59:52 bigless-desktop NetworkManager[1067]: <info>  [1590263992.3535] manager: (vethfb0f30f): new Veth device (/org/freedesktop/NetworkManager/Devices/26)
May 23 21:59:52 bigless-desktop avahi-daemon[1058]: Interface veth64afb83.IPv6 no longer relevant for mDNS.
May 23 21:59:52 bigless-desktop kernel: [  114.558119] br-9e4a3a49af2d: port 4(veth64afb83) entered disabled state
May 23 21:59:52 bigless-desktop avahi-daemon[1058]: Leaving mDNS multicast group on interface veth64afb83.IPv6 with address fd80::7365:b2ef:fc1a:3fee.
May 23 21:59:52 bigless-desktop kernel: [  114.559994] device veth64afb83 left promiscuous mode
May 23 21:59:52 bigless-desktop kernel: [  114.559998] br-9e4a3a49af2d: port 4(veth64afb83) entered disabled state
May 23 21:59:52 bigless-desktop avahi-daemon[1058]: Withdrawing address record for fd80::7365:b2ef:fc1a:3fee on veth64afb83.
May 23 21:59:52 bigless-desktop systemd-udevd[6149]: vethfb0f30f: Failed to get link config: No such device
May 23 21:59:52 bigless-desktop NetworkManager[1067]: <info>  [1590263992.3872] device (veth64afb83): released from master device br-9e4a3a49af2d
May 23 21:59:52 bigless-desktop gnome-shell[3540]: Removing a network device that was not added
May 23 21:59:52 bigless-desktop gnome-shell[3540]: Removing a network device that was not added
May 23 21:59:52 bigless-desktop systemd[3123]: run-docker-netns-3107dfee21da.mount: Succeeded.
May 23 21:59:52 bigless-desktop systemd[1]: run-docker-netns-3107dfee21da.mount: Succeeded.
May 23 21:59:52 bigless-desktop systemd[3123]: var-lib-docker-containers-344194026b5841d0471112fd1eb7f43951ccea1b99c031bc66c76d404513680b-mounts-shm.mount: Succeeded.
May 23 21:59:52 bigless-desktop systemd[3123]: var-lib-docker-aufs-mnt-83b27cd4d700448fed2c76d34d39513357d5badd0219a31ce35e8468d9d426d9.mount: Succeeded.
May 23 21:59:52 bigless-desktop systemd[1]: var-lib-docker-containers-344194026b5841d0471112fd1eb7f43951ccea1b99c031bc66c76d404513680b-mounts-shm.mount: Succeeded.
May 23 21:59:52 bigless-desktop systemd[1]: var-lib-docker-aufs-mnt-83b27cd4d700448fed2c76d34d39513357d5badd0219a31ce35e8468d9d426d9.mount: Succeeded.
May 23 21:59:52 bigless-desktop systemd-udevd[6147]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
May 23 21:59:52 bigless-desktop systemd-udevd[6147]: Using default interface naming scheme 'v245'.
May 23 21:59:52 bigless-desktop systemd-udevd[6147]: veth3b54334: Could not generate persistent MAC: No data available
May 23 21:59:52 bigless-desktop systemd-udevd[6144]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
May 23 21:59:52 bigless-desktop kernel: [  114.660716] br-9e4a3a49af2d: port 4(veth316d1d3) entered blocking state
May 23 21:59:52 bigless-desktop kernel: [  114.660719] br-9e4a3a49af2d: port 4(veth316d1d3) entered disabled state
May 23 21:59:52 bigless-desktop kernel: [  114.660871] device veth316d1d3 entered promiscuous mode
May 23 21:59:52 bigless-desktop kernel: [  114.661027] br-9e4a3a49af2d: port 4(veth316d1d3) entered blocking state
May 23 21:59:52 bigless-desktop kernel: [  114.661029] br-9e4a3a49af2d: port 4(veth316d1d3) entered forwarding state
May 23 21:59:52 bigless-desktop systemd-udevd[6144]: Using default interface naming scheme 'v245'.
May 23 21:59:52 bigless-desktop systemd-udevd[6144]: veth316d1d3: Could not generate persistent MAC: No data available
May 23 21:59:52 bigless-desktop NetworkManager[1067]: <info>  [1590263992.4598] manager: (veth3b54334): new Veth device (/org/freedesktop/NetworkManager/Devices/27)
May 23 21:59:52 bigless-desktop NetworkManager[1067]: <info>  [1590263992.4613] manager: (veth316d1d3): new Veth device (/org/freedesktop/NetworkManager/Devices/28)
May 23 21:59:52 bigless-desktop containerd[1219]: time="2020-05-23T21:59:52.484610471+02:00" level=info msg="shim containerd-shim started" address="/containerd-shim/moby/344194026b5841d0471112fd1eb7f43951ccea1b99c031bc66c76d404513680b/shim.sock" debug=false pid=6188
May 23 21:59:52 bigless-desktop kernel: [  114.902782] eth0: renamed from veth3b54334
May 23 21:59:52 bigless-desktop kernel: [  114.926738] IPv6: ADDRCONF(NETDEV_CHANGE): veth316d1d3: link becomes ready
May 23 21:59:52 bigless-desktop NetworkManager[1067]: <info>  [1590263992.7258] device (veth316d1d3): carrier: link connected
May 23 21:59:52 bigless-desktop gnome-shell[3540]: Removing a network device that was not added
May 23 21:59:54 bigless-desktop avahi-daemon[1058]: Joining mDNS multicast group on interface veth316d1d3.IPv6 with address fd80::7365:b2ef:fc1a:3fee.
May 23 21:59:54 bigless-desktop avahi-daemon[1058]: New relevant interface veth316d1d3.IPv6 for mDNS.
May 23 21:59:54 bigless-desktop avahi-daemon[1058]: Registering new address record for fd80::7365:b2ef:fc1a:3fee on veth316d1d3.*.

nmcli设备展示

GENERAL.DEVICE:                         enp37s0
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         B0:32:9F:3A:05:1E
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     Ethernet  1
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/1
WIRED-PROPERTIES.CARRIER:               on
IP4.ADDRESS[1]:                         192.168.0.227/24
IP4.GATEWAY:                            192.168.0.1
IP4.ROUTE[1]:                           dst = 0.0.0.0/0, nh = 192.168.0.1, mt = 100
IP4.ROUTE[2]:                           dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.ROUTE[3]:                           dst = 192.168.0.0/24, nh = 0.0.0.0, mt = 100
IP4.DNS[1]:                             213.xx.xx.xx
IP4.DNS[2]:                             213.xx.xx.xx
IP4.DOMAIN[1]:                          home
IP6.ADDRESS[1]:                         fd80::7365:b2ef:fc1a:3fee/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = fd80::/64, nh = ::, mt = 256
IP6.ROUTE[2]:                           dst = fc00::/8, nh = ::, mt = 256, table=255

GENERAL.DEVICE:                         br-9e4a3a49af2d
GENERAL.TYPE:                           bridge
GENERAL.HWADDR:                         B0:32:9F:3A:05:1B
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     br-9e4a3a49af2d
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/3
IP4.ADDRESS[1]:                         172.18.0.1/16
IP4.GATEWAY:                            --
IP4.ROUTE[1]:                           dst = 172.18.0.0/16, nh = 0.0.0.0, mt = 0
IP6.ADDRESS[1]:                         fs80::42:bbff:fa3c:8c81/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = fa80::/64, nh = ::, mt = 256
IP6.ROUTE[2]:                           dst = ff00::/8, nh = ::, mt = 256, table=255

GENERAL.DEVICE:                         docker0
GENERAL.TYPE:                           bridge
GENERAL.HWADDR:                         B0:32:9F:3A:05:1A
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     docker0
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/2
IP4.ADDRESS[1]:                         172.17.0.1/16
IP4.GATEWAY:                            --
IP4.ROUTE[1]:                           dst = 172.17.0.0/16, nh = 0.0.0.0, mt = 0
IP6.GATEWAY:                            --

GENERAL.DEVICE:                         wlp36s0
GENERAL.TYPE:                           wifi
GENERAL.HWADDR:                         B0:32:9F:3A:05:1C
GENERAL.MTU:                            1500
GENERAL.STATE:                          20 (unavailable)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --

GENERAL.DEVICE:                         veth155f926
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         xxxx

(用假冒的IP替换)

我猜Network Manager出了点问题,但是问题是什么以及如何修复它。

除了将resolv.conf更新为systemd resolv(在SO上找到可能的解决方案-无效)外,我没有对网络设置进行任何修改。 dist-ugpraded最近-没有帮助。在BIOS中禁用了WiFi。在eth设置中禁用了IPv6。感谢您的建议。

评论