|  | 
 
 发表于 2021-3-10 08:34:26
|
显示全部楼层 
| 5.5.3 连接 rtl8723bu 提供的 wifi 热点访问外网 本测试中 wlan0 为 rtl8723bu 生成的节点。
 将 eth0 连接到路由器, 开发板重新上电, 执行以下命令。
 touch /var/lib/misc/udhcpd.leases
 ifconfig eth0 up
 udhcpc -i eth0
 ifconfig wlan0 up
 ifconfig wlan0 192.168.0.1 netmask 255.255.255.0
 echo 1 > /proc/sys/net/ipv4/ip_forward
 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
 ifconfig wlan0 promisc
 udhcpd -f /etc/udhcpd.conf wlan0 &
 hostapd /etc/hostapd.conf -B
 此时 wifi 热点开启 ssid: test 密码: 1234567890
 | 
 |