---
title: "Linux下TP-Link 510G无线网卡的安装"
author: "ericguo"
date: "2005-12-07T17:36:00Z"
tags: []
slug: "linux-tp-link-510g"
draft: false
lastmod: "2005-12-07T17:36:00Z"
id: 169162
url: "https://ericguo.iteye.com/blog/169162"
---

现在无线网络802.11g算是真正普及到家了，我也弄了一块[TP-Link 510G](http://net.zol.com.cn/22/223721.html)。Win2000下驱动自带，Win98的驱动也可以从[外国官方网上](http://www.tp-link.com/Download.htm)下载，但Linux下的驱动却比较难找，花了两天才找到：

两条路可选：  
1\. [NdisWrapper](http://ndiswrapper.sourceforge.net/)，将[Windows下驱动拷过来直接用](http://linuxfocus.org/ChineseGB/December2004/article361.shtml)，但是缺点是据报道，[Linux 2.6.13后](http://sourceforge.net/forum/forum.php?thread_id=1382429&amp%3Bforum_id=323168)不能使用。  
2\. Madwifi驱动（推荐），支持[多种无限网卡](http://www.madwifi.org/wiki/Compatibility)，猜想应该很快会加入到Kernel核心，不过我已等不急了![](http://www.cnblogs.com/Emoticons/emsmilep.gif)

这里有人想玩linux的话，我觉得gentoo发行版不错，非常可订制，现在也有了[官方中文论坛](http://forums.gentoo.org/viewforum-f-50.html)（注意，站点是UTF-8编码的），[国内人气](http://www.linuxsir.org/bbs/forumdisplay.php?f=59)相信会越来越旺的。

2006-4-6新增：  
应网友要求，贴出Ndiswrapper的安装方法，下面假设你用Gentoo发行版:

```
# 安装ndiswrapper，当前稳定版1.2-r1
emerge ndiswrapper
# 安装驱动
ndiswrapper -i net5211.inf
# 插入PCMCIA的TP-Link 510G卡
pccardctl insert
# 加载驱动
modprobe ndiswrapper
# 检查，配置wlan
iwconfig
# 通过DHCP配置无限网卡
dhcpcd wlan0
# 完成
ping www.gentoo.org
```

如果以上各步骤出错，请检查Linux Kernel的802.11支持是否打开，相关程序是否已经安装，为方便起见，[这里提供TP-Link 510G的驱动](http://www.cnblogs.com/Files/ericguo/TP_LINK_510G_Drivers.zip)(net5211.inf)，你也可以自己从相应的安装程序中抽取。

如果无法按照上述步骤成功使用510G，请仔细阅读[NdisWrapper的使用方法](http://www.linuxfans.org/nuke/modules.php?name=Forums&amp%3Bfile=printview&amp%3Bt=102553&amp%3Bstart=0)，另一篇LinuxFans上的[使用说明](http://www.linuxfans.org/nuke//modules.php?name=Forums&amp%3Bfile=viewtopic&amp%3Bt=102553&amp%3Bpostdays=0&amp%3Bpostorder=asc&amp%3Bstart=0)也值得一读