1. 首先查看网卡类型
[root]# lspci | grep 82599
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. 源码安装,首先安装编译环境
输出:
LD [M]
查看模块情况: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