You are not logged in.
I have a TP-LINK WN821N wireless usb adapter that is based on the rtl8192cu. I am able to associate it to the wireless, but I can't get it to acquire an IP.
Here is what I'm doing, taken from the wiki (note that I'm not using any wireless security):
[masm@mycray ~]$ sudo ip link set wlan0 up
[masm@mycray ~]$ sudo iw wlan0 connect TP-LINK_FB739C
[masm@mycray ~]$ sudo iw wlan0 info
Interface wlan0
ifindex 14
wdev 0x700000001
addr 64:70:02:15:ec:35
ssid TP-LINK_FB739C
type managed
wiphy 7
channel 4 (2427 MHz), width: 40 MHz, center1: 2437 MHz
[masm@mycray ~]$ sudo iw wlan0 link
Connected to 90:f6:52:fb:73:9c (on wlan0)
SSID: TP-LINK_FB739C
freq: 2427
RX: 2293 bytes (20 packets)
TX: 715 bytes (8 packets)
signal: -39 dBm
tx bitrate: 150.0 MBit/s MCS 7 40Mhz short GI
bss flags: short-preamble short-slot-time
dtim period: 0
beacon int: 100
[masm@mycray ~]$ sudo dhcpcd -d wlan0
dhcpcd[12952]: version 5.6.7 starting
dhcpcd[12952]: wlan0: using hwaddr 64:70:02:15:ec:35
dhcpcd[12952]: wlan0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd[12952]: wlan0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd[12952]: wlan0: sending IPv6 Router Solicitation
dhcpcd[12952]: wlan0: broadcasting for a lease
dhcpcd[12952]: wlan0: sending DISCOVER (xid 0xbfbdfd2a), next in 3.87 seconds
dhcpcd[12952]: wlan0: sending DISCOVER (xid 0xbfbdfd2a), next in 7.09 seconds
dhcpcd[12952]: wlan0: sending IPv6 Router Solicitation
dhcpcd[12952]: wlan0: sending IPv6 Router Solicitation
dhcpcd[12952]: wlan0: sending DISCOVER (xid 0xbfbdfd2a), next in 16.49 seconds
dhcpcd[12952]: wlan0: sending IPv6 Router Solicitation
dhcpcd[12952]: wlan0: no IPv6 Routers available
dhcpcd[12952]: wlan0: sending DISCOVER (xid 0xbfbdfd2a), next in 32.03 seconds
dhcpcd[12952]: timed out
Here is the output of journalctl for the about shell interaction. I can't see anything obviously wrong:
Apr 09 11:55:04 mycray kernel: rtl8192cu: Chip version 0x11
Apr 09 11:55:04 mycray kernel: rtl8192cu: MAC address: 64:70:02:15:ec:35
Apr 09 11:55:04 mycray kernel: rtl8192cu: Board Type 0
Apr 09 11:55:04 mycray kernel: rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
Apr 09 11:55:04 mycray kernel: rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
Apr 09 11:55:04 mycray kernel: ieee80211 phy7: Selected rate control algorithm 'rtl_rc'
Apr 09 11:55:04 mycray kernel: rtlwifi: wireless switch is on
Apr 09 11:55:04 mycray systemd-sysctl[12919]: Duplicate assignment of kernel/sysrq in file '/usr/lib/sysctl.d/50-default.conf', ignoring.
Apr 09 11:56:18 mycray sudo[12934]: masm : TTY=pts/3 ; PWD=/home/masm ; USER=root ; COMMAND=/usr/sbin/ip link set wlan0 up
Apr 09 11:56:18 mycray sudo[12934]: pam_unix(sudo:session): session opened for user root by masm(uid=0)
Apr 09 11:56:18 mycray kernel: rtl8192cu: MAC auto ON okay!
Apr 09 11:56:18 mycray kernel: rtl8192cu: Tx queue select: 0x05
Apr 09 11:56:19 mycray sudo[12934]: pam_unix(sudo:session): session closed for user root
Apr 09 11:56:19 mycray kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Apr 09 11:56:29 mycray sudo[12936]: masm : TTY=pts/3 ; PWD=/home/masm ; USER=root ; COMMAND=/usr/sbin/iw wlan0 connect TP-LINK_FB739C
Apr 09 11:56:29 mycray sudo[12936]: pam_unix(sudo:session): session opened for user root by masm(uid=0)
Apr 09 11:56:29 mycray sudo[12936]: pam_unix(sudo:session): session closed for user root
Apr 09 11:56:30 mycray kernel: wlan0: authenticate with 90:f6:52:fb:73:9c
Apr 09 11:56:30 mycray kernel: wlan0: send auth to 90:f6:52:fb:73:9c (try 1/3)
Apr 09 11:56:30 mycray kernel: wlan0: authenticated
Apr 09 11:56:30 mycray kernel: wlan0: associate with 90:f6:52:fb:73:9c (try 1/3)
Apr 09 11:56:30 mycray kernel: wlan0: RX AssocResp from 90:f6:52:fb:73:9c (capab=0x421 status=0 aid=1)
Apr 09 11:56:30 mycray kernel: wlan0: associated
Apr 09 11:56:30 mycray kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Apr 09 11:56:32 mycray avahi-daemon[402]: Registering new address record for fe80::6670:2ff:fe15:ec35 on wlan0.*.
Apr 09 11:56:33 mycray ntpd[3715]: Listen normally on 24 wlan0 fe80::6670:2ff:fe15:ec35 UDP 123
Apr 09 11:56:33 mycray ntpd[3715]: peers refreshed
Apr 09 11:56:33 mycray ntpd[3715]: new interface(s) found: waking up resolver
Apr 09 11:56:43 mycray sudo[12941]: masm : TTY=pts/3 ; PWD=/home/masm ; USER=root ; COMMAND=/usr/sbin/iw wlan0 info
Apr 09 11:56:43 mycray sudo[12941]: pam_unix(sudo:session): session opened for user root by masm(uid=0)
Apr 09 11:56:43 mycray sudo[12941]: pam_unix(sudo:session): session closed for user root
Apr 09 11:56:46 mycray sudo[12943]: masm : TTY=pts/3 ; PWD=/home/masm ; USER=root ; COMMAND=/usr/sbin/iw wlan0 link
Apr 09 11:56:46 mycray sudo[12943]: pam_unix(sudo:session): session opened for user root by masm(uid=0)
Apr 09 11:56:46 mycray sudo[12943]: pam_unix(sudo:session): session closed for user root
Apr 09 11:57:18 mycray sudo[12951]: masm : TTY=pts/3 ; PWD=/home/masm ; USER=root ; COMMAND=/usr/sbin/dhcpcd -d wlan0
Apr 09 11:57:18 mycray sudo[12951]: pam_unix(sudo:session): session opened for user root by masm(uid=0)
Apr 09 11:57:18 mycray dhcpcd[12952]: version 5.6.7 starting
Apr 09 11:57:18 mycray dhcpcd[12952]: wlan0: using hwaddr 64:70:02:15:ec:35
Apr 09 11:57:18 mycray dhcpcd[12952]: wlan0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
Apr 09 11:57:18 mycray dhcpcd[12952]: wlan0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
Apr 09 11:57:18 mycray dhcpcd[12952]: wlan0: sending IPv6 Router Solicitation
Apr 09 11:57:18 mycray dhcpcd[12952]: wlan0: broadcasting for a lease
Apr 09 11:57:18 mycray dhcpcd[12952]: wlan0: sending DISCOVER (xid 0xbfbdfd2a), next in 3.87 seconds
Apr 09 11:57:22 mycray dhcpcd[12952]: wlan0: sending DISCOVER (xid 0xbfbdfd2a), next in 7.09 seconds
Apr 09 11:57:22 mycray dhcpcd[12952]: wlan0: sending IPv6 Router Solicitation
Apr 09 11:57:26 mycray dhcpcd[12952]: wlan0: sending IPv6 Router Solicitation
Apr 09 11:57:29 mycray dhcpcd[12952]: wlan0: sending DISCOVER (xid 0xbfbdfd2a), next in 16.49 seconds
Apr 09 11:57:30 mycray dhcpcd[12952]: wlan0: sending IPv6 Router Solicitation
Apr 09 11:57:30 mycray dhcpcd[12952]: wlan0: no IPv6 Routers available
Apr 09 11:57:32 mycray dhcpcd[11891]: vboxnet3: renewing lease of 192.168.0.126
Apr 09 11:57:32 mycray dhcpcd[11891]: vboxnet3: acknowledged 192.168.0.126 from 192.168.0.1
Apr 09 11:57:32 mycray dhcpcd[11891]: vboxnet3: leased 192.168.0.126 for 604800 seconds
Apr 09 11:57:45 mycray dhcpcd[12952]: wlan0: sending DISCOVER (xid 0xbfbdfd2a), next in 32.03 seconds
Apr 09 11:57:48 mycray dhcpcd[12952]: timed out
Apr 09 11:57:48 mycray sudo[12951]: pam_unix(sudo:session): session closed for user root
And the output of scanning for a router:
[masm@mycray ~]$ sudo iw wlan0 scan
BSS 90:f6:52:fb:73:9c (on wlan0) -- associated
TSF: 1069157760 usec (0d, 00:17:49)
freq: 2427
beacon interval: 100
capability: ESS ShortPreamble ShortSlotTime (0x0421)
signal: -40.00 dBm
last seen: 127333 ms ago
Information elements from Probe Response frame:
SSID: TP-LINK_FB739C
Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
DS Parameter set: channel 4
ERP: <no flags>
Extended supported rates: 24.0 36.0 48.0 54.0
WMM: * Parameter version 1
* u-APSD
* BE: CW 15-1023, AIFSN 3
* BK: CW 15-1023, AIFSN 7
* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
* VO: CW 3-7, AIFSN 2, TXOP 1504 usec
HT capabilities:
Capabilities: 0x114e
HT20/HT40
SM Power Save disabled
RX HT40 SGI
RX STBC 1-stream
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT RX MCS rate indexes supported: 0-7
HT TX MCS rate indexes are undefined
HT operation:
* primary channel: 4
* secondary channel offset: above
* STA channel width: any
* RIFS: 1
* HT protection: no
* non-GF present: 0
* OBSS non-GF present: 0
* dual beacon: 0
* dual CTS protection: 0
* STBC beacon: 0
* L-SIG TXOP Prot: 0
* PCO active: 0
* PCO phase: 0
WPS: * Version: 1.0
* Wi-Fi Protected Setup State: 1 (Unconfigured)
* Response Type: 3 (AP)
* UUID: 00000000-0000-1000-0000-90f652fb739c
* Manufacturer: TP-LINK
* Model: TL-MR3220
* Model Number: 1.0
* Serial Number: 1.0
* Primary Device Type: 6-0050f204-1
* Device name: Wireless N 3G Router TL-MR3220
* Config methods: Ethernet, Label, PBC
* RF Bands: 0x1
At the moment I'm using a Windows machine inside VirtualBox to provide internet to the outer machine. This has been my setup for the last 6 months.
It would be really great if I didn't have to boot a Windows VM just to have internet.
Any idea of any additional step to debug this issue is greatly appreciated.
Thanks.
Offline
I see it checking for IPv6 and failing, but it doesn't fallback to IPv4. Have you tried disabling IPv6? Or have you somehow disabled IPv4?
Can you ping ip addresses (eg 8.8.8.8)?
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I just disabled IPv6 on dhcpcd (using noipv6rs in the configuation) and the messages about IPv6 are gone but the behavior remains: it still times out.
I don't think I disabled IPv4 as the other networks keep working.
Offline
The rtl8192cu kernel driver does not work. You can use dkms-8192cu from the AUR instead.
It might get solved in a future kernel: https://bugzilla.kernel.org/show_bug.cgi?id=45241
Offline