Proxmox Virtual Environment 6.1-3 / Debian 10 (buster)
Kernel 5.3.10-1-pve
Ethernet controller: Intel Corporation Ethernet Connection (2) I218-V (rev 05)
Ethernet driver: e1000e 3.2.6-k
Ethernet firmware: 0.1-4
The solution I've found was to create a oneshot
service which disables segmentation offloading.
sudo apt update && apt -y install ethtool
Create the file /usr/lib/systemd/system/fix-e1000e.service
with the following content:
[Unit]
Description="Fix for ethernet hang errors"
[Service]
Type=oneshot
ExecStart=/usr/sbin/ethtool -K NETWORK_INTERFACE tso off gso off
[Install]
After=network-online.target
Wants=network-online.target
systemctl daemon-reload
systemctl enable fix-e1000e
systemctl start fix-e1000e
iface eth0 inet manual
post-up /usr/bin/logger -p debug -t ifup "(post-up) /sbin/ethtool -K $IFACE gso off gro off tso off tx off rx off rxvlan off txvlan off"
post-up /sbin/ethtool -K $IFACE gso off gro off tso off tx off rx off rxvlan off txvlan off
post-up /usr/bin/logger -p debug -t ifup "(post-up) Disabled offload for $IFACE"
-bash: post-up: command not found
What is the solution?