您尚未登录。

#1 2021-07-31 19:09:17

木哦
会员
注册时间: 2021-07-31
帖子: 17

网络每隔大概10分钟左右会断开重连

archlinux网络每隔大概几分钟会断开重连一次,导致ssh,mysql连接等断开。
刚开时是在一台比较老的电脑装arch的时候遇到的,ssh连接过后卡死,因为用新电脑(Windows)ssh没有问题, 以为是网卡的问题,所以没有理他

但是今天我在我的新电脑上安装arch,同样发生了这个问题,所以前来询问

下面是开启的服务:网络方面,我使用了 networkmanager dhcpcd iwd

  UNIT                                                   LOAD   ACTIVE SUB     DESCRIPTION
  alsa-restore.service                                   loaded active exited  Save/Restore Sound Card State
  bluetooth.service                                      loaded active running Bluetooth service
  cronie.service                                         loaded active running Periodic Command Scheduler
  dbus.service                                           loaded active running D-Bus System Message Bus
  dhcpcd.service                                         loaded active running dhcpcd on all interfaces
  getty@tty1.service                                     loaded active running Getty on tty1
  haveged.service                                        loaded active running Entropy Daemon based on the HAVEGE algorithm
  iwd.service                                            loaded active running Wireless service
  kmod-static-nodes.service                              loaded active exited  Create List of Static Device Nodes
  ldconfig.service                                       loaded active exited  Rebuild Dynamic Linker Cache
  NetworkManager.service                                 loaded active running Network Manager
  systemd-backlight@backlight:acpi_video0.service        loaded active exited  Load/Save Screen Backlight Brightness of backlight:acpi_video0
● systemd-backlight@backlight:acpi_video1.service        loaded failed failed  Load/Save Screen Backlight Brightness of backlight:acpi_video1
  systemd-backlight@backlight:amdgpu_bl0.service         loaded active exited  Load/Save Screen Backlight Brightness of backlight:amdgpu_bl0
  systemd-backlight@leds:platform::kbd_backlight.service loaded active exited  Load/Save Screen Backlight Brightness of leds:platform::kbd_backlight
  systemd-journal-catalog-update.service                 loaded active exited  Rebuild Journal Catalog
  systemd-journal-flush.service                          loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service                               loaded active running Journal Service
  systemd-logind.service                                 loaded active running User Login Management
  systemd-modules-load.service                           loaded active exited  Load Kernel Modules
  systemd-random-seed.service                            loaded active exited  Load/Save Random Seed
  systemd-remount-fs.service                             loaded active exited  Remount Root and Kernel File Systems
  systemd-sysctl.service                                 loaded active exited  Apply Kernel Variables
  systemd-sysusers.service                               loaded active exited  Create System Users
  systemd-tmpfiles-setup-dev.service                     loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service                         loaded active exited  Create Volatile Files and Directories
  systemd-udev-trigger.service                           loaded active exited  Coldplug All udev Devices
  systemd-udevd.service                                  loaded active running Rule-based Manager for Device Events and Files
  systemd-update-done.service                            loaded active exited  Update is Completed
  systemd-update-utmp.service                            loaded active exited  Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service                          loaded active exited  Permit User Sessions
  tlp.service                                            loaded active exited  TLP system startup/shutdown
  user-runtime-dir@1000.service                          loaded active exited  User Runtime Directory /run/user/1000
  user@1000.service                                      loaded active running User Manager for UID 1000
  wpa_supplicant.service                                 loaded active running WPA supplicant

以及使用journal 的一些错误

-- Journal begins at Tue 2021-07-27 17:12:40 CST. --
Jul 31 18:12:28 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured
Jul 31 18:12:28 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured
Jul 31 18:12:29 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured
Jul 31 18:12:29 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured
Jul 31 18:12:29 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured
Jul 31 18:12:29 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured
Jul 31 18:12:29 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured
Jul 31 18:12:29 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured
Jul 31 18:12:29 AC systemd-backlight[1159]: Failed to get backlight or LED device 'backlight:acpi_video1': No such device
Jul 31 18:12:29 AC systemd[1]: Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video1.

离线

#2 2021-07-31 19:47:19

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,934
个人网站

Re: 网络每隔大概10分钟左右会断开重连

没有更多的日志么?

另外是不是开了 Wi-Fi 的省电模式但是接入点并不支持?

离线

#3 2021-07-31 20:08:23

木哦
会员
注册时间: 2021-07-31
帖子: 17

Re: 网络每隔大概10分钟左右会断开重连

依云 说:

没有更多的日志么?

