I would like to turn off tcp segmentation offload on a CentOS5 server. Using ethtool the command is
ethtool -K eth0 tso off However, this setting only persists for this session. How can I make it persist through reboots?
From this webpage:
You can enter the ethtool commands in
The network service in CentOS has the ability to do this. The script
We can create this file with touch
A simple script to apply the same settings to all interfaces would be something like
Keep in mind this will attempt to apply settings to ALL interfaces, even the loopback.
If we have different interfaces we want to apply different settings to, or want to skip the loopback, we can make a case statement
Now ethtool settings are applied to interfaces as they start, all potential interruptions to network communication are done as the interface is brought up, and your server can continue to boot with full network capabilities.
Yeah, it can't be done using configuration files for the moment. You can put up the command in
That file is executed at the last of the booting sequence and so tso would be turned off for the interface.