Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux dnsmasq与iPhone故障_Linux_Wifi_Dhcp_Access Point_Dnsmasq - Fatal编程技术网

Linux dnsmasq与iPhone故障

Linux dnsmasq与iPhone故障,linux,wifi,dhcp,access-point,dnsmasq,Linux,Wifi,Dhcp,Access Point,Dnsmasq,我试图在Linux上使用dnsmasq作为wifi接入点。Windows 7和Android智能手机可以很好地连接到Linux系统,但我的iPhone不能。Windows和iPhone都可以通过wpa_supplicant进行身份验证,但问题是iPhone从未获得ip地址 对于dnsmasq.conf,我的配置文件非常简单: # Only listen for DHCP on wlan0 interface=wlan0 # Create a dhcp range on your /24 wla

我试图在Linux上使用dnsmasq作为wifi接入点。Windows 7和Android智能手机可以很好地连接到Linux系统,但我的iPhone不能。Windows和iPhone都可以通过wpa_supplicant进行身份验证,但问题是iPhone从未获得ip地址

对于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
它就在那里


有什么建议或帮助吗?谢谢

如果删除以下选项,它将与iPhone配合使用:

dhcp-option=3
评论out和iPhone可以连接