stillhq.com : Mikal, a geek from Canberra living in Silicon Valley http://www.stillhq.com The life, times, travel and software of Michael Still en Copyright (c) Michael Still 2000 - 2006 blosxom simplerss20 v20050208hh 180 http://blogs.law.harvard.edu/tech/rss How do I set this up? /prism2ap Tue, 30 Apr 2002 07:00:00 PST So now that I've convinced you have managed mode is the way to go, I should probably help you get there. <BR><BR> The normal way to achieve a managed network is an access point. Access points are expensive (about twice what I paid for my PCI wireless card). The linux route is also more flexible. <BR><BR> <I>Please note that these instructions are based on you having an Intersil Prism2 wireless network card, such as the D-Link DWL 520. This stuff wont work on non-prism2 cards, because the Prism2's have some funky firmware to make this possible. If you're looking for a card, then have a look at <a href="http://www.everythinglinux.com.au">Everything Linux</a>, as they have good prices and understand linux. </i> <BR><BR> Follow these amazing steps: <UL> <LI>Go forth and get a new kernel <UL> <LI> I tried this on a 2.4.2 kernel, and the prism2 code didn't compile <LI> It did work on a 2.4.18 kernel (the current stable kernel) <LI> You might find that if you have a version inbetween, then it does work for you <LI> Compile into the kernel 802.1d ethernet bridging, and probably iptables unless you're insane </UL> <LI>Once you've verified that your new kernel boots and all that jazz, you're ready for the Prism2 drivers <UL> <LI> Go to <a href="http://people.ssh.com/jkm/Prism2/">http://people.ssh.com/jkm/Prism2/</a> and download the latest version <LI> Untar it <LI> Read the instructions <LI> Read them again <LI> I did something along the lines of: <PRE> make pci make install_pci </PRE> <LI> And it just worked <LI> Note that the Makefile cares about the location of your kernel source, so you might need to edit that </UL> <LI> Install the physical card and reboot <LI> After the boot, all the link lights on your wireless cards should have magically gone on (if not, try an insmod on /lib/modules/...ver.../net/hostap_pci.o) <LI> You now need to setup bridging of the wireless network with your wired network. This will allow you to reuse your existing DHCP server and stuff like that: <UL> <LI> Do you have the brctl command? If you don't, go to <a href="http://bridge.sf.net">http://bridge.sf.net</a> and start downloading... <LI> You need to build a bridge between the networks. For me, the set of commands to do this was: <PRE> brctl addbr br0 brctl addif br0 eth0 brctl addif br0 wlan0 ifconfig eth0 0.0.0.0 ifconfig wlan0 0.0.0.0 ifconfig br0 172.31.0.200 up </PRE> <LI> This was scary. I started doing this with an ssh login from a different box, and the login went away. In retrospect, that's because I took the interface down that I was logged in vai, the unexpected bit was that it went away with the <i>brctl addif br0 eth0</i> command. <LI> This sets up br0 as a bridge interface, and adds my existing wired network (eth0) and the wrieless network (wlan0) to it. The ip address is the ip address of the machine doing the bridging </ul> <a href="http://www.stillhq.com/prism2ap/000001.commentform.html">Comment</a> http://www.stillhq.com/prism2ap/000001.html http://www.stillhq.com/prism2ap/000001.html