PDA

View Full Version : Odd behavior tl-wn722n



Steelejaxon
2015-07-16, 01:37
Got the TL-WN722N and looked to be pretty plug and play from what I read. I am running Kali on a Dell XPS 13 (not a USB / Live CD).

I can see the device on wlan1
lsusb
Bus 003 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n

Even airmon-g sees it
airmon-ng
PHY Interface Driver Chipset
phy0 wlan0 iwlwifi Intel Corporation Centrino Advanced-N 6230 [Rainbow Peak] (rev 34)
phy2 wlan1 ath9k_htc Atheros Communications, Inc. AR9271 802.11n

I can run nmap scans, I am getting an IP, I can ping local IPs but external gets a Network is unreachable
ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_req=1 ttl=64 time=1.52 ms
64 bytes from 192.168.1.1: icmp_req=2 ttl=64 time=1.24 ms
^C
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.249/1.388/1.527/0.139 ms
root@notahacker:~# ping 8.8.8.8
connect: Network is unreachable

And when I try to browse the internet, nothing.

I haven't loaded any drivers / backports as I was under the impression they were already loaded.

I am running the latest version of Kali (just loaded it on this box in the last week). I did apt-get update / apt-get upgrade.

Any help would be appreciated.

Steelejaxon
2015-07-16, 18:01
Also dmesg can see the drivers loaded
[ 1.894028] usb 3-1: ath9k_htc: Firmware htc_9271.fw requested
[ 1.894063] usbcore: registered new interface driver ath9k_htc
[ 2.203072] usb 3-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[ 2.441686] ath9k_htc 3-1:1.0: ath9k_htc: HTC initialized with 33 credits
[ 2.699019] ath9k_htc 3-1:1.0: ath9k_htc: FW Version: 1.3
[ 507.534494] usb 3-1: ath9k_htc: USB layer deinitialized
[ 709.356881] usb 3-1: ath9k_htc: Firmware htc_9271.fw requested
[ 709.674101] usb 3-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[ 709.912668] ath9k_htc 3-1:1.0: ath9k_htc: HTC initialized with 33 credits
[ 710.181142] ath9k_htc 3-1:1.0: ath9k_htc: FW Version: 1.3
[ 2825.232359] usb 3-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[ 2825.471368] ath9k_htc 3-1:1.0: ath9k_htc: HTC initialized with 33 credits

Steelejaxon
2015-07-16, 19:02
I have tried swapping USB ports with no luck. Tried different networks, same results.

Steelejaxon
2015-07-16, 20:20
Ok so I ran a route command and it looks like I am not getting a gateway for that adapter.

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.20.64.1 0.0.0.0 UG 0 0 0 wlan0
10.20.64.0 0.0.0.0 255.255.254.0 U 0 0 0 wlan0
10.20.66.0 0.0.0.0 255.255.254.0 U 0 0 0 wlan1

But when I right click Connection Information - there is a default gateway.

Do I need to manually set the gateway? How do I do it?

Steelejaxon
2015-07-17, 14:48
Used

route add default gw 10.20.66.1 wlan1

to set it and was able to connect. Any thoughts on why it wouldn't automatically configure the gateway?