无法使用 nmcli 将本地盒子配置为 wifi 热点

无法使用 nmcli 将本地盒子配置为 wifi 热点

我正在尝试将我的 Fedora 38 盒配置为一个名为 的接入点(WiFi 热点)MyAP

所以我nmcli这样使用:

nmcli -p con add type wifi con-name MyAP autoconnect yes ssid MyAp \
   ipv6.method disabled ipv4.method shared ipv4.addresses 192.168.66.1/24 \
   gw4 192.168.66.1 802-11-wireless.mode ap 802-11-wireless.band a \
   wifi-sec.key-mgmt wpa-psk wifi-sec.psk <somepassword>

但是,MyAP连接/断开连接多次。在这种情况下,nmcli dev status显示:

DEVICE             TYPE      STATE                     CONNECTION   
enp0s31f6          ethernet  connected                 IMPA Wired   
wlp0s20f3          wifi      connecting (configuring)  MyAP 
p2p-dev-wlp0s20f3  wifi-p2p  disconnected              --           
lo                 loopback  unmanaged                 --           

并且保持connecting (configuring)黄色。命令以黄色nmcli c显示MyAP连接。

journalctl -b看到这些:

NetworkManager[1042]: <warn>  [1690232848.2272] device (wlp0s20f3): Activation: (wifi) Hotspot network creation took too long, failing activation
NetworkManager[1042]: <info>  [1690232848.2272] device (wlp0s20f3): state change: config -> failed (reason 'supplicant-timeout', sys-iface-state: 'managed')
wpa_supplicant[19218]: wlp0s20f3: CTRL-EVENT-DSCP-POLICY clear_all
NetworkManager[1042]: <warn>  [1690232848.2281] device (wlp0s20f3): Activation: failed for connection 'MyAP'
NetworkManager[1042]: <info>  [1690232848.2285] device (wlp0s20f3): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
NetworkManager[1042]: <info>  [1690232848.2416] device (wlp0s20f3): set-hw-addr: set MAC address to 9E:45:F9:B7:73:84 (scanning)
NetworkManager[1042]: <info>  [1690232848.2614] device (wlp0s20f3): supplicant interface state: disconnected -> inactive
NetworkManager[1042]: <info>  [1690232848.2614] device (p2p-dev-wlp0s20f3): supplicant management interface state: disconnected -> inactive

为什么MyAP无法連線?

编辑

如果我移除频带限制,它似乎会起作用802-11-wireless.band a。很奇怪,因为它以前用这个就可以工作。

相关内容