How to conncet to router


Forum: Networking
Topic: How to conncet to router
started by: rxmanjk

Posted by rxmanjk on Nov. 24 2005,17:42
Trying to get my wireless working.  Here's what I have got so far.  Using ndiswrapper to load drivers.  ifconfig -a does list wlan0 device, so I assume all is good there.  /sbin/modprobe ndiswrapper looks ok.  Now I need to connect to my wireless router.  It is setup as a dhcp configuration with no wep key.  The ssid from router is "07740" .  

- So i use the iwconfig command -- iwconfig wlan0 essid 07740 rate auto.
- pump -i wlan0

-But I get an operation failed response after pump.  I forgot which command I used maybe ,ifconfig -a, after pump and I can see tx packets have increased in number. So I assume my card is transmitting
As far as I can tell card never connects to router.  I do not know how to see if card is recieving even my routers ssid.  I am really stuck at this point and have exhuasted my linux knowledge and have spent many hours googling now.  Any help would be appriacted, thanks --RXMAN

Posted by sci_fi on Nov. 26 2005,02:08
Hello:

I have the same problem. My wlan0 configuration script which works perfectly on 1.5, fails on 2.0. I have been unable to connect to my router using 2.0.  Since I changed nothing, it appears that something got broken in 2.0.

Best Regards,

sci_fi

Posted by rxmanjk on Nov. 26 2005,05:58
What your scrpit look like?? :D
Posted by sci_fi on Nov. 26 2005,12:55
This is my wlan0 setup script that works on 1.5. It is executed from a command in .xinitrc at boot.

cd /home/dsl/.GREG/wlan0/mn-720
sudo ndiswrapper -i mn720-ankh.inf
sudo modprobe ndiswrapper

#Wait for modprobe completion
sleep 2s

#sudo ndiswrapper -m

#echo "Set WEP key"
sudo iwconfig wlan0 key restricted "mywepkey"
#echo "WEP key set"

#echo "Set essid"
sudo iwconfig wlan0 essid any
#echo "essid is set"

#echo "Do ifconfig"
sudo ifconfig wlan0 up
#echo "ifconfig done"

#echo "Now pump"
sudo pump -i wlan0 &

Posted by rxman on Nov. 28 2005,00:44
OK modifiying your script as needed gave me a working connection.  As a matter of fact I am using it right now.... cool.  However  some weird stuff.  I need to physical turn off card to do ndiswrapper and /sbin/modprobe ndiswrapper.  Then I physically turn on card  and run rest of commands.  Any idea how to write that into a script??  I mean just prompts and directions to turn off/on card and the needed pauses for me to do such?  Do not care at this point about catching it at boot.  Just a script I can tuck away.  Thanks again for assistance this far. Rxman

---- Turn off card ----
ndiswrapper /mnt/hda2/bcmwl5.inf
modprobe ndiswrapper
---- Turn on Card ----
iwconfig wlan0 essid any
ifconfig wlan0 up
pump -i wlan0 &
#end of script

ps what does the '&' stand for in pump?

Posted by sci_fi on Nov. 29 2005,01:32
Glad the script helped. Very satisfying when wireless starts working.

Odd about having to turn the card on and off. I have never had that problem. In my experience the card is "off" until the modprobe ndiswrapper command executes. Then lights up.

I vaguely remember hearing of something like that when using ndiswrapper with the Microsoft supplied driver for the MN-720 pcmcia  wireless card. I got around that by using a home-grown driver I discovered on the ndiswrapper site.  But, whatever works...

I am not very knowledgable out programming in shell script. I believe there is some sort of input command that causes a pause until the user enters a keystroke.  Probably there is a script primer online somewhere.  Not much help here. Sorry.

The "&" is to allow the shell prompt to return before the command has completed execution. "Pump" in particular can take a while.

I am certain there is a bug in dsl 2.0 wrt to wireless. Other postings are indicating similar problems. Probably be fixed by the dsl team before long.

Cheers,

sci_fi

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.