1. Check the system kernel version, the uname -r v3.0 version of this NIC does not support kernels above 4.0 (provided by customer service staff, not verified)
2. Then go to the official website to download the corresponding driver, http://www.tenda.com.cn/product/download/W311M.html, download the corresponding driver
3. Then decompress, and then it is best to perform a make uninstall and modprobe -r mt7601u operation, the reason is that some versions have their own drivers, which are not easy to use and cannot be used. Among them, mt7601u is the corresponding module.
After the source code is compiled, that is, make install after make, this process will go wrong. The reason is that the make tool is not provided and needs to be installed. Build-essential is not provided and needs to be installed. The command is as follows
: sudo apt-get make build-essential, and then you can modprobe mt760Usta. Note that mt7601Usta is different from the above mt7601u. The above is the one that comes with the system, and the following is compiled
If the kernel is replaced, you need to make uninstall, then make clean, and then recompile and install
4. Now start to check the situation of ip a. In order to connect to the wireless network, first activate the network card: ip link set wlan0 up, then use the built-in wap_supplicant tool, first generate the configuration file, and use the tool wpa_passphrase [SSID] [password] >wpa_supplicant.conf
Then copy it to the /etc/wpa_supplicant/ folder and use the command:
wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
start networking
5. In order to automatically connect when the system restarts, you need to change the configuration file /etc/network/interface
Add at the bottom:
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
In this way, after the automatic restart, you can connect to the wireless network and obtain a static ip. If you obtain a dynamic ip, you can change the above 2 lines to:
auto eth1
iface eth1 inet dhcp
If the ip cannot be obtained, it is best to configure dns:
That is, add dnsname-servers 8.8.8.8 192.168.1.1 at the end
Reference: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch13_:_Linux_Wireless_Networking#Installing_WPA_Supplicant