在linux下使用ndiswrapper載入windows的無線網卡驅動

來源:互聯網
上載者:User
首先可以檢查一下ndiswrapper目前支援的裝置,http://ndiswrapper.sourceforge.net/phpwiki/index.php/List?PHPSESSID=d938709f5323557192059e517caa013a。

在安裝ndiswrapper前需要先有幾個東西,kernelsource, wireless-tools

首先下載ndiswrapper源碼http://sourceforge.net/project/showfiles.php?group_id=93482&package_id=99148&release_id=310366
將其解壓到一個目錄,比如/usr/src/ndiswrapper-1.1
以root執行下列命令
make distclean
make
make install
如果沒什麼問題的話,下面可以安裝windows驅動了。所有的驅動都該有個.inf ,我的網卡的windows驅動還有.sys和.cat檔案各一個。用ndiswrapper -i filename.inf命令來安裝。之後可以檢查一下狀態
ndiswrapper -l
Installed ndis drivers:
wg511v2 driver present
wg511v2是我的網卡型號,present說明驅動安裝沒問題可以用。繼續,
modprobe ndiswrapper
如果沒報錯的話可以在dmesg看到網卡資訊, 這就算裝完了,easy吧?

下面的工作就是配置網卡了,可以先用iwconfig看看無線裝置是不是在,八成是wlan0。
然後掃描AP
iwlist wlan0 scan
如果掃描到了你的AP可以繼續配置網卡
iwconfig wlan0 mode Maganged
如果需要用WEP需要執行
iwconfig wlan0 key restricted XXXXX
接著設定網路名稱,essid可以看掃描結果或AP的設定
iwconfig wlan0 essid ESSID
啟用網路介面
ifconfig wlan0 up
使用dhcp
dhclient wlan0
配置完畢,測試一下是不是能訪問網路上的其他資源

為啟用wlan0後自動載入ndiswrapper可以使用ndiswrapper -m,注意這不是在開機時自動載入。
在linux啟動時載入ndiswrapper 需要在/etc/modules加上ndiswrapper

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.