SLES10 ETHTOOL script
I need to adjust my NIC's using ethtool and I can't get any method to work. I've tried creating an init script, after.local and other methods. each command individually on a command line will run but not in a script method, even the script from a command line. Everything but the items in Bold are getting set. But running '/usr/sbin/ethtool -A eth* autoneg off rx off tx off' works from the command line.
the script
#!/bin/bash
logger "Starting Network-Tuning script"
INTERFACES=`ifconfig | grep eth | perl -ne 'split/\s+/; print "$_[0]\n";'`
# BEGIN ETHERNET TWEAKS
for i in `echo ${INTERFACES}`
do
echo "Updating Network Settings for $i"
logger "Updating Network Settings for $i"
ethtool -s $i speed 1000 duplex full autoneg off
ethtool -A $i autoneg off rx off tx off
ethtool -K $i tso off tx off rx off sg off
ethtool -G $i rx 2048 tx 2048
ip link set $i txqueuelen 3000
done
# END ETHERNET TWEAKS
|