2013-07-17 42 views
-1

我想使用的dnsmasq在Linux作爲一個WiFi接入點。 Windows 7和Android智能手機可以很好地連接到Linux系統,但我的iPhone不能。 Windows和iPhone都使用wpa_supplicant進行身份驗證,但問題在於iPhone永遠不會獲得IP地址。的dnsmasq與iPhone失敗

我的配置文件是dnsmasq.conf很簡單:

# Only listen for DHCP on wlan0 
interface=wlan0 
# Create a dhcp range on your /24 wlan0 network with a lease time 
dhcp-range=192.168.1.6,192.168.1.15,255.255.255.0,5m 
# Configure DHCP   
dhcp-option=3 
dhcp-option=6 
# Be authoritative with Windows 
dhcp-authoritative 

的的dnsmasq調試日誌顯示此爲Windows,你可以看到它是成功的:

dnsmasq: started, version 2.65 cachesize 150 
dnsmasq: compile time options: no-IPv6 GNU-getopt DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack 
dnsmasq-dhcp: DHCP, IP range 192.168.1.6 -- 192.168.1.15, lease time 5m 
dnsmasq: failed to access /etc/resolv.conf: No such file or directory 
dnsmasq: failed to load names from /etc/hosts: No such file or directory 
dnsmasq-dhcp: DHCPREQUEST(wlan0) 192.168.1.14 24:77:03:2b:79:20 
dnsmasq-dhcp: Ignoring domain global.tektronix.net for DHCP host name PC-MSP-183B 
dnsmasq-dhcp: DHCPACK(wlan0) 192.168.1.14 24:77:03:2b:79:20 PC-MSP-183B 
dnsmasq-dhcp: DHCPINFORM(wlan0) 192.168.1.14 24:77:03:2b:79:20 
dnsmasq-dhcp: DHCPACK(wlan0) 192.168.1.14 24:77:03:2b:79:20 PC-MSP-183B 

然而,它顯示了這個對於iPhone:

dnsmasq: started, version 2.65 cachesize 150 
dnsmasq: compile time options: no-IPv6 GNU-getopt DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack 
dnsmasq-dhcp: DHCP, IP range 192.168.1.6 -- 192.168.1.15, lease time 5m 
dnsmasq: failed to access /etc/resolv.conf: No such file or directory 
dnsmasq: failed to load names from /etc/hosts: No such file or directory 
dnsmasq-dhcp: DHCPREQUEST(wlan0) 192.168.1.15 84:38:35:df:5f:c2 
dnsmasq-dhcp: DHCPACK(wlan0) 192.168.1.15 84:38:35:df:5f:c2 iPhone 
dnsmasq-dhcp: DHCPREQUEST(wlan0) 192.168.1.15 84:38:35:df:5f:c2 
dnsmasq-dhcp: DHCPACK(wlan0) 192.168.1.15 84:38:35:df:5f:c2 iPhone 

它只是坐在那裏!

任何建議或幫助?謝謝!

回答

0

它適用於iPhone,如果你刪除以下選項:

dhcp-option=3 

評論了這一點和iPhone可以連接。