ubuntu14.04.1安装tenda w311m无线驱动网卡

1. 查看系统内核版本,uname -r v3.0版本的这个网卡不支持4.0以上的内核(客服人员提供,未验证)

2.,然后去官网下载相应的驱动程序,http://www.tenda.com.cn/product/download/W311M.html,下载对应的驱动

3.然后就是解压缩,接着最好进行一次make uninstall和modprobe -r mt7601u操作,原因是有的版本自带驱动,不好用,无法使用,其中mt7601u是对应的模块,

  这个源码编译好之后,即make之后make install,这个过程会出错,原因make工具没有提供,需要安装,build-essential没有提供,需要安装,命令如下

  :sudo apt-get make build-essential,然后就可以modprobe mt760Usta这个操作,注意这里是mt7601Usta和上面的mt7601u不一样,上面那个是系统自带的,下面这个是编译的

如果内核更换,需要make uninstall操作,然后make clean,接着就是重新编译安装

 

4.现在开始查看ip a这个情况了,为了连接无线网,先要激活网卡:ip link set wlan0 up,然后使用自带的wap_supplicant这个工具,先生成配置文件,使用工具wpa_passphrase [SSID] [密码]>wpa_supplicant.conf

然后将其拷贝到/etc/wpa_supplicant/这个文件夹下面,使用命令:

  wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf

就可以启动连网了

5.为了使系统重启动的时候自动连接,需要更改配置文件/etc/network/interface

在最下面加入:

  auto eth1

  iface eth1 inet static

    address 192.168.1.100

    netmask 255.255.255.0

    wireless-essid homenet

    pre-up wpa_supplicant -B -Dwext -ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf

    post-down killall -q wpa_supplicant

这样自动重启之后就可以连上无线网,获取的是静态ip,如果获取动态ip,可以将上面2行改成:

  auto eth1

  iface eth1 inet dhcp

如果ip获取不到,最好配置dns:

  即最后面加上dnsname-servers 8.8.8.8 192.168.1.1

 参考:http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch13_:_Linux_Wireless_Networking#Installing_WPA_Supplicant

posted on 2018-05-03 17:39  消失的森林  阅读(441)  评论(0编辑  收藏  举报

导航