Skip to content

Instantly share code, notes, and snippets.

@pepitooo
Forked from brunneis/fix-eth-hang.md
Created May 16, 2021 13:15
Show Gist options
  • Save pepitooo/6c9f8ad5d48af24f33e614412a7e20b1 to your computer and use it in GitHub Desktop.
Save pepitooo/6c9f8ad5d48af24f33e614412a7e20b1 to your computer and use it in GitHub Desktop.

Revisions

  1. @brunneis brunneis revised this gist Apr 19, 2020. No changes.
  2. @brunneis brunneis revised this gist Apr 19, 2020. No changes.
  3. @brunneis brunneis created this gist Apr 19, 2020.
    35 changes: 35 additions & 0 deletions fix-eth-hang.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    ```
    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
    ```