最近更新系统, 笔记本上删除了RedHat9,装上了Mandrake10,虽然它自己就拥有无线网卡配置程序,但是我得Realtek8180网卡不在支持之列, 只好令寻它法, 这时想到了使用NdisWrapper, 它支持在Linux下直接使用Window的无线网卡程序。 首先下载NdisWrapper, http://sourceforge.net/projects/ndiswrapper/ 这是源码程序, 需要自己在Linux下编译。 其安装过程被详细描述在http://ndiswrapper.sourceforge.net/phpwiki/index.php/Installation 我简要说明一下:
1.编译 用命令清除以前的编译记录, 这是在你需要重新编译时执行的 make distclean 开始编译 make 装载文件 make install 2.安装驱动程序 这里要说明的是你的驱动程序可能不能正常工作, 此时可以利用lspci命令查看网卡的PCI总线位置,另外如果知道芯片种类, 可以尝试装载已经被验证的其它品牌网卡的驱动程序 驱动程序列表在这里 http://ndiswrapper.sourceforge.net/phpwiki/index.php/List?PHPSESSID=4e03295b44714ab8ea053985c33aff5a 由于第一步已经装上了ndiswrapper, 现在你可以利用它来转载驱动 ndiswrapper -i ###.inf 用命令查看装载的驱动程序情况 ndiswrapper -l 如果显示类似的信息,说明程序装载正确 Installed ndis drivers ### driver present, hardware present 3. 装载模块 现在要把ndiswrapper装入系统 modprobe ndiswrapper 之后你可以查看dmesg命令得到的信息,如果出现 ndiswrapper version V laoded 证明模块装入
4.配置 你需要工具wireless tools for linux, 可以从这里得到最新版本 http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html 由于我要配置的是Ad-Hoc网络, 因此使用命令 iwconfig wlan0 mode Ad-Hoc 然后输入WEP密码 iwconfig wlan0 key open xxxxxxxxxx open是指开放结构验证 利用ifconfig配置网卡地址, gw设置网关, 手动设置DNS
现在应该建立好一个良好的基于Linux的无线局域网了!
5. 最后我们要系统自动加载 ndiswrapper -m 在/etc/modprobe.preload文件(mardrake10)中加入 ndiswrapper Reference 1. Installation guide of NdisWrapper, http://ndiswrapper.sourceforge.net/phpwiki/index.php/Installation 2. Wireless Tools for Linux, http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html

|