Ubuntu 20.04 配置 TP-WDN5200H 无线网卡

1. 下载相关驱动

https://github.com/brektrou/rtl8821CU.git

2.安装

cd rtl8821CU

make

sudo make install

sudo modprobe 8821cu

3.使用lsusb命令观察网卡的编号(插拔前后的变化)

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 003 Device 004: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 001 Device 006: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

Bus 001 Device 005: ID 24ae:2013  

Bus 001 Device 004: ID 046d:c537 Logitech, Inc. Cordless Mouse Receiver

Bus 001 Device 003: ID 0b95:772b ASIX Electronics Corp. AX88772B

Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

4.切换usb网卡的模式为无线网卡模式:

sudo usb_modeswitch -KW -v 0bda -p c811