LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-Nov-2009, 01:45 PM
Junior Member
 
Join Date: May 2008
Posts: 2
kkramer25 0 reputation points
Default 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
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 06:59 AM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2