View Full Version : Fixing Network Connectivity Issues in Kali 2.0 Alfa AWUS036H/rtl8187

2015-10-15, 02:22
Wireless Network Issues with Kali 2.0 64bit
Wireless card Alfa AWUS036H/rtl8187
For WPA type network

I had been running Kali (off and on) for a while before the upgrade to Kali 2.0, and while getting the networking to work properly before was an adventure in and of itself, with Kali 2.0, I'm back to networking issues. Specifically, while I am able to connect to the internet wired flawlessly, the wireless connection is spotty. It tends to drop off for no apparent reason citing "No probe response from AP [addr] after 500ms, disconnecting." via
dmesg |grep wlan0

Previously I connected to the intenet via command line but this method doesn't work by default. So I am going to restore this method on Kali 2.0, as I had no issues with it before and am currently unable (or uninitiated) to solve them with the current setup on Kali 2.0. Before we get started, note that some of these commands require to be ran as root, so if you are logged in as a standard, either login to root or
sudo -i, also please verify that you have each of the following tools installed by running
apt-get update && apt-get install wpasupplicant iw ip ping

First I will start by

sudo apt-get --purge autoremove network-manager

This will remove the current network manager and (hopefully) remove any potential interferences. I would also recommend a reboot at this point.

Next run:

iw dev

This will show wireless device(s). Note your wireless devices interface name

ip link set wlan0 up

This will put your wireless device in the “UP” state

iw wlan0 link

Should show “Not connected” at this point

iw wlan0 scan

Will show available networks. Note ssid of desired network

wpa_passphrase [Enter Your SSID Here] >> /etc/wpa_supplicant.conf
[Enter passphrase]

This will create a file with your network information

cat /etc/wpa_supplicant.conf

Verify that the file has been created and network name and passphrase are correct

wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf

-B means run wpa_supplicant in the background
-D specifies wireless driver. wext is the generic driver
-c specifies the path for the configuration file
You may get ioctl[SIOCSIWENCODEEXT]: Invalid argument I'm not sure what this means but it doesn't seem to effect anything.

iw wlan0 link

Should now show that you are connected.

dhclient wlan0

Assigns an IP address

ping -c 3 www.google.com

Should show that you are now connected to the internet.

While this will connect you to the internet, and shouldn't drop your connection anymore, It does make the built in gui in Settings for your wifi not work anymore saying “The system network services are not compatible with this version.” I don't know if there is a fix for this but you can install wicd-gtk if you prefer a graphical frontend for your wireless management.

Anyway, I hope this fixes any network connectivity issues you may be experiencing in Kali 2.0. I have been running with this configuration for 10+ hours now with no connectivity issues; much longer than the usually 2-45 minutes my connection lasted previously.

Most of this guide was taken/adapted from guides at www.blackmoreops.com.

Let me know if you have any issues.

2015-10-22, 22:40
I have the same card and the same problem with any linux distro. I think it has to do more with the drivers than with Kali.

The way I fix it is simple:
iwconfig wlan0 rate 5.5M

With this setting my speed is capped at around 500KB/s.