为何ap设置好后,手机无法连接?
发表于 : 2016-07-16 10:03
新买的usb无线网卡。
lsusb
Bus 003 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
iw list
Wiphy phy0
max # scan SSIDs: 4
max scan IEs length: 2257 bytes
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP (00-0f-ac:4)
* CMAC (00-0f-ac:6)
Available Antennas: TX 0x1 RX 0x1
Configured Antennas: TX 0x1 RX 0x1
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* mesh point
* P2P-client
* P2P-GO
上网方式是pppoe拨号
cat /etc/network/interfaces
auto dsl-provider
iface dsl-provider inet ppp
pre-up /bin/ip link set eth0 up
provider dsl-provider
auto eth0
iface eth0 inet static
address 192.168.1.101
netmask 255.255.255.0
dns-server 114.114.114.114
auto wlan1
iface wlan1 inet static
address 192.168.1.110
netmask 255.255.255.0
broadcast 192.168.0.255
cat /etc/hostapd/hostapd.conf
interface=wlan1
driver=nl80211
ssid=test
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=password
wpa_pairwise=TKIP
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
cat /etc/dnsmasq.conf
interface=wlan1
listen-address=192.168.1.101
dhcp-range=192.168.1.101,192.168.1.150,12h
dhcp-option=3,192.168.1.101
dhcp-option=6,114.114.114.114
hostapd -B /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Using interface wlan1 with hwaddr 00:1a:8c:30:08:b1 and ssid "test"
wlan1: interface state UNINITIALIZED->ENABLED
wlan1: AP-ENABLED
现在我用android手机来连接这个wifi ap了,输入帐号,密码后,总是处于autherticating status,请问,如何解决?
lsusb
Bus 003 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
iw list
Wiphy phy0
max # scan SSIDs: 4
max scan IEs length: 2257 bytes
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP (00-0f-ac:4)
* CMAC (00-0f-ac:6)
Available Antennas: TX 0x1 RX 0x1
Configured Antennas: TX 0x1 RX 0x1
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* mesh point
* P2P-client
* P2P-GO
上网方式是pppoe拨号
cat /etc/network/interfaces
auto dsl-provider
iface dsl-provider inet ppp
pre-up /bin/ip link set eth0 up
provider dsl-provider
auto eth0
iface eth0 inet static
address 192.168.1.101
netmask 255.255.255.0
dns-server 114.114.114.114
auto wlan1
iface wlan1 inet static
address 192.168.1.110
netmask 255.255.255.0
broadcast 192.168.0.255
cat /etc/hostapd/hostapd.conf
interface=wlan1
driver=nl80211
ssid=test
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=password
wpa_pairwise=TKIP
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
cat /etc/dnsmasq.conf
interface=wlan1
listen-address=192.168.1.101
dhcp-range=192.168.1.101,192.168.1.150,12h
dhcp-option=3,192.168.1.101
dhcp-option=6,114.114.114.114
hostapd -B /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Using interface wlan1 with hwaddr 00:1a:8c:30:08:b1 and ssid "test"
wlan1: interface state UNINITIALIZED->ENABLED
wlan1: AP-ENABLED
现在我用android手机来连接这个wifi ap了,输入帐号,密码后,总是处于autherticating status,请问,如何解决?