我正在尝试在这台机器上设置 Wi-Fi 接入点:
$ uname -a
Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
$ cat /etc/issue
Raspbian GNU/Linux 9 \n \l
我已经按照许多教程操作,但我的设备从未发布其 SSID,因此我无法建立连接。
如何调试我的配置?
我的配置是:
wlan0
添加静态 IP/etc/dhcpd.conf
wlan0
在中配置 DHCP 服务器/etc/dnsmasq.conf
- 在中配置 hostapd
/etc/hostapd/hostapd.conf
- 绑定
hostapd
/etc/default/hostapd
- 启动服务
hostapd
,dnsmasq
还有一些状态:
$ iwconfig
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
$ sudo ifconfig wlan0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.4.1 netmask 255.255.255.0 broadcast 192.168.4.255
ether b8:27:eb:d5:30:24 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
$ sudo systemctl status hostapd
? hostapd.service - LSB: Advanced IEEE 802.11 management daemon
Loaded: loaded (/etc/init.d/hostapd; generated; vendor preset: enabled)
Active: active (exited) since Wed 2019-02-27 13:58:13 CET; 1h 2min ago
$ sudo systemctl status dnsmasq.service
? dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-02-27 13:34:39 CET; 1h 26min ago
我的问题可能是什么?