Giter Club home page Giter Club logo

rtl8152-usb-for-linux's Introduction

rtl8152-usb-for-linux

螃蟹网卡 rtl8152/8156/8156(b)

仓库里有几个可用版本,当然你也可以去 官网下载,自己视情况调整一些参数

可用版本

安装编译依赖库

apt install linux-headers-$(uname -r) make build-essential

编译驱动

这里直接用仓库里的版本

解压驱动源码并进入文件夹

tar -jxvf r8152-2.16.3.tar.bz2 && cd r8152-2.16.3

开始编译安装并复制目录内的规则

make && make install
cp 50-usb-realtek-net.rules /usr/lib/udev/rules.d

开机加载驱动

depmod -a
update-initramfs -u

# 重启机器等待生效
reboot

检查驱动生效

lsmod | grep r8152

会有类似以下的输出

screenshot-20230116-000200

检查驱动为r8152

网络接口名称可以通过 ifconfigip addr 查看前缀为 enxc 开头的

ethtool -i enxc84d44232258

screenshot-20230116-000411

ethtool enxc84d44232258

可以看到支持的链接模式已经能够支持到 2500M 了哦~ 😄

现在手里没有支持2.5G速率的网线,问题不大,过年回家再试试。

screenshot-20230116-002951

rtl8152-usb-for-linux's People

Contributors

flxxyz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.