另外是不是开了 Wi-Fi 的省电模式但是接入点并不支持?

并没有开启wifi省电
我不太确定是哪些日志,下面是一些我能想到的,希望有帮助

这个是journalctl -f -u NetworkManager.service

Jul 31 19:46:49 AC NetworkManager[490]: <info>  [1627732009.3114] device (wlan0): supplicant interface state: inactive -> disconnected
Jul 31 19:46:49 AC NetworkManager[490]: <info>  [1627732009.3114] device (p2p-dev-wlan0): supplicant management interface state: inactive -> disconnected
Jul 31 19:46:49 AC NetworkManager[490]: <info>  [1627732009.3155] device (wlan0): supplicant interface state: disconnected -> inactive
Jul 31 19:46:49 AC NetworkManager[490]: <info>  [1627732009.3156] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> inactive
Jul 31 19:46:49 AC NetworkManager[490]: <info>  [1627732009.4406] device (wlan0): supplicant interface state: inactive -> associated
Jul 31 19:46:49 AC NetworkManager[490]: <info>  [1627732009.4407] device (p2p-dev-wlan0): supplicant management interface state: inactive -> associated
Jul 31 19:46:49 AC NetworkManager[490]: <info>  [1627732009.4462] device (wlan0): supplicant interface state: associated -> disconnected
Jul 31 19:46:49 AC NetworkManager[490]: <info>  [1627732009.4463] device (p2p-dev-wlan0): supplicant management interface state: associated -> disconnected
Jul 31 19:46:49 AC NetworkManager[490]: <info>  [1627732009.5463] device (wlan0): supplicant interface state: disconnected -> inactive
Jul 31 19:46:49 AC NetworkManager[490]: <info>  [1627732009.5464] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> inactive

journalctl -f -u dhcpcd.service

Jul 31 19:53:42 AC dhcpcd[495]: wlan0: new hardware address: c2:3d:33:eb:b2:f1
Jul 31 19:53:42 AC dhcpcd[495]: wlan0: carrier acquired
Jul 31 19:53:42 AC dhcpcd[495]: wlan0: IAID 33:eb:b2:f1
Jul 31 19:53:42 AC dhcpcd[495]: wlan0: adding address fe80::a049:b0eb:75e7:8644
Jul 31 19:53:43 AC dhcpcd[495]: wlan0: soliciting an IPv6 router
Jul 31 19:53:44 AC dhcpcd[495]: wlan0: rebinding lease of 192.168.1.6
Jul 31 19:53:48 AC dhcpcd[495]: wlan0: NAK: from 192.168.1.1
Jul 31 19:53:48 AC dhcpcd[495]: wlan0: soliciting a DHCP lease
Jul 31 19:53:49 AC dhcpcd[495]: wlan0: offered 192.168.1.7 from 192.168.1.1
Jul 31 19:53:50 AC dhcpcd[495]: wlan0: probing address 192.168.1.7/24
Jul 31 19:53:55 AC dhcpcd[495]: wlan0: no IPv6 Routers available
Jul 31 19:53:55 AC dhcpcd[495]: wlan0: leased 192.168.1.7 for 86400 seconds
Jul 31 19:53:55 AC dhcpcd[495]: wlan0: adding route to 192.168.1.0/24
Jul 31 19:53:55 AC dhcpcd[495]: wlan0: adding default route via 192.168.1.1

离线

#4 2021-07-31 20:21:31

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,934
个人网站

Re: 网络每隔大概10分钟左右会断开重连

我也不确定哪些日志有用,所以我通常不会过滤、直接看相关时间段内所有的日志。
19:53:42 左右发生了什么呢?看起来只是正常地联网,之前用的 IP 地址被占用了,但单独来讲不是什么问题。
信息依旧非常匮乏。我需要上下文。至少两次断开重连之间的所有系统日志,外加这段时间内你干了什么事情。

离线

#5 2021-07-31 20:57:50

木哦
会员
注册时间: 2021-07-31
帖子: 17

Re: 网络每隔大概10分钟左右会断开重连

依云 说:

我也不确定哪些日志有用,所以我通常不会过滤、直接看相关时间段内所有的日志。
19:53:42 左右发生了什么呢?看起来只是正常地联网,之前用的 IP 地址被占用了,但单独来讲不是什么问题。
信息依旧非常匮乏。我需要上下文。至少两次断开重连之间的所有系统日志,外加这段时间内你干了什么事情。

在20:48时发生了一次重连,在此期间我只是在网站观看视频

