这是 NetworkManager.conf
NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
我的问题是为什么我没有建立无线连接却不断重新连接。
jose@Safra:~$ journalctl -r -n 10 | grep NetworkManager
May 20 09:40:38 Safra NetworkManager[21256]: <info> [1621514438.4023] device (p2p-dev-wlo1): supplicant management interface state: 4-way handshake -> completed
May 20 09:40:38 Safra NetworkManager[21256]: <info> [1621514438.3989] device (wlo1): supplicant interface state: 4-way handshake -> completed
May 20 09:40:38 Safra NetworkManager[21256]: <info> [1621514438.3450] device (p2p-dev-wlo1): supplicant management interface state: associated -> 4-way handshake
May 20 09:40:38 Safra NetworkManager[21256]: <info> [1621514438.3450] device (wlo1): supplicant interface state: associated -> 4-way handshake
答案1
每次成功连接时,网络管理器都会创建一个文件。详细信息保存在/etc/NetworkManager/system-connections/
例如,你的文件可能包含如下条目/etc/NetworkManager/system-connections/preto_router.nmconnection
如果您已将网络管理器设置为自动连接,那么当您的计算机启动时或关闭飞行模式时,当无线设备扫描并看到接入点(其 SSID 以及 MAC 地址、密码等存储在系统连接中)并且设置了“自动连接”时,无线设备就会执行操作:自动连接。