⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pcmcia.txt

📁 This package contains the Wireless tools, used to manipulate the Wireless Extensions. The Wireless
💻 TXT
字号:
	Pcmcia Wireless configuration	-----------------------------	One of the most exciting things having happen after release 20is the addition of Wireless Tools 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 writableWireless Extensions, so enabling wireless.opts on this driver willmake things worse.	On the other hand, the latest version of the Raylink driveraccepts Wireless Extensions at boot time, so the procedure describedbelow will work.Distribution specific notes :---------------------------	Most modern distributions don't use wireless.opts and havetheir own procedure for wireless configuration, which is usuallycompatible with their configuration tools and work for non-Pcmciadevices. This is documented in DISTRIBUTIONS.txt.	The procedure described here will work only with the originalPcmcia configuration scripts. If you use a precompiled package part ofa distributions, this is usually not the case (see above).	On the other hand, if you install the Pcmcia package in sourceform from the official Linux-Pcmcia web site, it will install theproper init scripts and those instructions will apply.Basic support :-------------	The file /etc/pcmcia/wireless.opts contains 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 supports 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 Ad-Hoc network at home (MY_HOME). Moreover, when a specific cardis inserted, you want it to be in Ad-Hoc 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 ;-)More elaborated configurations :------------------------------	Some people may need some more complex configurations. Forexample, you might want to do one of the following thing :		o cycle through a set of schemes		o autodetect the proper scheme	There is currently no support to do that. However, theWireless Tools package contains a tool called "iwgetid" that can helpin this job. The source code contains some hints on how to achieve theabove thing.	If you ever write such a package, please send me the URL.	Good luck !	Jean <jt@hpl.hp.com>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -