hype-o-thetic?com

my notes

Ubuntu: ethtool permanent 1000baseTX full-duplex

leave a comment

vi /etc/init.d/1000Mbs
#!/bin/sh

ETHTOOL="/usr/sbin/ethtool"
DEV="eth0"

case "$1" in
    start)
        echo -n "Setting eth0 speed 1000 full-duplex...";
        $ETHTOOL -s $DEV speed 1000 duplex full autoneg on;
        echo " done."
        ;;
    stop)
        ;;
esac

exit 0
update-rc.d 1000Mbs defaults

SOURCE: http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html

Fork me on GitHub

Written by gimpe

August 1st, 2009 at 1:15 pm

Posted in bash,linux,network

Tagged with , ,

Performance Optimization WordPress Plugins by W3 EDGE