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 |
Quote:
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. |
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 thr:off Fragment thr:off Encryption key:off 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 |
Quote:
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? |
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 |
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. |
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 |
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. |
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?
|
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 |
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 |
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 |
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? |
Sir,
But in case of Redhat 9 also,i am facing the problem. Thanks and Regards, Ravi Chobey |
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 |
All times are GMT -5. The time now is 11:01 PM. |