You are not logged in.

#1 2009-11-26 21:36:53

kitabu
Member
Registered: 2009-08-16
Posts: 6

Wireless problems with AR5212, wpa_supplicant and dhcpcd. [solved]

Dear friends,

I am currently experiencing problems with getting my AR5212 wireless card to work with wpa_supplicant and the ath5k driver. Everything is set up according to the Arch Wireless Setup Wiki http://wiki.archlinux.org/index.php/Wireless_Setup. First, I do the following:

# ifconfig wlan0 up
# iwconfig wlan0 essid Prairiedog
# wpa_supplicant -B -Dwext -iwlan0 -c /etc/wpa_supplicant.conf

It goes well even up until the point where I wish to request a dhcp lease from my router.

# dhcpcd wlan0
wlan0: dhcpd 4.0.10 starting
wlan0: braodcasting for a lease
wlan0: offered 192.168.0.2 from 192.168.0.1 'm'
wlan0: checking 192.168.0.2 is available on attached networks
wlan0: leased 192.168.0.2 for 86400 seconds

Excerpt from ifconfig:

Link encap:Ethernet    HWaddr 00:56:A4:44:DA:1A
inet addr:192.168.0.2 Bcast: 255.255.255.255 Mask 255.255.255.0

My wireless card should then be associated with 192.168.0.2...

What confuses me is that I cannot get the my wireless net card to ping any addresses. It seems that there is no connection to the outer world, despite the fact that an address has been assigned by my router. When I for example do a

# ping www.google.com

I get the response

ping: unknown host www.google.com

What is even more strange is that I cannot ping the router itself:

# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data
From 192.168.0.2 icmp_seq=1 Destination Host Unreachable

Anyone who has had the same problem and actually solved it? I would really like to get this distribution up and running on my IBM X32 laptop. The simpleness and the philosophy behind it is very appealing to me. But without a wireless connection it is pretty pointless. Any pointer or help will be highly appreciated wink

Last edited by kitabu (2009-12-20 10:37:29)

Offline

#2 2009-11-27 23:15:39

Ekimino
Member
From: Maldonado, Uruguay
Registered: 2008-02-26
Posts: 69
Website

Re: Wireless problems with AR5212, wpa_supplicant and dhcpcd. [solved]

By using wpa_supplicant you don't need iwconfig.

try this:

wpa_passphrase <essid> <password>  >> /etc/wpa_supplicant.conf
wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf &> /dev/null &
dhcpcd wlan0+

Edit: If the previos was done, try getting eth0 down.

Last edited by Ekimino (2009-11-27 23:20:02)

Offline

#3 2009-11-28 10:24:43

kitabu
Member
Registered: 2009-08-16
Posts: 6

Re: Wireless problems with AR5212, wpa_supplicant and dhcpcd. [solved]

Hi Ekimino,
I did as you suggested. I requested a dhcp lease and the router gave me 192.168.0.2. But I seems that I am losing connection immediately afterwards. When I ping an external address like www.google.com I get "unknown host" and when I ping my router I get the message that the destination host is unreachable. Perhaps the issue lies with dhcpcd or maybe a combination of the ath5k and dhcpcd?

Offline

#4 2009-11-28 13:14:50

kitabu
Member
Registered: 2009-08-16
Posts: 6

Re: Wireless problems with AR5212, wpa_supplicant and dhcpcd. [solved]

Taking down eth0 did the trick for me. Thanks ekimino!

ifconfig eth0 down

One more question: what if one wants to run both wireless AND cabled network simultaneously on the same laptop.
Would it be possible to set up both NICs so that they do not interfere with each other?

Last edited by kitabu (2009-11-28 14:18:26)

Offline

Board footer

Powered by FluxBB