hostapd和dnsmasq永远获得IP


0

我正在尝试使用建立无线访问点hostapddnsmasq但无法正常工作。

AP工作正常,但是当我尝试连接时,它卡在了“获取IP地址”上。我在hostapd控制台中看到了连接,但是没有任何反应dnsmasq

这是我的配置,命令及其输出:

#: dnsmasq -C dnsmasq.conf -H hosts.conf -d -q

dnsmasq: started, version 2.68 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth
dnsmasq-dhcp: DHCP, IP range 10.0.0.10 -- 10.0.0.250, lease time 12h
dnsmasq: using nameserver 8.8.8.8#53
dnsmasq: read /etc/hosts - 5 addresses
dnsmasq: read hosts.conf - 1 addresses

dnsmasq.conf:

no-resolv
interface=wlan0
dhcp-range=10.0.0.10,10.0.0.250,12h
server=8.8.8.8
log-queries
log-dhcp

hostapd.conf:

interface=wlan0
driver=nl80211
ssid=Test
channel=1

我究竟做错了什么?

Answers:


2

我终于弄明白了。我没有在防火墙中打开DHCP端口(67)。

#: ufw allow 67
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.