?? pcmcia.txt
字號:
One of the most exciting thing having happen after release 20is the addition of Wireless Extension support in the Pcmcia initscripts. Here is a quick intro on the subject...Pre-requisite :------------- o Pcmcia package with Wireless Extension support : 3.1.15 onward o A driver with Wireless Extension support o The tools (iwconfig and co.) installed in the /usr/local/sbin or /usr/sbinRaylink driver :-------------- The Raylink driver as of 1.70 doesn't support yet writableWireless Extensions, so enabling wireless.opts on this driver willmake thing worse.Pcmcia precompiled package :-------------------------- The Pcmcia package part of many distributions, especiallythose from Red-Hat, include some weird init scripts. Because of this,the present feature won't work. On the other hand, the Pcmcia package in source form from theofficial Linux-Pcmcia web site will install the proper init scripts.Basic support :------------- The file /etc/pcmcia/wireless.opts contain some templates forthe most common drivers. Just fill in your card configuration in thetemplate corresponding to your driver configuration. Then, to activate it, you just need to remove or comment the 4lines at the top of wireless.opts and restart the Pcmcia package. Things to take care of : The options of wireless.opts will be used directly asarguments of iwconfig. So, you need iwconfig, and you need to checkthe man page of iwconfig to know how to format them. A quick way to determine the correct options withoutrestarting Pcmcia is to play a bit with iwconfig directly to see whatis possible and what is the proper setup of the card and to copy thatin wireless.opts. At the end of wireless.opts, there is also a generic templatecontaining all the possible options and explaining their meaning. Notall of them are supported by all cards (actually, most cards support alimited subset of it). The current card templates are designed to match the MACaddress of the card. Please check that this matches with your card. Also, sample describe the most common/useful options availablewith the card, for more advance option, borrow options from thetemplate. You can also remove some options, the card will usuallyinitialise with a sane value. Alternatively, you can also discard the current wireless.optsand replace it with a file looking like this :----------- wireless.opts ---------------------case "$ADDRESS" in*,*,*,*) ESSID="MY_ESSID" MODE="Managed" ;;esac-----------------------------------------------Scheme support :-------------- The file wireless.opts fully support schemes. This allow youto define different configurations (home, work...) and to switch onthe fly between them. The best way to explain it is to show an example. Let's say you have an infrastructured setup at work (MY_WORK)and an adhoc network at home (MY_HOME). Moreover, when a specific cardis inserted, you want it to be in adhoc mode (TEST). The work setupwill be the default... Each Wireless LAN will have the following configuration :--------- wireless.opts --------------------# Lucent Wavelan IEEE - Ad-Hoc mode for test card*,*,*,00:60:1D:03:9F:2D) ESSID="TEST" MODE="Ad-Hoc" FREQ="10" RATE="1M" ;;# Lucent Wavelan IEEE - Ad-Hoc mode at homehome,*,*,00:60:1D:*|home,*,*,00:02:2D:*) ESSID="MY_HOME" MODE="Ad-Hoc" FREQ="5" ;;# Lucent Wavelan IEEE - infrastructured mode at work*,*,*,00:60:1D:*|*,*,*,00:02:2D:*) ESSID="MY_WORK" MODE="Managed" KEY="s:verysecurekey" ;;-------------------------------------------- Don't forget the IP configuration :--------- network.opts ---------------------# Wavelan IEEE : ad-hoc mode for test card*,*,*,00:60:1D:03:9F:2D) DHCP="n" IPADDR="10.0.0.1" NETMASK="255.255.255.0" NETWORK="10.0.0.0" BROADCAST="10.0.0.255" ;;# Wavelan IEEE : ad-hoc mode at homehome,*,*,00:60:1D:*|home,*,*,00:02:2D:*) DHCP="n" IPADDR="10.0.1.19" NETMASK="255.255.255.0" NETWORK="10.0.1.0" BROADCAST="10.0.1.255" GATEWAY="15.0.1.1" ;;# Wavelan IEEE : infrastructured mode at work*,*,*,00:60:1D:*|*,*,*,00:02:2D:*) DHCP="y" ;;-------------------------------------------- Now, when you are at work you do :> cardctl scheme default And at home, you do :> cardctl scheme home I guess you get the idea ;-) Jean <jt@hpl.hp.com>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -