Originally posted by jpohara
What I have been typing is:
A lot of those commands are overkill or don't actually do anything, but if it works, don't break it right?
Check "lsmod" and "dmesg" to see if everything bound right.
The kernel did this already, you'll see that in dmesg.
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0 lnxreq_autojoin ssid=any authtype=opensystem
This may be the concern. Depending on what version of the linux-wlan project you are using, the scripts akohlsmith mentioned may or may not work. These jokers have the tendancy to break their own stuff a lot and their driver is just a little huge. Re-check the documentation that came with the version you are using and make sure these are the right control entries.
ifconfig wlan0 192.168.2.20
If you just add the word "up" at the end of that, it will finish what the command 3 down does. "ifconfig" takes multiple arguments.
route add default gw 192.168.2.1 wlan0
Okay... sepcifying the device wlan0 is unnecessary as route will know what you mean because its the only device so far on that subnet.
route add 192.168.2.20 wlan0
The route is automagically added as soon as the device is brought up which you either do next or did three lines ago if you add the word "up"
ifconfig wlan0 up
Now, this is odd, dhcpcd is going to dynamically configure via the wireless router everything you just configured by hand. You've already added your gateway route and given yourself an IP address, so as long as you have a nameserver to query in the file /etc/resolv.conf (which will have been leftover from last time you did a dhcp connection), you don't need to:
You should just be able to ping yahoo... Try these:
the two insmods,
the two calls to wlan-ctl,
ifconfig wlan0 192.168.2.20 up
route add default gw 192.168.2.1
If the host is unreachable, then its probably an extra line worth of something with the wlan-ctl stuff.
Also, just for future refernce: The orinoco driver set now includes support for these prism2 cards AND the pci adapter card. version .10 is the newest and you can configure them with iwconfig, which works much better than all the linux-wlan goop. I'm currently using them with a Linksys WPC11 setup.
Lastly, as soon as you have it down, don't rely on a paper, but put it in the script /etc/rc.d/rc.boot (I think that's the one in SuSe). This is the last script run by init. Just put all the commands in as if you were entering them on the command line and it should work.