我遇到与this person相同的问题,不管我做什么,它都不起作用......如果网络出现了......它会一直启动我。
/etc/dnsmasq.conf
# disables dnsmasq reading any other files like /etc/resolv.conf for nameservers
no-resolv
# Interface to bind to
interface=wlan0
# Specify starting_range,end_range,lease_time
dhcp-range=192.168.5.2,192.168.5.20,12h
# dns addresses to send to the clients
server=8.8.4.4
的/ etc /网络/接口
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE
# The secondary network interface
#allow-hotplug eth1
#iface eth1 inet dhcp
# WiFi Example
#auto wlan0
#iface wlan0 inet dhcp
# wpa-ssid "essid"
# wpa-psk "password"
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
# Note on some boards, usb0 is automaticly setup with an init script
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1
#allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 192.168.5.1
network 192.168.5.0
netmask 255.255.255.0
broadcast 192.168.5.255
# wireless-mode ad-hoc
/etc/hostapd/hostapd.conf
# Basic configuration
interface=wlan0
ssid=DontConnect
channel=6
#bridge=br0
# WPA and WPA2 configuration
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
# Hardware configuration
driver=nl80211
#driver=rtl8192cu
#driver=rtl871xdrv
ieee80211n=1
hw_mode=g
#device_name=RTL8192CU
#manufacturer=Realtek
现在无论我做什么,它都没有出现。
Linux beast2.kraken.local 3.8.13-bone47 #1 SMP Fri Apr 11 01:36:09 UTC 2014 armv7l GNU/Linux
答案 0 :(得分:-2)
这是dnsmasq中的一个错误。使用isc dhcpd或静态寻址。