Networking :: How to conncet to router



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

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

What your scrpit look like?? :D
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 &

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?

Next Page...
original here.