NetworkManager service 的使用
- 查看服务状态
systecmctl status NetworkManager
- 重启服务
systemctl restart NetworkManager
3 开机自启
systemctl enable NetworkManager
systemctl disable NetworkManager
nmcli 的使用
- 查看连接
nmcli con show
- 查看设备
nmcli dev show
- 连接无线网络
nmcli device wifi connect wifi-name password wifi-pw
nmcli connection up wifi-name
nmcli connection down wifi-name
# 删除
nmcli con del wifi-name
- 创建热点
# 密码注意必须8位
nmcli device wifi hotspot ifname wlan0 con-name MyHostspot ssid MyHostspotSSID password 12345678# 展示密码
nmcli device wifi show-password# 设置自动连接
nmcli connection modify MyHostspot connection.autoconnect yes
ref
- https://blog.51cto.com/u_15642578/5306059#:~:text=NetworkManager%E2%80%94%E2%80%94nmcli%E5%91%BD%E4%BB%A4%E8%BF%9E%E6%8E%A5WIFI%E5%92%8C%E5%88%9B%E5%BB%BA%E7%83%AD%E7%82%B9%201%201%E3%80%81%E5%BB%BA%E7%AB%8B%E5%92%8C%E5%88%A0%E9%99%A4%E4%B8%80%E4%B8%AAwifi%E8%BF%9E%E6%8E%A5%202,2%E3%80%81%E5%90%AF%E5%8A%A8%E8%BF%9E%E6%8E%A5%E5%92%8C%E5%85%B3%E9%97%AD%E8%BF%9E%E6%8E%A5%203%203%E3%80%81%E5%88%9B%E5%BB%BA%E7%83%AD%E7%82%B9%204%204%E3%80%81%E8%AE%BE%E7%BD%AE%E8%87%AA%E5%8A%A8%E8%BF%9E%E6%8E%A5
- https://blog.csdn.net/u014695839/article/details/84554606
- https://www.cnblogs.com/mind-water/p/12079647.html