Jul 31 20:41:40 AC wpa_supplicant[884]: wlan0: CTRL-EVENT-DISCONNECTED bssid=ec:f8:eb:80:d8:b1 reason=3 locally_generated=1
Jul 31 20:41:40 AC wpa_supplicant[884]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Jul 31 20:41:40 AC NetworkManager[490]: <info>  [1627735300.4352] device (wlan0): supplicant interface state: inactive -> associated
Jul 31 20:41:40 AC NetworkManager[490]: <info>  [1627735300.4353] device (p2p-dev-wlan0): supplicant management interface state: inactive -> associated
Jul 31 20:41:40 AC NetworkManager[490]: <info>  [1627735300.4404] device (wlan0): supplicant interface state: associated -> disconnected
Jul 31 20:41:40 AC NetworkManager[490]: <info>  [1627735300.4404] device (p2p-dev-wlan0): supplicant management interface state: associated -> disconnected
Jul 31 20:41:40 AC wpa_supplicant[884]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=0 noise=9999 txrate=0
Jul 31 20:41:40 AC dhcpcd[495]: wlan0: carrier acquired
Jul 31 20:41:40 AC kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jul 31 20:41:40 AC dhcpcd[495]: wlan0: IAID c3:c6:92:01
Jul 31 20:41:40 AC dhcpcd[495]: wlan0: adding address fe80::ab62:a63f:d012:ca26
Jul 31 20:41:40 AC dhcpcd[495]: wlan0: soliciting an IPv6 router
Jul 31 20:41:40 AC NetworkManager[490]: <info>  [1627735300.5404] device (wlan0): supplicant interface state: disconnected -> inactive
Jul 31 20:41:40 AC NetworkManager[490]: <info>  [1627735300.5405] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> inactive
Jul 31 20:41:41 AC dhcpcd[495]: wlan0: rebinding lease of 192.168.1.14
Jul 31 20:41:43 AC wpa_supplicant[884]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=0 noise=9999 txrate=0
Jul 31 20:41:46 AC dhcpcd[495]: wlan0: DHCP lease expired
Jul 31 20:41:46 AC dhcpcd[495]: wlan0: soliciting a DHCP lease
Jul 31 20:41:47 AC dhcpcd[495]: wlan0: offered 192.168.1.15 from 192.168.1.1
Jul 31 20:41:47 AC dhcpcd[495]: wlan0: probing address 192.168.1.15/24
Jul 31 20:41:52 AC dhcpcd[495]: wlan0: leased 192.168.1.15 for 86400 seconds
Jul 31 20:41:52 AC dhcpcd[495]: wlan0: adding route to 192.168.1.0/24
Jul 31 20:41:52 AC dhcpcd[495]: wlan0: adding default route via 192.168.1.1
Jul 31 20:41:54 AC dhcpcd[495]: wlan0: no IPv6 Routers available
Jul 31 20:42:00 AC dbus-daemon[489]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' r>
Jul 31 20:42:00 AC dbus-daemon[489]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.reso>
Jul 31 20:44:27 AC dbus-daemon[489]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' r>
Jul 31 20:44:27 AC dbus-daemon[489]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.reso>
Jul 31 20:46:03 AC iwd[492]: WARNING: src/scan.c:scan_parse_attr_bss() condition wiphy_estimate_data_rate(wiphy, ies, ies_len, bss, &bss->data_rate) < 0 fai>
Jul 31 20:46:05 AC iwd[492]: WARNING: src/scan.c:scan_parse_attr_bss() condition wiphy_estimate_data_rate(wiphy, ies, ies_len, bss, &bss->data_rate) < 0 fai>
Jul 31 20:47:00 AC dbus-daemon[489]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' r>
Jul 31 20:47:00 AC dbus-daemon[489]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.reso>
Jul 31 20:48:32 AC kernel: wlan0: deauthenticating from ec:f8:eb:80:d8:b1 by local choice (Reason: 3=DEAUTH_LEAVING)
Jul 31 20:48:32 AC iwd[492]: Received Deauthentication event, reason: 3, from_ap: false
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: carrier lost
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.1975] device (wlan0): set-hw-addr: set MAC address to 4A:B7:E7:57:96:0F (scanning)
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: deleting address fe80::ab62:a63f:d012:ca26
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: deleting route to 192.168.1.0/24
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: deleting default route via 192.168.1.1
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: old hardware address: 8e:6a:c3:c6:92:01
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: new hardware address: 4a:b7:e7:57:96:0f
Jul 31 20:48:32 AC wpa_supplicant[884]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-16
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.2991] device (wlan0): supplicant interface state: inactive -> disconnected
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.2992] device (p2p-dev-wlan0): supplicant management interface state: inactive -> disconnected
Jul 31 20:48:32 AC kernel: wlan0: authenticate with ec:f8:eb:80:d8:b1
Jul 31 20:48:32 AC kernel: wlan0: send auth to ec:f8:eb:80:d8:b1 (try 1/3)
Jul 31 20:48:32 AC kernel: wlan0: authenticated
Jul 31 20:48:32 AC kernel: wlan0: associate with ec:f8:eb:80:d8:b1 (try 1/3)
Jul 31 20:48:32 AC kernel: wlan0: RX AssocResp from ec:f8:eb:80:d8:b1 (capab=0x411 status=0 aid=1)
Jul 31 20:48:32 AC wpa_supplicant[884]: wlan0: No network configuration found for the current AP
Jul 31 20:48:32 AC wpa_supplicant[884]: wlan0: CTRL-EVENT-DISCONNECTED bssid=ec:f8:eb:80:d8:b1 reason=3 locally_generated=1
Jul 31 20:48:32 AC wpa_supplicant[884]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Jul 31 20:48:32 AC kernel: wlan0: associated
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.4078] device (wlan0): supplicant interface state: disconnected -> associated
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.4079] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> associated
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.4132] device (wlan0): supplicant interface state: associated -> disconnected
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.4133] device (p2p-dev-wlan0): supplicant management interface state: associated -> disconnected
Jul 31 20:48:32 AC wpa_supplicant[884]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=0 noise=9999 txrate=0
Jul 31 20:48:32 AC kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: IAID e7:57:96:0f
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: adding address fe80::e55e:1231:8950:78c0
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.5136] device (wlan0): supplicant interface state: disconnected -> inactive
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.5137] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> inactive
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: rebinding lease of 192.168.1.15
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: NAK: from 192.168.1.1
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: soliciting a DHCP lease
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: soliciting an IPv6 router
Jul 31 20:48:33 AC dhcpcd[495]: wlan0: offered 192.168.1.16 from 192.168.1.1
Jul 31 20:48:33 AC dhcpcd[495]: wlan0: probing address 192.168.1.16/24
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: leased 192.168.1.16 for 86400 seconds
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: adding route to 192.168.1.0/24
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: adding default route via 192.168.1.1
Jul 31 20:48:45 AC dhcpcd[495]: wlan0: no IPv6 Routers available
Jul 31 20:49:27 AC dbus-daemon[489]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' r>
Jul 31 20:49:27 AC dbus-daemon[489]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.reso>Jul 31 20:48:32 AC kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: IAID e7:57:96:0f
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: adding address fe80::e55e:1231:8950:78c0
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.5136] device (wlan0): supplicant interface state: disconnected -> inactive
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.5137] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> inactive
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: rebinding lease of 192.168.1.15
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: NAK: from 192.168.1.1
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: soliciting a DHCP lease
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: soliciting an IPv6 router
Jul 31 20:48:33 AC dhcpcd[495]: wlan0: offered 192.168.1.16 from 192.168.1.1
Jul 31 20:48:33 AC dhcpcd[495]: wlan0: probing address 192.168.1.16/24
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: leased 192.168.1.16 for 86400 seconds
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: adding route to 192.168.1.0/24
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: adding default route via 192.168.1.1
Jul 31 20:48:45 AC dhcpcd[495]: wlan0: no IPv6 Routers available
Jul 31 20:49:27 AC dbus-daemon[489]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' r>
Jul 31 20:49:27 AC dbus-daemon[489]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.reso>Jul 31 20:48:32 AC kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: IAID e7:57:96:0f
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: adding address fe80::e55e:1231:8950:78c0
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.5136] device (wlan0): supplicant interface state: disconnected -> inactive
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.5137] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> inactive
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: rebinding lease of 192.168.1.15
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: NAK: from 192.168.1.1
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: soliciting a DHCP lease
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: soliciting an IPv6 router
Jul 31 20:48:33 AC dhcpcd[495]: wlan0: offered 192.168.1.16 from 192.168.1.1
Jul 31 20:48:33 AC dhcpcd[495]: wlan0: probing address 192.168.1.16/24
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: leased 192.168.1.16 for 86400 seconds
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: adding route to 192.168.1.0/24
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: adding default route via 192.168.1.1
Jul 31 20:48:45 AC dhcpcd[495]: wlan0: no IPv6 Routers available
Jul 31 20:49:27 AC dbus-daemon[489]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' r>
Jul 31 20:49:27 AC dbus-daemon[489]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.reso>Jul 31 20:48:32 AC kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: IAID e7:57:96:0f
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: adding address fe80::e55e:1231:8950:78c0
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.5136] device (wlan0): supplicant interface state: disconnected -> inactive
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.5137] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> inactive
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: rebinding lease of 192.168.1.15
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: NAK: from 192.168.1.1
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: soliciting a DHCP lease
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: soliciting an IPv6 router
Jul 31 20:48:33 AC dhcpcd[495]: wlan0: offered 192.168.1.16 from 192.168.1.1
Jul 31 20:48:33 AC dhcpcd[495]: wlan0: probing address 192.168.1.16/24
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: leased 192.168.1.16 for 86400 seconds
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: adding route to 192.168.1.0/24
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: adding default route via 192.168.1.1
Jul 31 20:48:45 AC dhcpcd[495]: wlan0: no IPv6 Routers available
Jul 31 20:49:27 AC dbus-daemon[489]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' r>
Jul 31 20:49:27 AC dbus-daemon[489]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.reso>Jul 31 20:48:32 AC kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: IAID e7:57:96:0f
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: adding address fe80::e55e:1231:8950:78c0
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.5136] device (wlan0): supplicant interface state: disconnected -> inactive
Jul 31 20:48:32 AC NetworkManager[490]: <info>  [1627735712.5137] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> inactive
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: rebinding lease of 192.168.1.15
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: NAK: from 192.168.1.1
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: soliciting a DHCP lease
Jul 31 20:48:32 AC dhcpcd[495]: wlan0: soliciting an IPv6 router
Jul 31 20:48:33 AC dhcpcd[495]: wlan0: offered 192.168.1.16 from 192.168.1.1
Jul 31 20:48:33 AC dhcpcd[495]: wlan0: probing address 192.168.1.16/24
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: leased 192.168.1.16 for 86400 seconds
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: adding route to 192.168.1.0/24
Jul 31 20:48:39 AC dhcpcd[495]: wlan0: adding default route via 192.168.1.1
Jul 31 20:48:45 AC dhcpcd[495]: wlan0: no IPv6 Routers available
Jul 31 20:49:27 AC dbus-daemon[489]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' r>
Jul 31 20:49:27 AC dbus-daemon[489]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.reso>

