You are not logged in.

#1 2013-06-27 03:50:23

Resistance
Member
Registered: 2012-09-04
Posts: 26

Can't get an IP adress from DHCP server

Hi, I  have an issue with my wireless card:

Bus 005 Device 020: ID 050d:1004 Belkin Components F9L1004 802.11n Surf N300 XR Wireless Adapter [Realtek RTL8192CU]

The card works fine on Windows and I've another card which works fine on Linux (rt2800usb).

After getting associated with my AP, I can't seem to get an IP address using dhcp:

# dhcpcd -4 wlan0
dhcpcd[17328]: version 5.6.8 starting
dhcpcd[17328]: wlan0: broadcasting for a lease
dhcpcd[17328]: timed out
---
# dhclient -v wlan0
Listening on LPF/wlan0/xx:xx..
Sending on   LPF/wlan0/xx:xx..
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
 

I thus tried to use a static IP:

# ip address add 192.168.0.11/24 broadcast 192.168.0.255 dev wlan0
---
# ip route add default via 192.168.0.1 

but:

ping 8.8.8.8    
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.0.11 icmp_seq=1 Destination Host Unreachable
From 192.168.0.11 icmp_seq=2 Destination Host Unreachable
From 192.168.0.11 icmp_seq=3 Destination Host Unreachable
ip neighbour (rt8192cu)
192.168.0.1 dev wlan0  INCOMPLETE
---
ip neighbour (rt2800usb)
192.168.0.1 dev wlan0 lladdr xy:xy REACHABLE

Additionnal informations:
-dmesg

usb 5-7: new high-speed USB device number 24 using ehci-pci
usb 5-7: reset high-speed USB device number 24 using ehci-pci
phy9 -> rt2x00_set_chip: Info - Chipset detected - rt: 3070, rf: 0005, rev: 0201.
ieee80211 phy9: Selected rate control algorithm 'minstrel_ht'
phy9 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'.
phy9 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29.

[association]

IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
phy9 -> rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 10 in queue 0
wlan0: authenticate with xy:xy
wlan0: send auth to xy:xy (try 1/3)
wlan0: authenticated
rt2800usb 5-7:1.0 wlan0: disabling HT/VHT due to WEP/TKIP use
wlan0: associate with xy:xy (try 1/3)
wlan0: RX AssocResp from xy:xy (capab=0x411 status=0 aid=5)
wlan0: associated
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
---
hub 4-0:1.0: unable to enumerate USB device on port 2
usb 5-8: new high-speed USB device number 22 using ehci-pci
rtl8192cu: Chip version 0x11
rtl8192cu: MAC address: xx:xx
rtl8192cu: Board Type 0
rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
ieee80211 phy7: Selected rate control algorithm 'rtl_rc'
rtlwifi: wireless switch is on

[association]

rtl8192cu: MAC auto ON okay!
rtl8192cu: Tx queue select: 0x05
IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
wlan0: authenticate with xy:xy
wlan0: direct probe to xy:xy (try 1/3)
wlan0: direct probe to xy:xy (try 2/3)
wlan0: send auth to xy:xy (try 3/3)
wlan0: authenticated
rtl8192cu 5-8:1.0 wlan1: disabling HT/VHT due to WEP/TKIP use
wlan0: associate with  xy:xy (try 1/3)
wlan0: RX AssocResp from  xy:xy (capab=0x411 status=0 aid=7)
wlan0: associated
IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready

-I tried each card separatelly (no mixing between drivers)
-I configured the rt2800usb and the rt8192cu using the exact same steps (static ip (even if the rt2800usb works just fine using dhcpcd or dhclient)).

Thanks.

Last edited by Resistance (2013-06-27 03:52:45)

Offline

#2 2013-06-27 12:34:01

mindhack
Member
Registered: 2010-03-05
Posts: 14

Re: Can't get an IP adress from DHCP server

Have you checked your /etc/resolv.conf ?

Somehow mine gets reset every now and the lately.

Offline

#3 2013-07-01 15:36:12

Resistance
Member
Registered: 2012-09-04
Posts: 26

Re: Can't get an IP adress from DHCP server

Thanks for your answer.
I experienced it too.
However it should affect connections to "unknown" websites (i.e. not direct connections to IP adresses and not to websites whose address was already cached locally), right ?
I can't even ping my gateway hmm.

I don't understand how one card is able to receive an address by DHCP while the other is not, how is this possible ?

Offline

#4 2013-07-24 05:46:50

marius
Member
Registered: 2010-06-03
Posts: 7

Re: Can't get an IP adress from DHCP server

I have this exact problem as well, with the same exact chipset. Has anyone found a solution?

Offline

Board footer

Powered by FluxBB