LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 12-27-2008, 04:47 AM   #1
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Rep: Reputation: 30
Thumbs up Dlink DW-140 issue:Not bale to set ESSID and not ping the gateway


Hi All,

I am having Dlink DW-140,ralink 2870 based Wireless USB adapter.I have followed these steps for usting it:

insmod public/rt2870sta.ko /*loading the device driver*/
ifconfig ra0 up
iwlist ra0 scanning


*if have key
iwconfig ra0 essid "Dlink" key "0222993370"

4. create ifcfg-ra0, command line below:
vi /etc/sysconfig/network-scripts/ifcfg-ra0

insert below:

DEVICE=ra0
BOOTPROTO=dhcp
ONBOOT=no
TYPE=wireless
ESSID=SQ
MODE=Managed
RATE=54M

5. command line below:
ifconfig ra0 up
route add default gw 192.168.1.254

I am facing problems while setting the Essid i.e "Dlink".When i am running "iwconfig" command,i am only able to see ESSID "". I am not able to ping my the gateway IP address.

Please support me in solving this issue.

Regards,
Ravi Chobey
 
Old 12-27-2008, 05:24 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Quote:
ESSID=SQ
You have this value set in the config file, and you are trying to connect to an ESSID of Dlink. I would try editing the config file, and wet the ESSID there to the correct value.

I see the route add command. You could also add a line in the config 'GATEWAY=192.168.1.254'.

Have you verified the router configuration yourself to make sure this is the IP address of the Gateway ( the router ? ) The majority of the routers I have looked at, the gateway addy would be '192.168.1.1'

Verify the key as well, just in case.

I'm guessing, what ever is wrong, you are not getting an IP address from the DHCP server. After you activate the interface, run a '/sbin/ifconfig' command and see if you have an IP address assigned to ra0.

You could assign a static IP address, and try to connect to your router. The RATE=54M looks strange for wireless. Not sure if that would cause problems or not. Wireless is usually 11M or 22M.

Last edited by camorri; 12-27-2008 at 05:32 AM.
 
Old 12-27-2008, 06:06 AM   #3
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

Sir,

Thanks for your prompt reply.

You are correct many routers have IP address 192.168.1.1,it was my mistake.
But when i have setted the ESSID=SQ in ifcfg-ra0,then i should be able to
get "SQ" as my ESSID.

The key is correct.I have got following responses,please check it out,guide
me where i am going wrong.

A)iwconfig ra0
ra0 RT2870 Wireless ESSID:"" Nickname:"RT2870STA"
Mode:Auto Frequency=2.412 GHz Bit Rate=1 Mb/s
RTS thrff Fragment thrff
Encryption keyff
Link Quality:0 Signal level:0 Noise level:169
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

B)ifconfig ra0
ra0 Link encap:Ethernet HWaddr 00:21:91:22:E1:7B
inet addr:192.168.1.16 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:543 errors:0 dropped:0 overruns:0 frame:0
TX packets:1092 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:62850 (61.3 KiB) TX bytes:74732 (72.9 KiB)

C)ping 192.168.1.16
PING 192.168.1.16 (192.168.1.16): 56 data bytes
64 bytes from 192.168.1.16: icmp_seq=0 ttl=64 time=0.0 ms
64 bytes from 192.168.1.16: icmp_seq=1 ttl=64 time=0.0 ms
64 bytes from 192.168.1.16: icmp_seq=2 ttl=64 time=0.0 ms

--- 192.168.1.16 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms

I am having a doubt,in C part in time section why i am getting 0.0 ms
in every instant,i should be able to get some least values for that,i think
so.

Thanks and Regards,
Ravi chobey
 
Old 12-27-2008, 09:04 AM   #4
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Quote:
I am having a doubt,in C part in time section why i am getting 0.0 ms
in every instant,i should be able to get some least values for that,i think
so.
You are pinging your own IP address. The time parameter can be misleading. It is usually a hop count, ( the number of routers you went through to get the ping ). I this case it is zero.

Can you ping the router now? ping 192.168.1.1 ???

You now have an IP address. Did you change the config to static IP address? Or did you leave it as DHCP, and the IP address came from the DHCP server in the router?
 
Old 12-28-2008, 11:22 PM   #5
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

Sir,

1> I am still not able to ping my router.Please go through the commands which i have passed:

ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes

--- 192.168.1.1 ping statistics ---
9 packets transmitted, 0 packets received, 100% packet loss

2> Earlier when i have passed my last command,in followiing manner:
route add default gw 192.168.1.1
route: SIOC[ADD|DEL]RT: File exists. Why i am getting this? In config file i.e ifcfg-ra0 i have BOOTPROTO from DHCP
to static

3> After loading the driver "rt2870sta.ko" file,i am getting this messages:

Bulk In Failed. Status=-71, BIIdx=0x2, BIRIdx=0x2, actual_length= 0x0

Thanks for your till now support,

