我有一个安装了 OpenWrt 21.02.3 的华硕 RT-N56U 路由器(全新安装)。
我最终想将其设置为 wifi 中继器,但我已经在努力将其设置为简单的 wifi 接入点(所以这就是问题所在)。我看了一堆教程,但每个教程都给我留下了相同的结果。
情况
我可以从其他设备上找到我的接入点,但我无法连接。
当我选择要连接的 AP 时,连接一直处于挂起状态。
问题
如何将我的 OpenWrt 路由器设置为接入点?
编辑:回答过程
- 这似乎是一个 DHCP 问题。
- 选项1:open open Interface -> [your interface] -> edit -> DHCP Server -> Set up DHCP server -> 取消勾选Ignore this interface
- 选项 2:打开
Wireless
-> [您的 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
我最终结束了