Wednesday, May 14, 2025

How to disable all hardware network offload features and Jumbo Frames in Debian and FreeBSD

FreeBSD commands to disable hardware network offload features

# Disable hardware offload features
ifconfig vmx0 -rxcsum -rxcsum6 -txcsum -txcsum6 -tso -lro -vlanhwtag -vlanhwtso -vlanhwcsum -mextpg
 
# Disable Jumbo Frames
ifconfig vmx0 mtu 1500
 
#Check current settings
ifconfig vmx0

Debian commands to disable hardware network offload features

#!/usr/bin/sh
 
#Disable Jumbo Frames
ip link set dev ens192 mtu 1500
 
#Disable Large Receive Offload (LRO)
ethtool -K ens192 lro off
#Disable TCP Segmentation Offload (TSO)
ethtool -K ens192 tso off
#Disable Generic Receive Offload (GRO)
ethtool -K ens192 gro off
#Disable Generic Segmentation Offload (GSO)
ethtool -K ens192 gso off
#Disable Scatter-Gather (SG)
ethtool -K ens192 sg off
#Disable RX Checksumming
ethtool -K ens192 rx-checksumming off
#Disable TX Checksumming
ethtool -K ens192 tx-checksumming off
#Disable RX VLAN offloading
ethtool -K ens192 rx-vlan-offload off 
#Disable TX VLAN offloading
ethtool -K ens192 tx-vlan-offload off 
#Disable TX UDP Tunnel Segmentation Offload
ethtool -K ens192 tx-udp_tnl-segmentation off
#Disable Transmit UDP Tunnel Checksum Segmentation Offload 
ethtool -K ens192 tx-udp_tnl-csum-segmentation off

#Check current settings
ethtool -k ens192


No comments:

Post a Comment