Wifi
OpenWrt:無法連接到 wifi
我有一個安裝了 OpenWrt 21.02.3 的華碩 RT-N56U 路由器(全新安裝)。
我最終想將其設置為 wifi 中繼器,但我已經在努力將其設置為簡單的 wifi 接入點(所以這就是問題所在)。我看了一堆教程,但每個教程都給我留下了相同的結果。
情況
我可以從其他設備上找到我的接入點,但我無法連接。
當我選擇要連接的 AP 時,連接一直處於掛起狀態。
問題
如何將我的 OpenWrt 路由器設置為接入點?
編輯:回答過程
這似乎是一個 DHCP 問題。
- 選項1:打開打開界面->$$ your interface $$-> 編輯 -> DHCP 伺服器 -> 設置 DHCP 伺服器 -> 取消選中忽略此介面
- 選項2:打開
Wireless
->$$ your SSID $$-> 正常設置 -> 網路 -> 選擇lan
(顯然是提供有效 DHCP 設置的唯一選項)我做了/嘗試了什麼
一般設置
網路 -> 無線 -> radio0 (2.5 Ghz) -> 添加
設置:
- 大部分是預設的
- 介面配置 -> 正常設置 -> 網路:(
wwan
是一個Client
使用 5 Ghz 介面的 wifi 網路)- 高級設置: 國家程式碼:選擇我的國家。
靜態 DHCP 租約
我認為這可能是一個不起作用的 DHCP 問題,所以我設置瞭如下所示的靜態租約。但是,我仍然無法連接。
客戶端的靜態 IP 地址
也不行。嘗試了幾種不同的設備。
系統日誌輸出
Sun May 1 23:24:15 2022 daemon.warn dnsmasq-dhcp[21906]: DHCP packet received on wlan0 which has no address Sun May 1 23:24:24 2022 daemon.warn dnsmasq-dhcp[21906]: DHCP packet received on wlan0 which has no address Sun May 1 23:24:32 2022 daemon.warn dnsmasq-dhcp[21906]: DHCP packet received on wlan0 which has no address Sun May 1 23:24:41 2022 daemon.warn dnsmasq-dhcp[21906]: DHCP packet received on wlan0 which has no address Sun May 1 23:24:49 2022 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED 84:8e:0c:c2:45:00 Sun May 1 23:24:49 2022 daemon.info hostapd: wlan0: STA 84:8e:0c:c2:45:00 IEEE 802.11: disassociated Sun May 1 23:24:50 2022 daemon.info hostapd: wlan0: STA 84:8e:0c:c2:45:00 IEEE 802.11: authenticated Sun May 1 23:24:50 2022 daemon.info hostapd: wlan0: STA 84:8e:0c:c2:45:00 IEEE 802.11: associated (aid 1) Sun May 1 23:24:50 2022 daemon.notice hostapd: wlan0: AP-STA-CONNECTED 84:8e:0c:c2:45:00 Sun May 1 23:24:50 2022 daemon.warn dnsmasq-dhcp[21906]: DHCP packet received on wlan0 which has no address Sun May 1 23:24:51 2022 daemon.warn dnsmasq-dhcp[21906]: DHCP packet received on wlan0 which has no address Sun May 1 23:24:53 2022 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED 84:8e:0c:c2:45:00 Sun May 1 23:24:53 2022 daemon.info hostapd: wlan0: STA 84:8e:0c:c2:45:00 IEEE 802.11: disassociated Sun May 1 23:24:55 2022 daemon.info hostapd: wlan0: STA 84:8e:0c:c2:45:00 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE) Sun May 1 23:24:56 2022 daemon.info hostapd: wlan0: STA 84:8e:0c:c2:45:00 IEEE 802.11: authenticated Sun May 1 23:24:56 2022 daemon.info hostapd: wlan0: STA 84:8e:0c:c2:45:00 IEEE 802.11: associated (aid 1) Sun May 1 23:24:56 2022 daemon.notice hostapd: wlan0: AP-STA-CONNECTED 84:8e:0c:c2:45:00 Sun May 1 23:24:57 2022 daemon.warn dnsmasq-dhcp[21906]: DHCP packet received on wlan0 which has no address Sun May 1 23:24:58 2022 daemon.warn dnsmasq-dhcp[21906]: DHCP packet received on wlan0 which has no address Sun May 1 23:25:01 2022 daemon.warn dnsmasq-dhcp[21906]: DHCP packet received on wlan0 which has no address
我最終結束了
- 沒有弄清楚問題
- 重置路由器
- 這樣做