Centos7安装ixgbe网卡驱动
Centos 安装ixgbe网卡驱动
参考链接: https://www.cnblogs.com/songhaibin/p/9608492.html
1. 首先查看网卡类型
# lspci | grep Eth
07:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
07:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
2. 下载相应的驱动程序
# wget https://downloadmirror.intel.com/14687/eng/ixgbe-5.3.7.tar.gz -o ixgbe-5.3.7.tar.gz
3. 源码安装,首先安装编译环境
# yum install gcc kernel-header kernel-devel
4. 安装
tar -xzvf ixgbe-5.3.7.tar.gz
cd ./ixgbe-5.3.7/src
make
输出:
LD [M] /root/ixgbe-5.3.7/src/ixgbe.ko
make install
5. 其他相关命令
查看现有的模块安装情况
查看模块情况:modinfo ./ixgbe.ko
查看模块安装情况:lsmod | grep ixgbe
删除模块:rmmod ixgbe.ko
安装模块:insmod ./ixgbe.ko
修改模块:modprobe ixgbe
添加启动参数:insmod ./ixgbe.ko FdirPballoc=3 RSS=16
查看安装信息:dmesg
安装目录:
make install
ixgbe.ko将会安装在下列目录
/lib/modules/<kernel-version>/kernel/drivers/net/ixgbe
启动时候加载方式:modprobe ixgbe
6.
# echo 'options ixgbe allow_unsupported_sfp=1,1' > /etc/modprobe.d/ixgbe.conf
# modprobe ixgbe allow_unsupported_sfp=1,1