离线

#6 2021-07-31 21:01:14

木哦
会员
注册时间: 2021-07-31
帖子: 17

Re: 网络每隔大概10分钟左右会断开重连

是否是这条日志:

Jul 31 20:48:32 AC iwd[492]: Received Deauthentication event, reason: 3, from_ap: false

离线

#7 2021-07-31 21:04:02

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,934
个人网站

Re: 网络每隔大概10分钟左右会断开重连

你是不是同时启用了多个网络管理器?怎么既有 iwd 又有 wpa_supplicant?systemctl list-unit-files --state=enabled 看看你都 enable 了些什么服务?

离线

#8 2021-07-31 21:32:11

木哦
会员
注册时间: 2021-07-31
帖子: 17

Re: 网络每隔大概10分钟左右会断开重连

依云 说:

你是不是同时启用了多个网络管理器?怎么既有 iwd 又有 wpa_supplicant?systemctl list-unit-files --state=enabled 看看你都 enable 了些什么服务?

wpa_supplicant这个服务并非我启动,但是我好像开启networkmanager ,它就会存在,下面的服务中也没有

但是我不知到为什么会出现wpa_supplicant在日志中,

UNIT FILE                          STATE   VENDOR PRESET
bluetooth.service                  enabled disabled
cronie.service                     enabled disabled
dhcpcd.service                     enabled disabled
getty@.service                     enabled enabled
haveged.service                    enabled disabled
iwd.service                        enabled disabled
NetworkManager-dispatcher.service  enabled disabled
NetworkManager-wait-online.service enabled disabled
NetworkManager.service             enabled disabled
tlp.service                        enabled disabled
remote-fs.target                   enabled enabled

错误日志中也有

Jul 31 19:30:57 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured
Jul 31 19:30:57 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured
Jul 31 19:30:57 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured
Jul 31 19:30:57 AC wpa_supplicant[884]: nl80211: kernel reports: Match already configured

离线

#9 2021-07-31 21:56:51

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,934
个人网站

Re: 网络每隔大概10分钟左右会断开重连

那就是重复了, NetworkManager 和 iwd 还有 dhcpcd 在打架。把后两个禁用掉吧。

离线

#10 2021-08-01 11:32:49

木哦
会员
注册时间: 2021-07-31
帖子: 17

Re: 网络每隔大概10分钟左右会断开重连

依云 说:

那就是重复了, NetworkManager 和 iwd 还有 dhcpcd 在打架。把后两个禁用掉吧。

的确,现在解决了,感谢 big_smile

离线

页脚