🛠️ Proxmox VE 9.0 — 修复 Intel I217-LM 网卡高负载掉线问题
📌 问题现象
在 HP Z230 SFF 等设备上,内置网卡 Intel I217-LM 使用 e1000e 驱动。
在 Proxmox VE 8/9 (基于 Debian 12 / Linux 6.x 内核) 下,当网速达到 6–9 MB/s 以上时:
- 网络突然断开;
ping不通;- 需重启网卡或主机才能恢复。
🔍 一、确认网卡与驱动信息
lspci | grep -i eth
ethtool -i eno1
常见输出:
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 05)
driver: e1000e
version: 3.8.7
日志检查:
dmesg | grep -i e1000e
如出现以下提示,说明受影响:
e1000e 0000:00:19.0: Detected Hardware Unit Hang
NETDEV WATCHDOG: eno1 (e1000e): transmit queue 0 timed out
⚙️ 二、永久修复方案
1️⃣ 创建驱动配置文件(禁用节能 + 关闭中断节流)
cat <<'EOF' > /etc/modprobe.d/e1000e.conf
options e1000e InterruptThrottleRate=0 TxIntDelay=0 RxIntDelay=0 EEE=0
EOF
参数说明:
- InterruptThrottleRate=0:关闭中断节流机制,防止高负载延迟。
- TxIntDelay=0 / RxIntDelay=0:关闭发送/接收延迟。
- EEE=0:关闭节能以太网(Energy Efficient Ethernet)。
2️⃣ 更新启动镜像
update-initramfs -u
这一步确保配置在每次启动时自动加载。
🚀 三、临时优化当前会话(可立即生效)
ethtool -K eno1 tso off gso off gro off
ethtool -s eno1 speed 1000 duplex full autoneg off
ethtool -s eno1 wol d
这些命令在当前会话立即生效,但重启后会恢复默认。
🧩 四、让 ethtool 设置永久生效
编辑网络配置文件:
vim /etc/network/interfaces
添加以下内容(如果你使用桥接 vmbr0):
auto vmbr0
iface vmbr0 inet static
address 192.168.1.10/24
gateway 192.168.1.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
post-up /sbin/ethtool -K eno1 tso off gso off gro off
post-up /sbin/ethtool -s eno1 speed 1000 duplex full autoneg off
post-up /sbin/ethtool -s eno1 wol d
如果你直接用 eno1:
auto eno1
iface eno1 inet dhcp
post-up /sbin/ethtool -K eno1 tso off gso off gro off
post-up /sbin/ethtool -s eno1 speed 1000 duplex full autoneg off
post-up /sbin/ethtool -s eno1 wol d
🔁 五、重启系统
reboot
✅ 六、验证修复效果
确认参数已加载:
dmesg | grep e1000e | grep Interrupt
期望输出:
Interrupt Throttling Rate (ints/sec) set to 0
测速验证:
apt install iperf3
iperf3 -c <测速服务器IP>
若可稳定传输至 930–940 Mbit/s 且不掉线,修复成功。
七、总结
| 类型 | 命令 / 文件 | 是否永久 | 说明 |
|---|---|---|---|
| 内核驱动参数 | /etc/modprobe.d/e1000e.conf | ✅ 永久 | 系统启动时自动加载 |
update-initramfs -u | 一次性操作 | ✅ 永久 | 确保配置随内核加载 |
ethtool 命令 | 直接执行 | ❌ 临时 | 重启后失效 |
post-up 设置 | /etc/network/interfaces | ✅ 永久 | 网络启动时自动应用 |
🧠 八、(可选)更新 Intel 官方驱动版本
若仍出现断流,可升级驱动至 Intel 官方源码版本
apt install pve-headers dkms git make
cd /usr/src
git clone https://github.com/intel/e1000e.git
cd e1000e/src
make install
update-initramfs -u
reboot
🏁 修复结果
✅ 千兆带宽稳定
✅ 不再掉线或假死
✅ PVE 虚拟机网络稳定传输
作者提示:
这套配置适用于 HP / Dell / Lenovo 等使用 Intel I217-LM / I218-LM / I219-LM 芯片的主机。
适用于 Debian 11/12、Proxmox VE 8.x/9.x、Ubuntu Server 等系统。