LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (http://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Set up my wifi network with mandriva2006 (http://www.linuxquestions.org/questions/linux-wireless-networking-41/set-up-my-wifi-network-with-mandriva2006-401932/)

Capecod 01-11-2006 04:03 AM

Set up my wifi network with mandriva2006
 
Hi all
Sorry for my english (my french is better):)

I have trouble to set up my wifi network.
After looking in many forum, serching many informations and solutions (with no succes) i ask you to find the way.
So, the distib is Mandriva2006
the wifi card is ASUS wifi 802.11G with RALINK rt2500 chipset (Mandriva recognize the card verry well)
the AP is also ROUTEUR and WIFI (it's a box called FREEBOX in france)
The routeur mode is active, DHCP is not actived, i have a static IP 192.168.0.59
and the gateway (the freebox) adress is 192.168.0.254.
The DNS 1 & 2 are set up in the mandriva network configuration.
encryption method is WEP
The mandriva network icon say that" the network is active on interface ra0" but however it is impossible for me to connect
Mandriva "see" my network but only with one red bar.
HELP!!!

Here the result of : iwconfig, ifconfig, etc...
[root@capecod Desktop]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0E:A6:A7:5F:96
adr inet6: fe80::20e:a6ff:fea7:5f96/64 Scope:Lien
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 TX bytes:0 (0.0
Interruption:20 Adresse de base:0xe000

eth1 Link encap:Ethernet HWaddr 00:0E:A6:A7:99:66
adr inet6: fe80::20e:a6ff:fea7:9966/64 Scope:Lien
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 TX bytes:0 (0.0
Interruption:17 Mémoire:e1000000-0

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:136 errors:0 dropped:0 overruns:0 frame:0
TX packets:136 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:11736 (11.4 KiB) TX bytes:11736 (11.4 KiB)

ra0 Link encap:Ethernet HWaddr 00:11:D8:C0:BF:9B
inet adr:192.168.0.59 Bcast:192.168.0.255 Masque:255.255.255.0
adr inet6: fe80::211:d8ff:fec0:bf9b/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7427 errors:0 dropped:0 overruns:0 frame:0
TX packets:901 errors:3 dropped:3 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:678193 (662.2 KiB) TX bytes:38558 (37.6 KiB)
Interruption:18 Adresse de base:0x8000

[root@capecod Desktop]# iwconfig
lo no wireless extensions.

eth2 no wireless extensions.

sit0 no wireless extensions.

eth0 no wireless extensions.

eth1 no wireless extensions.

ra0 RT2500 Wireless ESSID:"capecod_wifi" Nickname:"capecod"
Mode:Managed Frequency=11 MHz Access Point: 00:07:CB:52:85:E9
Bit Rate=11 Mb/s
RTS thr:off Fragment thr:off
Encryption key:CAxxxxxxxxxxxxxxxxxxxx-69 Security mode:open
Link Quality=0/70 Signal level:-211 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


[root@capecod Desktop]# tail -20 /var/log/messages
Jan 10 14:49:09 capecod drakroam[9938]: ### Program is exiting ###
Jan 10 14:49:43 capecod drakoo[10612]: ### Program is starting ###
Jan 10 14:49:47 capecod drakoo[10612]: ### Program is exiting ###
Jan 10 14:49:56 capecod net_applet[4304]: running: /sbin/iwgetid -r ra0
Jan 10 14:49:56 capecod net_applet[4304]: running: /sbin/iwgetid -r -a ra0
Jan 10 14:49:56 capecod net_applet[4304]: running: /sbin/iwlist ra0 scanning
Jan 10 14:50:56 capecod net_applet[4304]: running: /sbin/iwgetid -r ra0
Jan 10 14:50:56 capecod net_applet[4304]: running: /sbin/iwgetid -r -a ra0
Jan 10 14:50:56 capecod net_applet[4304]: running: /sbin/iwlist ra0 scanning
Jan 10 14:51:56 capecod net_applet[4304]: running: /sbin/iwgetid -r ra0
Jan 10 14:51:56 capecod net_applet[4304]: running: /sbin/iwgetid -r -a ra0
Jan 10 14:51:56 capecod net_applet[4304]: running: /sbin/iwlist ra0 scanning
Jan 10 14:52:55 capecod su(pam_unix)[9817]: session closed for user root
Jan 10 14:52:56 capecod net_applet[4304]: running: /sbin/iwgetid -r ra0
Jan 10 14:52:56 capecod net_applet[4304]: running: /sbin/iwgetid -r -a ra0
Jan 10 14:52:56 capecod net_applet[4304]: running: /sbin/iwlist ra0 scanning
Jan 10 14:53:14 capecod su(pam_unix)[10783]: session opened for user root by capecod(uid=500)
Jan 10 14:53:56 capecod net_applet[4304]: running: /sbin/iwgetid -r ra0
Jan 10 14:53:56 capecod net_applet[4304]: running: /sbin/iwgetid -r -a ra0
Jan 10 14:53:56 capecod net_applet[4304]: running: /sbin/iwlist ra0 scanning

Le ping sur 192.168.0.254 :

root@capecod Desktop]# ping 192.168.0.254
PING 192.168.0.254 (192.168.0.254) 56(84) bytes of data.
From 192.168.0.59 icmp_seq=1 Destination Host Unreachable
From 192.168.0.59 icmp_seq=2 Destination Host Unreachable
From 192.168.0.59 icmp_seq=3 Destination Host Unreachable
From 192.168.0.59 icmp_seq=5 Destination Host Unreachable
From 192.168.0.59 icmp_seq=6 Destination Host Unreachable
From 192.168.0.59 icmp_seq=7 Destination Host Unreachable

i try also with FEDORA4 and UBUNTU but whit no succes, so i ask you the question, what is wrong ???? (every thing work well with WIN XP...)

Thanks for your help

capecod (débutant linuxien motivé)

Hangdog42 01-11-2006 12:54 PM

Welcome to LQ!

I'm betting you have two problems since you're usining a static IP.

First, you need to set your gateway to point at your router using the route command:

route add default gw 192.168.0.254

Second, you need to edit your /etc/resolv.conf file to include at least one nameserver. If your router picks up and IP address from your internet provider with DHCP, it can probably serve as the nameserver. Otherwise, you will need to list the IP addresses of the nameservers your ISP uses. Each nameserver should have its own line:

nameserver 192.168.0.254
nameserver 1.2.3.4 (only use the IP address of your ISP's nameserver)

wazzubrad 01-11-2006 02:22 PM

I am having nearly the exact same problem! The only difference is that I am using a Linksys wmp54g pci card using the same RA2500 driver and I am getting one red "bar" of reception. I am thinking this is a Mandriva 2006 problem of some sort. With 2005LE, I had no issues whatsoever. I tried running the command

route add default gw 192.168.0.254

with the result of

SIOCADDRT: Network is unreachable

Any ideas?

wazzubrad 01-11-2006 03:50 PM

Capecod, are you able to connect to a network? I have been able to connect to 2 different routers but with 0/70 link quality. When trying to access a web page, I can sometimes receive a little data after waiting 3-4 minutes, but this is rare. When looking at my netapplet, I have one red bar for both connections. I have tried 3 different wireless cards with all the same results. The wireless card I am using now (Linksys wmp54g) has worked fine in the past but with Mandriva 2005 LE.

Hangdog42 01-11-2006 04:27 PM

Quote:

route add default gw 192.168.0.254
OK, you have to modify this to fit your network. The reason I have the 191.168.0.254 IP address in that command is that is the IP address that Capecod gave for his router. If your router isn't at 192.168.0.254, then you would expect to get the Network is unreachable error because it is trying to use the wrong IP address for your router.

So if you used that command as it is without changing the IP address, then try it only this time use the IP address of your router.

Capecod 01-12-2006 02:24 AM

YES, you are damn good !!!! i'm working for one week on this !!!!

Just by adding "route add default gw 192.168.0.254" i'm currently connected on the net on my Mandriva 2006 to post this reply !!!
I still have one red bar in the bar scale but the "network watching" give me 1.2 kb/s in dl
Ok, now how to make this automatic on each time i load mandriva ?
Thank's a lot

capecod

Capecod 01-12-2006 04:46 AM

[resolved]
 
yo

I try to do the same (route add ....) on my FC4, and the answer is : SIOCADDRT: file exist
and i still can't connect

so i reinstall a clean Mandriva 2006 and ..... i connect directly with no "route add ...."

well the things work and that's great !!!

thank's all for your help

Capecod (happy newb)

wazzubrad 01-12-2006 03:31 PM

Capecod, I am glad to hear you got it working! I did try a re-intall this morning also and found that I am getting some connectivity. The only thing that I do notice is that I Firefox is very slow responding to or finding the DNS's. I have entered my routers IP address of 192.168.1.1 and also my ISP's DNS server into the resolv.conf file. Is this correct Hangdog42? Also, the correct setup I have is a 1500 Mbs/1024 Mb/s DSL Line connected to an Actiontec wireless DSL modem from Qwest, which is connected to the Linksys wireless router via ethernet cable. I am accessing the Linksys. Does this effect what DNS servers I enter in the resolv.conf? Also, here is the result of iwconfig:

[root@localhost brad]# iwconfig

ra0 RT2500 Wireless ESSID:"Schmidt House" Nickname:"localhost"
Mode:Managed Channel=7 Access Point: 00:14:BF:B6:E1:BE
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=0/70 Signal level:-198 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

I cannot figure out why I would have 0 link quality and all the noise? I really doubt these numbers. The wireless router is 10 feet away with nothing that should be affecting the signal. Any thoughts? Thanks again for the previous help.

wazzubrad 01-12-2006 03:42 PM

Hangdog42, I wanted to apologize, I just reread through your post and discovered your instructions on which DNS address to put in the resolv.conf.


Quote:

Originally Posted by Hangdog42
Welcome to LQ!
Second, you need to edit your /etc/resolv.conf file to include at least one nameserver. If your router picks up and IP address from your internet provider with DHCP, it can probably serve as the nameserver. Otherwise, you will need to list the IP addresses of the nameservers your ISP uses. Each nameserver should have its own line:

nameserver 192.168.0.254
nameserver 1.2.3.4 (only use the IP address of your ISP's nameserver)

It works great! Thanks again.

Hangdog42 01-12-2006 04:46 PM

Glad you figured out the nameserver bit. Probably every once in awhile you need to check to make sure your ISP hasn't swapped in some new ones, but I've only rarely seen that happen.

Did you figure out the link quality problem? To be honest, if you are able to access the Internet I wouldn't worry about it too much, but if you are having performance problems, then a little tinkering might be in order.

wazzubrad 01-13-2006 02:11 PM

I still haven't quite figured out the Link Quality problem. I am getting very good connectivity so I am not to worried about it! Thanks again for all your help,

Brad

jasonhouse 01-14-2006 12:18 PM

I'm also having trouble with wireless in Mandriva 2006.

As far as I can tell, everything is configured correctly.
My wireless interface is ath0 (and from modprobe corresponds to ath_pci)

dhclient finishes with following two lines:
DHPACK from 192.168.1.1
bound to 192.168.1.103 -- renewal in 35566 seconds.

route -n gives the following output:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 30 0 0 ath0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 30 0 0 ath0

Forgive me for not typing everything since I'm doing this from a different computer. The "Network Monitoring" utility says that it's connected on ath0 if I hover the mouse over it. If I double click on it, however, the bottom of the window says "Not connected". If I click on the "Connect wifi" button, it gets an error and instructs me to go to the control center. The control center is of no help since it gives no errors of any kind.

What baffles me is that dhclient works while ping doesn't.

ping -c 10 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.103 icmp seq=1 Destination Host Unreachable
From 192.168.1.103 icmp seq=1 Destination Host Unreachable
From 192.168.1.103 icmp seq=1 Destination Host Unreachable
From 192.168.1.103 icmp seq=1 Destination Host Unreachable
From 192.168.1.103 icmp seq=1 Destination Host Unreachable
From 192.168.1.103 icmp seq=1 Destination Host Unreachable
From 192.168.1.103 icmp seq=1 Destination Host Unreachable
From 192.168.1.103 icmp seq=1 Destination Host Unreachable
From 192.168.1.103 icmp seq=1 Destination Host Unreachable
From 192.168.1.103 icmp seq=1 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
0 packets transmitted, 0 received, +10 errors

I modified /etc/resolv.conf to list the gateway (192.168.1.1) but I doubt that affects this issue.

What else can I try? Anything anyone else needs to see?

Hangdog42 01-14-2006 12:55 PM

Since your route output looks good, could you post the outputs of ifconfig and iwconfig? By the way, using redirection to save output greatly reduces typing. So if you enter something like this:

ifconfig > ifconfig_output.txt

Then what normally would be displayed on the screen gets saved in a file (ifconfig_output.txt) instead. Then you can open that file in a text edior and just use cut/paste.

Capecod 01-16-2006 02:56 PM

Hi all

I now connect with no problem using Mandriva2006.
So i try to install SUSE10.0
I put exactly the same parameters, my wifi card work find but i still cant connect
I would like to compare the files on both Mandriva and Suse to see what is different, but i dont now which file to compare.
i already compare resolv.conf and the content is the 2 nameserver on both.

Can you help
Thanks for coop

Capecod

Hangdog42 01-16-2006 03:17 PM

You want to compare the outputs of iwconfig, ifconfig and route -n. Those will hopefully give you a clue as to what is going wrong.


All times are GMT -5. The time now is 04:37 PM.