You are not logged in.

#1 2009-03-19 14:56:34

Dreepser
Member
From: France
Registered: 2009-03-17
Posts: 10

Wireless Network nearly working !

Hi everyone !

This is my first topic (and my first post) on your forums, and it's the first time I install Arch Linux. I chose Arch Linux because I wanted a distribution that would make me learn (and I didn't want distributions where everything was handled from the beginning). Here I am : I sucessfully installed Arch Linux on my Dell Studio XPS 13 Laptop. I don't have anything else than what is on the CD (meaning I don't have any WM yet).

The first thing I wanted to do is installing then configuring the network, wireless network. I read the how-to.

lsmod | grep ath

returned three lines with ath9k. So I guessed UDev loaded successfully the driver. I followed the how-to which told me to

ifconfig wlan0 up

Done without problems. Then I

iwlist wlan0 scan

Which detected my wireless network.
Then, I

iwconfig wlan0 essid "MYSSID" key XXXXXXXXXX (wep key, hex not ASCII) channel 9 (because I saw it was this channel with iwlist)

Again : no problems, finally I

dhcpcd wlan0

After a few while and few messages I got a message that tells me "leased for ..." : I guessed it obtained an IP adress.

At this point I had the wifi LED turned on so I thought it was working. To test I try

ping www.google.com

And there is THE problem I got an : "ping: unknown host www.google.com" ...

And I'm stuck right here. Here are the results of common commands :

ifconfig
eth0
...

lo
...

wlan0
inet addr: 192.168.1.5 Bcast:192.168.1.255 Mask: 255.255.255.0
(other things here you can ask me if you need)

wmaster0
...

And

iwconfig
lo : no wireless extension

eth0 : no wireless extension

wmaster0 : no wireless extension

wlan0
IEEE 802.11abgn ESSID:"MYSSID"
Mode:Managed Frewuency:2.452GhX Access Point:00:03:XXXXX
Encryption Key:XXXXXXX Security Mode:open
Power Management:off
Link Quality=17/100 .....

I really don't understand why ping fails : everything seems to be working perfectly (the 17 percent are because I'm far from the box, but when I got nearby and have something > 70 it doesn't change anything).

So if you could help me to find out where the problem is and help me to resolve it it would so nice ^^

A last result in case of you'd have hearded about my wireless device is :

lspci | grep Wireless
Atheros Communications Inc. AR928X Wireless Network Adaptater (PCI-Express) (rev01)

Again, thanks in advance,

Regards,

Dreepser


Regards,
Dreepser.

Offline

#2 2009-03-19 15:10:35

bones.77
Member
Registered: 2008-07-18
Posts: 11

Re: Wireless Network nearly working !

Looks like you're connected to your router OK to me.  Can you ping the router (192.168.1.1 probably)?   Is your hostname in /etc/rc.conf the same as stated in /etc/hosts ?

Offline

#3 2009-03-19 16:41:21

Dreepser
Member
From: France
Registered: 2009-03-17
Posts: 10

Re: Wireless Network nearly working !

Hi bones.77,

Thanks for answering ! You said :

Looks like you're connected to your router OK to me.

And I agree with that ! That's why I'am stunned ... To answer you, yes I can ping my router :

ping 192.168.1.1

works fine : I have answers.

The hostnames are not the same :
I set the hostname as "saphira" in /etc/rc.conf

HOSTNAME="saphira"

Whereas I have nothing concerning the hostname in /etc/hosts

127.0.0.1           localhost.localdomain         localhost

What should I add/change in this file ?

Again thanks for your answer !


Regards,
Dreepser.

Offline

#4 2009-03-19 17:48:54

bones.77
Member
Registered: 2008-07-18
Posts: 11

Re: Wireless Network nearly working !

I believe you should change it to

127.0.0.1           localhost.localdomain         localhost    saphira

I know I've had problems with network connectivity when this wasn't done, I hope it helps.  If it doesn't, perhaps take a look at your routers log files?

Offline

#5 2009-03-19 18:10:45

Dreepser
Member
From: France
Registered: 2009-03-17
Posts: 10

Re: Wireless Network nearly working !

I changed it like you said, it didn't change anything ... I tryied different combinations (replacing "localhost" with "saphira", get rid of ".localdomain") ... nothing changed ...
I don't know what to do ... has anyone else another idea ? Any tips ?

How can I learn more about the problem ? Everything seems to work !

Should I write something in any conf file (rc.conf ?) to make the wireless network work ?

Seeins the messages and errors I wrote, do you think the problem comes from my computer ? Or from the router ?

I really need your help, I'm still a newbie in Linux world ...


Regards,
Dreepser.

Offline

#6 2009-03-20 01:08:07

slackcub
Member
Registered: 2009-03-14
Posts: 144

Re: Wireless Network nearly working !

I know I've had to set my /etc/resolv.conf by hand at times.  You may want to get your DNS servers from your router and add them to this file.  Just put each one on it's own line like:

server primary.dns.ip.address
server secondary.dns.ip.address

Hope this helps

David

Offline

Board footer

Powered by FluxBB