linux加载网卡ko驱动,linux下安装网卡驱动

1)网卡驱动不适配可能导致linux服务器网络时断时续

2)去官网下载驱动,检测到本机网卡类型为Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet,检测方法参考http://my.oschina.net/u/555061/blog/487239

3)到官网下载驱动,一般下载下来就是10k左右

4)查看Read Me文件

Unpack the tarball :

# tar vjxf r8168-8.aaa.bb.tar.bz2

Change to the directory:

# cd r8168-8.aaa.bb

If you are running the target kernel, then you should be able to do :

# ./autorun.sh(as root or with sudo)

You can check whether the driver is loaded by using following commands.

# lsmod | grep r8168

# ifconfig -a

If there is a device name, ethX, shown on the monitor, the linux

driver is loaded. Then, you can use the following command to activate

the ethX.

# ifconfig ethX up

,where X=0,1,2,...

也就是第一步解压,第二步进入目录,第三步执行autorun.sh,不同驱动情况不同,但都有ReadMe文件

5)安装完毕,重启网卡

[[email protected] ~]# ifconfig eth0 down

[[email protected] ~]# ifconfig eth0 up

注明:这里的eth0是查看网卡配置来的,查看方法参考http://my.oschina.net/u/555061/blog/526020中的DEVICE="eth0",或者使用/sbin/ifconfig查看网卡配置同样能查到eth0

原文:http://my.oschina.net/u/555061/blog/526044

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值