The latest Ubuntu operating system comes with the ax88179_179a kernel module built-in. You can use the lsmod | grep "ax88179"
and modinfo
commands to view related information. When you insert the CU200 dual-port Gigabit network card, the device can be recognized immediately. You can see an AX88179 Gigabit Ethernet device by executing lsusb, but you cannot see the newly added network port with ip addr. It may be a problem with the device startup, so the next step is to check dmesg, where you'll easily find the following error.ax88179_178a 2-5.4:1.0 (unnamed net_device) (uninitialized): Failed to read reg index 0x0040: -32
In this case, you may need to consider installing the driver yourself. Download the official driver and unzip the Linux driver .tar.bz2 file.tar -jxvf AX88179_178A_LINUX_DRIVER_v1.20.0_SOURCE.tar.bz2
sudo apt-get install make gcc
When compiling, if the kernel version is 5.13+ you may encounter various installation unsuccessful error messages, consider downloading: AX88179_Linux-0513+error: ‘usbnet_get_stats64’ undeclared here (not in a function); did you mean ‘usbnet_cdc_status’?
If you encounter the following prompt when compiling the driver on Ubuntu 16.04/Ubuntu 18.04:817:3: error: ‘struct ethtool_ops’ has no member named ‘set_settings’; did you mean ‘get_strings’?
Solution: Comment out lines 816 and 817, which are causing the error, then recompile. After compiling, execute sudo make install
to complete the installation.