Ubuntu: ethtool permanent 1000baseTX full-duplex

gimpe » 01 August 2009 » In bash, linux, network »

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

Tags: , ,

Trackback URL

No Comments on "Ubuntu: ethtool permanent 1000baseTX full-duplex"

Hi Stranger, leave a comment:

ALLOWED XHTML TAGS:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to Comments