Regards,
Ravi Chobey
 
Old 12-29-2008, 05:52 AM   #6
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
There is something strange going on here. I don't see anything wrong about the command you have used. At one point you could ping 192.168.1.1. Now you can not. What changed? Did you boot the system? Is the gateway address not being stored?

O.K. would you please post the distro, and release you are using? It looks like it might be Mandriva, but that is a guess on my part. What gui tools do you have installed to see status of your wireless connection? What gui tools do you have to configure with?

Would you please post the complete contents of the file ifcfg-ra0. That should have your gateway address, your static IP address, DNS addresses etc.
 
Old 12-29-2008, 06:11 AM   #7
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

Actually it is Embedded linux system running on ARM9 hardware.I have two DNS addresses i.e. 202.54.29.5 and
202.54.10.2.I am using the first DNS address which is stored in /etc/resolv.conf.The IP address i am using is
192.168.1.17,gateway is 192.168.1.1 and router is at 121.246.210.1.
I am using Wireless tools-0.28 for getting various commands. The contents of icfg-ra0 are:

DEVICE=ra0
BOOTPROTO=dhcp
ONBOOT=no
TYPE=wireless
ESSID=SQ
MODE=Managed
RATE=54M

Thanks and Regards,
Ravi
 
Old 12-29-2008, 06:29 AM   #8
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
This is a distro I'm not familiar with. Each one seems to have a different way of doing networking, file names etc. So, it isn't as easy as " do this " and it will work.

Resolv.conf may get overwritten. Usually there is another place to put DNS addresses. I don't see any configuration for the wireless part, at least not in this file.

Lets try to add some information here, and see it it has any effect. Follow the same syntax as you see.

Could you add

GATEWAY=192.168.1.1
DNS1= what ever your DNS is
DNS2= if you have a second
ONBOOT=yes

And give it a try? Post the results of 'ifconfig ra0' and iwconfig ra0' after the changes.

We need to better understand where the wireless stuff goes. This file, or somewhere else.

Things like wireless-mode, wireless-essid wireless-key etc. have to be somewhere. I'm going to try and figure out where to put that stuff.
 
Old 12-29-2008, 08:14 AM   #9
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
It seems there are a lot of "Emdded Linux systems". What documentation do you have for it? Any web sites that may shed some light on configuration?
 
Old 12-29-2008, 11:36 PM   #10
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

Sir,

Have a look at this link.He is also facing the same problem,but for Fedora 9 based system.

http://marc.info/?l=fedora-list&m=121614188428266&w=2


Thanks and Regards,
Ravi
 
Old 12-30-2008, 04:17 AM   #11
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

Sir,
As per my discussion with you.I have done the same,i am loading the driver and ifcfg-ra0 at boot time.I am getting the same results.
Later on you have asked me about the reference:
The book is "Building embedded linux system" By karim Yagmour
and by googling various mailing lists.

Regards,
Ravi
 
Old 12-30-2008, 04:22 AM   #12
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

Sir,
Could you forward me your gmail,yahoo or hotmail email ID.So that i can forward you my snapshots.
Thanks for your support,

Regards,
Ravi
 
Old 12-30-2008, 05:31 AM   #13
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Post 10. I read through that post. From what is there, the router is having a problem with the key that is being sent. I see the essid is blank. The access point is using WPA1 and the user system is set up for WPA2. That could be the problem, but it doesn't help this problem. What might help, is the approach of, looking in the system log for errors. That may tell us what is wrong in this case.

Post 11. Imbedded linux. I was hoping there was some documentation on the version you have. The problem is, every distro has a slightly different method of setting up wireless. Different file names in different locations. Without the doc, it is difficult to figure out how to set things up.

What we have to do is get the parameters on your system to match the access point. Then it will work, unless there is some other problem related to the driver or hardware.

What make and model of router do you have? I looked back through this thread, and I don't see it. Does it have wired ports? Have you connected your system with a cable? Does that work?
 
Old 01-03-2009, 03:36 AM   #14
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

Sir,

But in case of Redhat 9 also,i am facing the problem.

Thanks and Regards,
Ravi Chobey
 
Old 01-05-2009, 06:02 AM   #15
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

Dear Camori Sir,

I have sorted the issue.

There were some bugs inside USB stack for the storlink board.
TX bulk and RX bulk buffer for USB related problems were there.

Thanks for your support.

Could you please guide of using a wireless USB on Redhat 9 based system.

Regards,
Ravi
 
  


Reply

Tags
usb, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
default gateway not set by PPPoE, can't ping internet rproffit Linux - Networking 3 12-17-2007 05:29 AM
DLink DWL-650+ w/less adaptor needs ESSID broadcast? HoOLi Linux - Wireless Networking 1 03-12-2006 07:23 AM
can't ping accesspoint, but get essid timophej Linux - Wireless Networking 3 11-13-2005 07:55 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM


All times are GMT -5. The time now is 12:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration