CentOS7使用hostapd实现无AP模式的详解

2020-01-30 16:40:07王旭

interface=wlp2s0

# 绑定接口

bind-interfaces

# DHCP地址池 从172.16.0.100到172.16.0.200

dhcp-range=172.16.0.100,172.16.0.200,255.255.255.0,1h

启动 dnsmansq 服务需要无线网卡已经正确设置了 ip 地址。dnsmasq 会自动将当前的无线网卡地址 172.16.0.1 设置为客户端的网关地址和DNS地址。

systemctl start dnsmasq.service

最后重新启动 hostapd 服务

systemctl restart hostapd.service