(For additional information about setting up a FreeBSD base station,
see Mike DeGraw-Bertsch's article.)
If you have an Internet connection, and wish to access it using 802.11 wireless LAN cards, then one way to do this is to purchase a specialized 802.11 "Access Point" - e.g., Apple's "AirPort" - and connect this to your Internet connection. Alternatively, you can use a Unix computer as a base station. Using an open system for your base station gives you more flexibility in how you manage the network - for instance, you can also use the Unix system for specialized access control, statistics gathering, DNS, web caching, etc. etc. (Besides, if you already have a Unix system, then it's cheaper to use this, rather than buying a separate, dedicated Access Point.) This page summarizes my experience in getting a general-purpose FreeBSD and Linux computer to act as a base station for a 802.11 wireless LAN. This should also be possible for other Unix systems (e.g., OpenBSD, Solaris). (It might also be possible with non-Unix systems such as Windows NT and Windows 2000, as they, too, can act as a router.) (Another, slightly different approach is to take special-purpose 802.11 Access Point hardware, and port a open operating system to it. One recent example of this is "OpenAP", which is a port of Linux to access points based on the Eumitcom WL11000SA-N board.) I assume here that Proxim (formerly Agere (formerly Lucent)) "Orinoco" (aka. "WaveLAN") PCMCIA cards (Silver or Gold) are used for the 802.11 interface. It's probably possible to use other brands of 802.11 interface instead, although the instructions for these (most notably, the Unix kernel device names) will be slightly different. In any case, I recommend that, whenever possible, wireless clients should use the same type of 802.11 interface as the base station. Although different brands of 802.11 interface are supposed to be interoperable, this is often not the case in practice. The basicsFirst, your Unix kernel needs to be configured as an IP router. (If you're running Linux, your kernel needs to be configured with "CONFIG_IP_ROUTER" set.) The system also needs to have two network interfaces: one connected to the Internet (either directly, or via an Ethernet hub); the other for the wireless LAN interface. Plus, of course, you'll need to assign a range of IP addresses (perhaps served via DHCP) to the wireless LAN interface.There are four possible ways to connect the wireless LAN card to your computer:
If, however, your system doesn't have a PCMCIA interface, you can instead use
an
Orinoco ISA or PCI Adaptor
(option 2 or 3).
These are ISA or PCI cards - each currently costing about $US67 -
with an integrated PCMCIA slot into which you insert your wireless LAN card.
The kernel will then treat the wireless LAN card as if it were in a directly-attached
PCMCIA interface.
If your system has both a free ISA slot and a free PCI slot, then I strongly recommend that
you use the ISA adaptor, rather than the PCI adaptor.
Most people have had better results using the ISA adaptor.
We may not be able to support "BSS mode"To act as a true 802.11 "Access Point", a base station would need to run in "infrastructure BSS mode" (commonly referred to as just "BSS mode", or sometimes called "managed mode"). In this mode, the wireless network acts somewhat like an Ethernet hub: All traffic travels to or from the access point; clients do not communicate directly.There's no reason in principle why a Unix base station cannot support BSS mode. The problem, though, is that this requires having (read and write) access to the low-level 802.11 data-link layer packet headers, and the magic incantation needed to do this appears to be a closely guarded secret - at least, for the Orinoco card. Notes
An alternative: "IBSS mode"Fortunately, however, our base station can run in "independent BSS mode" (commonly referred to as "IBSS mode"). In this mode, the wireless network acts more like a shared Ethernet cable: All traffic is peer-to-peer.
The main disadvantage of IBSS mode is that many of 802.11's
"power-saving" features cannot be used.
(In BSS mode, the access point can keep track of when clients are
asleep in low-power mode, and buffer packets for later delivery.)
Configuring the base station to run in IBSS modeImportant: To be able to run in IBSS mode, the Orinoco cards' firmware (for the base station and all clients) needs to be version 6.04 or greater. If your card is labeled "Orinoco" on the side, then its firmware is probably new enough; however, if it's labeled "WaveLAN", then you may need to upgrade its firmware.
If you need to upgrade your cards' firmware, you can find software to do this on Proxim's web site. (This software will probably need to be run on a Windows computer.) The base station will also need to be configured with:
Instructions for FreeBSDAfter the card has been inserted and configured, run the following commands - as "root" - to get it to use network name <network_name>, and allowing the use of IBSS mode:/usr/sbin/wicontrol -i wi0 -n <network_name> /usr/sbin/wicontrol -i wi0 -p 1 /usr/sbin/wicontrol -i wi0 -c 1 /usr/sbin/wicontrol -i wi0 -s <station_name>The "-s <station_name>" call is optional; it gives the base station a character-string name that is visible to 802.11 monitoring tools.
Instructions for LinuxFirst, you'll need to update your Linux PCMCIA software to support IBSS mode:
Next, if you don't already have the "iwconfig" application, you'll need to download and install it. (This is one of Jean Tourrilhes' "Wireless Tools".) Finally, configure your wireless network interface with the appropriate parameters for this network: iwconfig wvlan0 essid <network_name> mode Ad-Hoc nick <station_name> /etc/pcmcia/network start wvlan0Alternatively, to have your network interface configured automatically whenever you boot your system, replace the existing "/etc/pcmcia/wireless.opts" file with the following: case "$ADDRESS" in # Lucent Wavelan IEEE, wvlan_cs driver # Settings for an IBSS network: *,*,*,00:60:1D:*|*,*,*,00:02:2D:*) ESSID="<network_name>" MODE="Ad-Hoc" ;; esac(In this case <station_name> will be set automatically, using the "hostname" command.) Configuring wireless clients to access the networkNote once again that if a client is using a Proxim/Agere/Lucent Orinoco/WaveLAN card, then its firmware must be at least version 6.04.To configure a FreeBSD or Linux client to access the network, follow the same instructions given above for configuring a base station. (If you're running Linux on a PowerPC Macintosh, see Paul Lucas's page for additional information.) To configure a Windows client to access the network, follow the usual instructions (in particular, entering the correct network name). Depending on which client configuration/driver software you're using, you may also need to select "peer-to-peer networking" mode. (Do not select "ad hoc demo" mode.) To configure a MacOS client to access the network, use Apple's "AirPort" driver, available from http://www.apple.com/airport/. (Make sure you're using the latest version.) Note that you should use the AirPort software even if you're using an Orinoco card plugged into a PCMCIA slot. (The AirPort card is really just an Orinoco card without an antenna.) To connect to the network, you may also need to select "computer-to-computer" mode. AcknowledgementsSeveral people, including Jim Flowers, Jean Tourrilhes, Cliff Skolnick, Matt Peterson, Paul Lucas and Warner Losh, provided valuable information that helped make this project possible.Ross Finlayson (email: finlayson at live555.com) LIVE555.COM Last-modified date: 2004.07.14 |