Raspberry Pi 3 Model B+ 配置无线路由
环境
- Raspbian Stretch
- hostapd配置完成
- Raspberry无线桥接模式配置完成
无线路由模式相比AP桥接模式的不同是WIFI组成独立子网
最主要是DHCP的问题
跟着官方文档走完之后,发现热点可以找到,但是连接上之后无法获得DHCP提供的IP地址。
遂尝试了不同的配置方案,终于有一个成功了
1 |
nano /etc/dnsmasq.conf |
写入
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# Only listen to routers' LAN NIC. Doing so opens up tcp/udp port 53 to # localhost and udp port 67 to world: interface=wlan0 # dnsmasq will open tcp/udp port 53 and udp port 67 to world to help with # dynamic interfaces (assigning dynamic ips). Dnsmasq will discard world # requests to them, but the paranoid might like to close them and let the # kernel handle them: bind-interfaces # Dynamic range of IPs to make available to LAN pc dhcp-range=192.168.4.50,192.168.4.100,12h # If you’d like to have dnsmasq assign static IPs, bind the LAN computer's # NIC MAC address: # dhcp-host=b8:27:eb:cb:99:5a,192.168.4.1 domain=rasp3bplus dhcp-option=3,192.168.4.1 |
There are no comments yet