前几天公司新购买一台服务器dell r720,安装安装centos5.6完成后发现只有lo,根本不存在eth*网卡,经过几番查找原来是对于r620、r720这类较新的机器,安装rhel5.x或centos5.x系统,没有他的网卡驱动,所以要我们自己安装

网卡驱动下载地址http://zh-cn.broadcom.com/support/ethernet_nic/downloaddrivers.php

知道到我们需要的网卡类型

dell R720服务器安装网卡broadcom 5720驱动

找到linux的驱动

dell R720服务器安装网卡broadcom 5720驱动

下载下来,传到服务器上,


1.确保你的服务器安装了以下的包,否则会报错

[[email protected] ~]# yum groupinstall "Development Tools"
[[email protected] ~]# yum install kernel-devel

如果使用的虚拟化则必须还要安装kernel-xen-devel

[[email protected] ~]# yum install kernel-xen-devel

2.解压文件,生成安装包

[[email protected] ~]# unzip linux-3.133d.zip
[[email protected] ~]# cd Server/Linux/Driver
[[email protected] ~]# rpm -ivh tg3-3.133d-1.src.rpm
[[email protected] ~]# cd /usr/src/redhat/SPECS
[[email protected] ~]# rpmbuild -bb tg3.spec
[[email protected] ~]# cd /usr/src/redhat/RPMS/x86_64
[[email protected] ~]# rpm -ivh tg3-3.133d-1.x86_64.rpm

3.加载模块

[[email protected] ~]# modprobe tg3
[[email protected] ~]# vim /etc/modprobe.conf
alias eth0 tg3
alias eth1 tg3
alias eth2 tg3
alias eth3 tg3

4.重启服务器,会发现网卡出现

转载于:https://blog.51cto.com/sunys/1369238

相关文章: