NetworkManager 不斷連接和斷開連接。我怎樣才能解決這個問題?
我正在使用最新系統的最新可用版本,如下所示:Arch 核心 5.6.4-arch1-1、Openbox 3.6.1、NetworkManager 1.24.0-1、wpa_supplicant v2.9。
我在三個地理位置使用我的筆記型電腦。在這些位置中的每一個都有一個獨特的 wifi 網路,我連接到它自己的唯一 SSID。筆記型電腦僅使用
WPA and WPA2 Personal
協議連接所有這三個位置。在這三個位置中的兩個位置,我的筆記型電腦 WiFi 始終快速、無縫、完美地連接,沒有任何問題。
在第三個位置,並且僅在第三個位置,我的筆記型電腦每隔 10 秒不斷循環斷開 WiFi 並重新連接,如下面的步驟所述
- 5 秒,搜尋網路
- 1 秒,連接到網路
- 4 秒,斷開連接
- 轉到 1 並重新開始…
如上面列表中所述,我能夠在第三個位置獲得與 Internet 的網路連接,但每 10 秒只能連接一次。
這使得在第三個位置工作變得不可能。
在這第三個位置,路由器為其他所有設備提供完美的 wifi。所以路由器似乎不是問題。
我已經嘗試無數次地刪除第三個位置的網路管理器連接配置文件,使用 上的
nm-applet
GUItint2 taskbar
,然後使用正確的密碼等再次重新連接到第三個位置的 SSID。但是這樣做並沒有改變問題。在上面的步驟 2 中,我一直在使用這個命令行
sudo killall -STOP NetworkManager
來成功停止循環並保持連接,但這已經停止工作。所以現在我有一根乙太網電纜插入筆記型電腦,筆記型電腦側面的筆記型電腦 WiFi 物理開關關閉。它通過連接的乙太網電纜連接到網際網路,但每 10 秒就會斷開 5 秒的連接。換句話說,它循環連接,打開和關閉,就像它對 WiFi 所做的那樣。同樣,這也只發生在第三個位置。連接後,我在
sudo killall -STOP NetworkManager
建立連接後再次使用以停止循環。這似乎與第三個位置的筆記型電腦 wifi 配置有關。
補充:我已經從系統日誌中添加了一個週期的輸出,同時系統正在連接/斷開連接,如下
命令,,
journalctl -ef
產生了這個輸出。
network is down. This is the end of last connection / disconnection cycle and the beginning of the next
May 23 13:46:52 t430 dhcpcd[5050]: ps_bpf_recvbpf: Network is down
preamble
May 23 13:46:52 t430 kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0 May 23 13:46:52 t430 kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
registering ipv4 address
May 23 13:46:52 t430 avahi-daemon[451]: Joining mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.106. May 23 13:46:52 t430 avahi-daemon[451]: New relevant interface wlp3s0.IPv4 for mDNS. May 23 13:46:52 t430 avahi-daemon[451]: Registering new address record for 192.168.1.106 on wlp3s0.IPv4.
withdrawing ipv4 address
May 23 13:46:52 t430 avahi-daemon[451]: Withdrawing address record for 192.168.1.106 on wlp3s0. May 23 13:46:52 t430 avahi-daemon[451]: Leaving mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.106. May 23 13:46:52 t430 avahi-daemon[451]: Interface wlp3s0.IPv4 no longer relevant for mDNS. May 23 13:46:52 t430 dhcpcd[492]: wlp3s0: deleting route to 192.168.1.0/24 May 23 13:46:52 t430 dhcpcd[492]: wlp3s0: deleting default route via 192.168.1.1 May 23 13:46:52 t430 NetworkManager[454]: <warn> [1590238012.8707] device (wlp3s0): Activation: failed for connection 'datastream5'
registering ipv4 address again
May 23 13:46:52 t430 avahi-daemon[451]: Joining mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.106. May 23 13:46:52 t430 wpa_supplicant[570]: wlp3s0: Reject scan trigger since one is already pending May 23 13:46:52 t430 NetworkManager[454]: <info> [1590238012.8775] device (wlp3s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed') May 23 13:46:52 t430 avahi-daemon[451]: New relevant interface wlp3s0.IPv4 for mDNS. May 23 13:46:52 t430 avahi-daemon[451]: Registering new address record for 192.168.1.106 on wlp3s0.IPv4. May 23 13:46:52 t430 NetworkManager[454]: <info> [1590238012.8778] dhcp4 (wlp3s0): canceled DHCP transaction May 23 13:46:52 t430 wpa_supplicant[570]: wlp3s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD May 23 13:46:52 t430 NetworkManager[454]: <info> [1590238012.8778] dhcp4 (wlp3s0): state changed bound -> done
registering ipv6 address
May 23 13:46:52 t430 avahi-daemon[451]: Joining mDNS multicast group on interface wlp3s0.IPv6 with address fe80::fd81:7780:6410:e759. May 23 13:46:52 t430 avahi-daemon[451]: New relevant interface wlp3s0.IPv6 for mDNS. May 23 13:46:52 t430 avahi-daemon[451]: Registering new address record for fe80::fd81:7780:6410:e759 on wlp3s0.*. May 23 13:46:52 t430 avahi-daemon[451]: Withdrawing address record for fe80::fd81:7780:6410:e759 on wlp3s0. May 23 13:46:52 t430 NetworkManager[454]: <info> [1590238012.8822] device (wlp3s0): supplicant interface state: completed -> scanning May 23 13:46:52 t430 avahi-daemon[451]: Leaving mDNS multicast group on interface wlp3s0.IPv6 with address fe80::fd81:7780:6410:e759. May 23 13:46:52 t430 avahi-daemon[451]: Interface wlp3s0.IPv6 no longer relevant for mDNS. `withdrawing ipv4 address` May 23 13:46:52 t430 avahi-daemon[451]: Withdrawing address record for 192.168.1.106 on wlp3s0. May 23 13:46:52 t430 avahi-daemon[451]: Leaving mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.106. May 23 13:46:52 t430 avahi-daemon[451]: Interface wlp3s0.IPv4 no longer relevant for mDNS.
new ipv4 mac address
May 23 13:46:52 t430 dhcpcd[492]: wlp3s0: new hardware address: ca:b3:01:7c:20:73
disconnected
May 23 13:46:56 t430 NetworkManager[454]: <info> [1590238016.0852] device (wlp3s0): supplicant interface state: scanning -> disconnected
NetworkManager succeeds at something
May 23 13:47:00 t430 systemd[1]: NetworkManager-dispatcher.service: Succeeded. May 23 13:47:00 t430 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' May 23 13:47:00 t430 kernel: audit: type=1131 audit(1590238020.888:153): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.4312] policy: auto-activating connection 'datastream5' (4c200721-a84a-4619-9d08-319531f8c338) May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.4322] device (wlp3s0): Activation: starting connection 'datastream5' (4c200721-a84a-4619-9d08-319531f8c338) May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.4324] device (wlp3s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed') May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.4335] manager: NetworkManager state is now CONNECTING May 23 13:47:02 t430 dhcpcd[492]: wlp3s0: new hardware address: 6c:88:14:62:84:3c May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.4486] device (wlp3s0): set-hw-addr: reset MAC address to 6C:88:14:62:84:3C (preserve)
scanning for connection
May 23 13:47:02 t430 kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0 May 23 13:47:02 t430 kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0 May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8441] device (wlp3s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed') May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8450] device (wlp3s0): Activation: (wifi) access point 'datastream5' has security, but secrets are required. May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8451] device (wlp3s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed') May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8491] device (wlp3s0): supplicant interface state: disconnected -> interface_disabled May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8512] device (wlp3s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed') May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8519] device (wlp3s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed') May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8525] device (wlp3s0): Activation: (wifi) connection 'datastream5' has security, and secrets exist. No new secrets needed. May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8526] Config: added 'ssid' value 'datastream5' May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8526] Config: added 'scan_ssid' value '1' May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8526] Config: added 'bgscan' value 'simple:30:-70:86400' May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8527] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK' May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8527] Config: added 'auth_alg' value 'OPEN' May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8527] Config: added 'psk' value '<hidden>' May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8794] device (wlp3s0): supplicant interface state: interface_disabled -> inactive May 23 13:47:02 t430 NetworkManager[454]: <info> [1590238022.8920] device (wlp3s0): supplicant interface state: inactive -> scanning May 23 13:47:06 t430 wpa_supplicant[570]: wlp3s0: SME: Trying to authenticate with 70:4f:57:97:52:06 (SSID='datastream5' freq=2447 MHz) May 23 13:47:06 t430 kernel: wlp3s0: authenticate with 70:4f:57:97:52:06 May 23 13:47:06 t430 kernel: wlp3s0: send auth to 70:4f:57:97:52:06 (try 1/3) May 23 13:47:06 t430 kernel: wlp3s0: authenticated May 23 13:47:06 t430 kernel: wlp3s0: associate with 70:4f:57:97:52:06 (try 1/3) May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1197] device (wlp3s0): supplicant interface state: scanning -> authenticating May 23 13:47:06 t430 wpa_supplicant[570]: wlp3s0: Trying to associate with 70:4f:57:97:52:06 (SSID='datastream5' freq=2447 MHz) May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1226] device (wlp3s0): supplicant interface state: authenticating -> associating May 23 13:47:06 t430 kernel: wlp3s0: RX AssocResp from 70:4f:57:97:52:06 (capab=0x1011 status=0 aid=3) May 23 13:47:06 t430 wpa_supplicant[570]: wlp3s0: Associated with 70:4f:57:97:52:06 May 23 13:47:06 t430 wpa_supplicant[570]: wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0 May 23 13:47:06 t430 kernel: wlp3s0: associated May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1533] device (wlp3s0): supplicant interface state: associating -> 4way_handshake May 23 13:47:06 t430 wpa_supplicant[570]: wlp3s0: WPA: Key negotiation completed with 70:4f:57:97:52:06 [PTK=CCMP GTK=TKIP] May 23 13:47:06 t430 wpa_supplicant[570]: wlp3s0: CTRL-EVENT-CONNECTED - Connection to 70:4f:57:97:52:06 completed [id=0 id_str=] May 23 13:47:06 t430 dhcpcd[492]: wlp3s0: carrier acquired May 23 13:47:06 t430 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1680] device (wlp3s0): supplicant interface state: 4way_handshake -> completed
#########################################################################################################
May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1681] device (wlp3s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "datastream5" May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1683] device (wlp3s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed') May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1688] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds) May 23 13:47:06 t430 avahi-daemon[451]: Joining mDNS multicast group on interface wlp3s0.IPv6 with address fe80::fd81:7780:6410:e759. May 23 13:47:06 t430 avahi-daemon[451]: New relevant interface wlp3s0.IPv6 for mDNS. May 23 13:47:06 t430 avahi-daemon[451]: Registering new address record for fe80::fd81:7780:6410:e759 on wlp3s0.*. May 23 13:47:06 t430 dhcpcd[492]: wlp3s0: IAID 14:62:84:3c May 23 13:47:06 t430 dhcpcd[492]: wlp3s0: adding address fe80::c685:c3d0:8b05:a9e5 May 23 13:47:06 t430 avahi-daemon[451]: Registering new address record for fe80::c685:c3d0:8b05:a9e5 on wlp3s0.*. May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1957] dhcp4 (wlp3s0): option dhcp_lease_time => '86400' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1958] dhcp4 (wlp3s0): option domain_name_servers => '192.168.1.1 0.0.0.0' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1958] dhcp4 (wlp3s0): option expiry => '1590324426' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1958] dhcp4 (wlp3s0): option ip_address => '192.168.1.106' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1958] dhcp4 (wlp3s0): option requested_broadcast_address => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1958] dhcp4 (wlp3s0): option requested_domain_name => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1958] dhcp4 (wlp3s0): option requested_domain_name_servers => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1958] dhcp4 (wlp3s0): option requested_domain_search => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1958] dhcp4 (wlp3s0): option requested_host_name => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1959] dhcp4 (wlp3s0): option requested_interface_mtu => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1959] dhcp4 (wlp3s0): option requested_ms_classless_static_routes => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1959] dhcp4 (wlp3s0): option requested_nis_domain => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1959] dhcp4 (wlp3s0): option requested_nis_servers => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1959] dhcp4 (wlp3s0): option requested_ntp_servers => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1959] dhcp4 (wlp3s0): option requested_rfc3442_classless_static_routes => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1959] dhcp4 (wlp3s0): option requested_root_path => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1959] dhcp4 (wlp3s0): option requested_routers => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1960] dhcp4 (wlp3s0): option requested_static_routes => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1960] dhcp4 (wlp3s0): option requested_subnet_mask => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1960] dhcp4 (wlp3s0): option requested_time_offset => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1960] dhcp4 (wlp3s0): option requested_wpad => '1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1960] dhcp4 (wlp3s0): option routers => '192.168.1.1' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1960] dhcp4 (wlp3s0): option subnet_mask => '255.255.255.0' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1960] dhcp4 (wlp3s0): state changed unknown -> bound May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.1975] device (wlp3s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed') May 23 13:47:06 t430 avahi-daemon[451]: Joining mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.106. May 23 13:47:06 t430 avahi-daemon[451]: New relevant interface wlp3s0.IPv4 for mDNS. May 23 13:47:06 t430 avahi-daemon[451]: Registering new address record for 192.168.1.106 on wlp3s0.IPv4. May 23 13:47:06 t430 dbus-daemon[453]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.13' (uid=0 pid=454 comm="/usr/bin/NetworkManager --no-daemon ") May 23 13:47:06 t430 systemd[1]: Condition check resulted in First Boot Wizard being skipped. May 23 13:47:06 t430 systemd[1]: Condition check resulted in File System Check on Root Device being skipped. May 23 13:47:06 t430 systemd[1]: Condition check resulted in Rebuild Dynamic Linker Cache being skipped. May 23 13:47:06 t430 systemd[1]: Condition check resulted in Store a System Token in an EFI Variable being skipped. May 23 13:47:06 t430 systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped. May 23 13:47:06 t430 systemd[1]: Condition check resulted in Rebuild Journal Catalog being skipped. May 23 13:47:06 t430 systemd[1]: Condition check resulted in Commit a transient machine-id on disk being skipped. May 23 13:47:06 t430 systemd[1]: Condition check resulted in Create System Users being skipped. May 23 13:47:06 t430 systemd[1]: Condition check resulted in Update is Completed being skipped. May 23 13:47:06 t430 systemd[1]: Starting Network Manager Script Dispatcher Service... May 23 13:47:06 t430 dbus-daemon[453]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' May 23 13:47:06 t430 systemd[1]: Started Network Manager Script Dispatcher Service. May 23 13:47:06 t430 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.2125] device (wlp3s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed') May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.2128] device (wlp3s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed') May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.2132] manager: NetworkManager state is now CONNECTED_LOCAL May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.2143] manager: NetworkManager state is now CONNECTED_SITE May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.2145] policy: set 'datastream5' (wlp3s0) as default for IPv4 routing and DNS May 23 13:47:06 t430 kernel: audit: type=1130 audit(1590238026.208:154): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' May 23 13:47:06 t430 dunst[1185]: WARNING: No icon found in path: 'nm-signal-75' May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.2232] device (wlp3s0): Activation: successful, device activated. May 23 13:47:06 t430 dhcpcd[492]: wlp3s0: rebinding lease of 192.168.1.106 May 23 13:47:06 t430 NetworkManager[454]: <info> [1590238026.3305] manager: NetworkManager state is now CONNECTED_GLOBAL May 23 13:47:06 t430 dhcpcd[492]: wlp3s0: leased 192.168.1.106 for 86400 seconds May 23 13:47:06 t430 dhcpcd[492]: wlp3s0: adding route to 192.168.1.0/24 May 23 13:47:06 t430 dhcpcd[492]: wlp3s0: adding default route via 192.168.1.1 May 23 13:47:06 t430 systemd[1]: systemd-hostnamed.service: Succeeded. May 23 13:47:06 t430 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' May 23 13:47:06 t430 kernel: audit: type=1131 audit(1590238026.351:155): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' May 23 13:47:06 t430 audit: AUDIT1334 prog-id=19 op=UNLOAD May 23 13:47:06 t430 audit: AUDIT1334 prog-id=18 op=UNLOAD May 23 13:47:06 t430 kernel: audit: type=1334 audit(1590238026.391:156): prog-id=19 op=UNLOAD May 23 13:47:06 t430 kernel: audit: type=1334 audit(1590238026.391:157): prog-id=18 op=UNLOAD May 23 13:47:06 t430 wpa_supplicant[570]: wlp3s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-60 noise=9999 txrate=13000 May 23 13:47:06 t430 dhcpcd[492]: wlp3s0: soliciting an IPv6 router May 23 13:47:08 t430 dhcpcd[492]: wlp3s0: Router Advertisement from fe80::724f:57ff:fe97:5206 May 23 13:47:08 t430 NetworkManager[454]: <info> [1590238028.0508] dhcp6 (wlp3s0): activation: beginning transaction (timeout in 45 seconds) May 23 13:47:08 t430 NetworkManager[454]: <warn> [1590238028.0510] device (wlp3s0): failure to start DHCPv6: failed to start client: Address already in use May 23 13:47:08 t430 NetworkManager[454]: <info> [1590238028.0510] device (wlp3s0): state change: activated -> failed (reason 'dhcp-start-failed', sys-iface-state: 'managed') May 23 13:47:08 t430 NetworkManager[454]: <info> [1590238028.0526] manager: NetworkManager state is now DISCONNECTED May 23 13:47:08 t430 kernel: wlp3s0: deauthenticating from 70:4f:57:97:52:06 by local choice (Reason: 3=DEAUTH_LEAVING) May 23 13:47:08 t430 dunst[1185]: WARNING: No icon found in path: 'nm-no-connection' May 23 13:47:08 t430 dhcpcd[492]: wlp3s0: soliciting a DHCPv6 lease May 23 13:47:08 t430 wpa_supplicant[570]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=70:4f:57:97:52:06 reason=3 locally_generated=1 May 23 13:47:08 t430 dhcpcd[492]: wlp3s0: carrier lost May 23 13:47:08 t430 avahi-daemon[451]: Interface wlp3s0.IPv6 no longer relevant for mDNS. May 23 13:47:08 t430 avahi-daemon[451]: Leaving mDNS multicast group on interface wlp3s0.IPv6 with address fe80::fd81:7780:6410:e759. May 23 13:47:08 t430 avahi-daemon[451]: Interface wlp3s0.IPv4 no longer relevant for mDNS. May 23 13:47:08 t430 avahi-daemon[451]: Leaving mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.106. May 23 13:47:08 t430 NetworkManager[454]: <info> [1590238028.0927] device (wlp3s0): set-hw-addr: set MAC address to 66:51:DB:82:D6:15 (scanning) May 23 13:47:08 t430 avahi-daemon[451]: Withdrawing address record for fe80::c685:c3d0:8b05:a9e5 on wlp3s0. May 23 13:47:08 t430 avahi-daemon[451]: Withdrawing address record for fe80::fd81:7780:6410:e759 on wlp3s0. May 23 13:47:08 t430 avahi-daemon[451]: Withdrawing address record for 192.168.1.106 on wlp3s0. May 23 13:47:08 t430 dhcpcd[5441]: ps_bpf_recvbpf: Network is down
@eblock 對上述問題的評論建議查看系統日誌。
如上所述,我這樣做並至少部分地為有問題的第三個位置確定了一個可行的解決方案。
網路連接循環已停止,連接現在穩定。
這並不是說我已經找到了問題的根源,但我可能已經找到了。
這是我的解決方案:
- 重新啟動筆記型電腦,讓它開始循環打開和關閉 wi-fi 網路連接。
- 在終端中,鍵入、
journalctl -ef
和監視系統實時日誌輸出循環通過如上所述的連接和斷開步驟。- 將日誌輸出到文本文件
journalctl -ef > journal_output.txt
- 在
vim
文本編輯器中打開它並僅通過連接和斷開連接辨識與一個循環有關的部分,僅大約 14 秒的資訊。作為修正,我已將此系統日誌輸出添加到上述問題中。
從這個輸出中,我能夠確定路由器沒有發出 ipv6 地址,或者筆記型電腦由於某種原因無法設置 ipv6 地址,這導致“NetworkManager”斷開網路連接。
這個問題可能是由最近的路由器韌體升級引起的,但是我有一台相同的筆記型電腦,安裝了或多或少相同的軟體,它沒有這個網路連接問題。路由器 LAN 上的其他設備也不會遇到這種循環連接/斷開連接問題。也就是說,我認為可能,我對此不確定,大約在路由器韌體升級時,這個問題就開始了。
修復
nm-applet
為了解決這個問題,我只在第三個位置的網路管理器 gui 選項卡中 禁用了 wifi 和乙太網電纜連接的 ipv6 連接。禁用後,wifi 和有線乙太網連接都以持久一致的方式連接到網路,不會循環連接和斷開連接。