<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux add ethtool duplex settings to a network card permanently</title> <atom:link href="http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Peter</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-178327</link> <dc:creator>Peter</dc:creator> <pubDate>Tue, 10 Jan 2012 14:34:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-178327</guid> <description>Added ETHTOOL_OPTS=&quot;speed 1000 duplex full autoneg off&quot; to ifcfg-eth1 to force gigabit. After a restart I get these messages. What&#039;s wrong with eth1 (Realtek RTL-8169), working fine on 100 Mbs though...?
# etc/init.d/network restart
Shutting down interface eth1:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:
Determining IP information for eth0... failed; no link present.  Check cable?
[FAILED]
Bringing up interface eth1:  Cannot get current device settings: Operation not supported
not setting speed
not setting duplex
not setting autoneg</description> <content:encoded><![CDATA[<p>Added ETHTOOL_OPTS=&#8221;speed 1000 duplex full autoneg off&#8221; to ifcfg-eth1 to force gigabit. After a restart I get these messages. What&#8217;s wrong with eth1 (Realtek RTL-8169), working fine on 100 Mbs though&#8230;?</p><p># etc/init.d/network restart<br
/> Shutting down interface eth1:                              [  OK  ]<br
/> Shutting down loopback interface:                          [  OK  ]<br
/> Bringing up loopback interface:                            [  OK  ]<br
/> Bringing up interface eth0:<br
/> Determining IP information for eth0&#8230; failed; no link present.  Check cable?<br
/> [FAILED]<br
/> Bringing up interface eth1:  Cannot get current device settings: Operation not supported<br
/> not setting speed<br
/> not setting duplex<br
/> not setting autoneg</p> ]]></content:encoded> </item> <item><title>By: Seb176</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-177057</link> <dc:creator>Seb176</dc:creator> <pubDate>Thu, 15 Dec 2011 11:21:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-177057</guid> <description>Thank you!!
Very usefull for my old laptop!</description> <content:encoded><![CDATA[<p>Thank you!!<br
/> Very usefull for my old laptop!</p> ]]></content:encoded> </item> <item><title>By: Dhileesh</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-170200</link> <dc:creator>Dhileesh</dc:creator> <pubDate>Mon, 21 Mar 2011 13:31:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-170200</guid> <description>Good option</description> <content:encoded><![CDATA[<p>Good option</p> ]]></content:encoded> </item> <item><title>By: dotpointer</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-169837</link> <dc:creator>dotpointer</dc:creator> <pubDate>Mon, 14 Mar 2011 18:49:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-169837</guid> <description>(All above is run as administrator -do &#039;sudo passwd root&#039; to set your password, then &#039;su&#039;)
Another notice, if you already have done the above tip with /etc/init.d/, here is how to remove that:
rm /etc/init.d/100mbit
update-rc.d 100mbit remove (notice the actual file removal must be done before)</description> <content:encoded><![CDATA[<p>(All above is run as administrator -do &#8216;sudo passwd root&#8217; to set your password, then &#8216;su&#8217;)</p><p>Another notice, if you already have done the above tip with /etc/init.d/, here is how to remove that:</p><p>rm /etc/init.d/100mbit<br
/> update-rc.d 100mbit remove (notice the actual file removal must be done before)</p> ]]></content:encoded> </item> <item><title>By: dotpointer</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-169836</link> <dc:creator>dotpointer</dc:creator> <pubDate>Mon, 14 Mar 2011 18:43:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-169836</guid> <description>Ubuntu 10.10, a Marvell Gigabit Ethernet and gigabit 1000mbit speed:
-- Manual change while working on it:
ethtool -s eth0 speed 1000 duplex full autoneg off
-- Hopefully permanent - /etc/network/interfaces:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
pre-up /sbin/ethtool -s $IFACE speed 1000 duplex full autoneg off
-- Testing the file (NOTICE: ifconfig eth0 down/up does NOT test the file):
ifdown eth0
ifup eth0</description> <content:encoded><![CDATA[<p>Ubuntu 10.10, a Marvell Gigabit Ethernet and gigabit 1000mbit speed:</p><p>&#8211; Manual change while working on it:<br
/> ethtool -s eth0 speed 1000 duplex full autoneg off</p><p>&#8211; Hopefully permanent &#8211; /etc/network/interfaces:<br
/> auto lo<br
/> iface lo inet loopback<br
/> iface eth0 inet dhcp<br
/> pre-up /sbin/ethtool -s $IFACE speed 1000 duplex full autoneg off</p><p>&#8211; Testing the file (NOTICE: ifconfig eth0 down/up does NOT test the file):<br
/> ifdown eth0<br
/> ifup eth0</p> ]]></content:encoded> </item> <item><title>By: Gogule</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-169472</link> <dc:creator>Gogule</dc:creator> <pubDate>Thu, 03 Mar 2011 22:29:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-169472</guid> <description>on centos 5.4 final this command work
mii-tool -F 100baseTx-FD
thk for help</description> <content:encoded><![CDATA[<p>on centos 5.4 final this command work<br
/> mii-tool -F 100baseTx-FD</p><p>thk for help</p> ]]></content:encoded> </item> <item><title>By: FishMaster3000</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-168371</link> <dc:creator>FishMaster3000</dc:creator> <pubDate>Wed, 19 Jan 2011 23:12:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-168371</guid> <description>Thanks for the tip.  I applied it to my hardware and I am happy that the speed it blazing in my VM.  I will keep watch on whether the ethernet card drops the connection as it has been doing in the past.  If it remands up, I am extremely happy.
(AMD Phenom II X4 940, 8G memory, 2 gig ethernet, 3 Tb of harddrive, nvidia cards)</description> <content:encoded><![CDATA[<p>Thanks for the tip.  I applied it to my hardware and I am happy that the speed it blazing in my VM.  I will keep watch on whether the ethernet card drops the connection as it has been doing in the past.  If it remands up, I am extremely happy.</p><p>(AMD Phenom II X4 940, 8G memory, 2 gig ethernet, 3 Tb of harddrive, nvidia cards)</p> ]]></content:encoded> </item> <item><title>By: arunmanoj</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-165046</link> <dc:creator>arunmanoj</dc:creator> <pubDate>Wed, 22 Dec 2010 05:57:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-165046</guid> <description>could pls tel ,how to set the speed to 10mbps full duplex, i tried ur above script &amp; steps (with 10 instead of 100),but its not working..
OS : Ubuntu 10.4 LTS
Thanx in advance</description> <content:encoded><![CDATA[<p>could pls tel ,how to set the speed to 10mbps full duplex, i tried ur above script &amp; steps (with 10 instead of 100),but its not working..</p><p>OS : Ubuntu 10.4 LTS</p><p>Thanx in advance</p> ]]></content:encoded> </item> <item><title>By: Tiago MDRizzo</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-158378</link> <dc:creator>Tiago MDRizzo</dc:creator> <pubDate>Tue, 27 Jul 2010 13:35:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-158378</guid> <description>For Debian, like Rafael Guedes said, isn&#039;t it easier to append in /etc/network/interfaces?
Not just it, but you can add routes and delete them too using post-up and post-down option in Debian... I never tested in Ubuntu though...
By the way, Cyberciti is my favorite site :D
Regards from Brazil!!</description> <content:encoded><![CDATA[<p>For Debian, like Rafael Guedes said, isn&#8217;t it easier to append in /etc/network/interfaces?</p><p>Not just it, but you can add routes and delete them too using post-up and post-down option in Debian&#8230; I never tested in Ubuntu though&#8230;</p><p>By the way, Cyberciti is my favorite site :D</p><p>Regards from Brazil!!</p> ]]></content:encoded> </item> <item><title>By: Rafael Guedes</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-156350</link> <dc:creator>Rafael Guedes</dc:creator> <pubDate>Fri, 04 Jun 2010 03:06:01 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-156350</guid> <description>Hi, nice post! For Debian, I think that you just need append the follow line at /etc/network/interfaces file:
post-up ethtool -s eth0 speed 10 duplex half
I tested it , and for me it works very well. Regards from Brazil.</description> <content:encoded><![CDATA[<p>Hi, nice post! For Debian, I think that you just need append the follow line at /etc/network/interfaces file:</p><p>post-up ethtool -s eth0 speed 10 duplex half</p><p>I tested it , and for me it works very well. Regards from Brazil.</p> ]]></content:encoded> </item> <item><title>By: Sergio Luiz Araujo Silva</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-156063</link> <dc:creator>Sergio Luiz Araujo Silva</dc:creator> <pubDate>Mon, 17 May 2010 18:07:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-156063</guid> <description>if device is eth1 generate error, to solve:
DEV=`netstat -i &#124; awk &#039;/eth/ {print $1}&#039;`</description> <content:encoded><![CDATA[<p>if device is eth1 generate error, to solve:</p><p>DEV=`netstat -i | awk &#8216;/eth/ {print $1}&#8217;`</p> ]]></content:encoded> </item> <item><title>By: Jordan</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-150898</link> <dc:creator>Jordan</dc:creator> <pubDate>Thu, 01 Oct 2009 22:26:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-150898</guid> <description>What do I need to add to the Debian script to turn autonegot off?</description> <content:encoded><![CDATA[<p>What do I need to add to the Debian script to turn autonegot off?</p> ]]></content:encoded> </item> <item><title>By: Prachi</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-150467</link> <dc:creator>Prachi</dc:creator> <pubDate>Wed, 02 Sep 2009 07:48:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-150467</guid> <description>Hi,
I have 2 ethernets (eth0 and eth1) with bouding done as bond0.
# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Current message level: 0x000000ff (255)
Link detected: yes
# ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Current message level: 0x000000ff (255)
Link detected: yes
[root@amuswatnas01 ~]# ethtool bond0
Settings for bond0:
No data available
I want to hard-code the speed to 1000 MBps Full duplex, how can I do that on bouded network,
Do I need to simply edit ifcfg-eth0 and ifcfg-eth1 file with following entries.
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Append following line:
ETHTOOL_OPTS=&quot;speed 100 duplex full autoneg on&quot;
Let me know if any other changes are required.
ethtool shows its 1000 Mbps FD, Do I still need to hard-code, From which file, it shows such configiration?
Thanks,
Prachi</description> <content:encoded><![CDATA[<p>Hi,</p><p>I have 2 ethernets (eth0 and eth1) with bouding done as bond0.</p><p># ethtool eth0<br
/> Settings for eth0:<br
/> Supported ports: [ TP ]<br
/> Supported link modes:   10baseT/Half 10baseT/Full<br
/> 100baseT/Half 100baseT/Full<br
/> 1000baseT/Half 1000baseT/Full<br
/> Supports auto-negotiation: Yes<br
/> Advertised link modes:  10baseT/Half 10baseT/Full<br
/> 100baseT/Half 100baseT/Full<br
/> 1000baseT/Half 1000baseT/Full<br
/> Advertised auto-negotiation: Yes<br
/> Speed: 1000Mb/s<br
/> Duplex: Full<br
/> Port: Twisted Pair<br
/> PHYAD: 1<br
/> Transceiver: internal<br
/> Auto-negotiation: on<br
/> Supports Wake-on: g<br
/> Wake-on: g<br
/> Current message level: 0x000000ff (255)<br
/> Link detected: yes</p><p># ethtool eth1<br
/> Settings for eth1:<br
/> Supported ports: [ TP ]<br
/> Supported link modes:   10baseT/Half 10baseT/Full<br
/> 100baseT/Half 100baseT/Full<br
/> 1000baseT/Half 1000baseT/Full<br
/> Supports auto-negotiation: Yes<br
/> Advertised link modes:  10baseT/Half 10baseT/Full<br
/> 100baseT/Half 100baseT/Full<br
/> 1000baseT/Half 1000baseT/Full<br
/> Advertised auto-negotiation: Yes<br
/> Speed: 1000Mb/s<br
/> Duplex: Full<br
/> Port: Twisted Pair<br
/> PHYAD: 1<br
/> Transceiver: internal<br
/> Auto-negotiation: on<br
/> Supports Wake-on: g<br
/> Wake-on: g<br
/> Current message level: 0x000000ff (255)<br
/> Link detected: yes</p><p>[root@amuswatnas01 ~]# ethtool bond0<br
/> Settings for bond0:<br
/> No data available</p><p>I want to hard-code the speed to 1000 MBps Full duplex, how can I do that on bouded network,<br
/> Do I need to simply edit ifcfg-eth0 and ifcfg-eth1 file with following entries.<br
/> # vi /etc/sysconfig/network-scripts/ifcfg-eth0<br
/> Append following line:<br
/> ETHTOOL_OPTS=&#8221;speed 100 duplex full autoneg on&#8221;</p><p>Let me know if any other changes are required.</p><p>ethtool shows its 1000 Mbps FD, Do I still need to hard-code, From which file, it shows such configiration?</p><p>Thanks,<br
/> Prachi</p> ]]></content:encoded> </item> <item><title>By: digus</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-149523</link> <dc:creator>digus</dc:creator> <pubDate>Thu, 16 Jul 2009 17:30:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-149523</guid> <description>&lt;b&gt;
In Ubuntu/Debian for 100-Full, this works for a static IP in /etc/network/interfaces:
----------------------------
&lt;/b&gt;
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo eth0
iface lo inet loopback
# The primary network interface
iface eth0 inet static
pre-up  /usr/sbin/ethtool -s eth0 speed 100 duplex full autoneg off
address 192.168.1.101
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
&lt;b&gt;
--------------------
this should work for DHCP/Auto setup:
--------------------
&lt;/b&gt;
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo eth0
iface lo inet loopback
# The primary network interface
iface eth0 inet dhcp
pre-up  /usr/sbin/ethtool -s eth0 speed 100 duplex full autoneg off</description> <content:encoded><![CDATA[<p><b><br
/> In Ubuntu/Debian for 100-Full, this works for a static IP in /etc/network/interfaces:<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br
/> </b></p><p># This file describes the network interfaces available on your system<br
/> # and how to activate them. For more information, see interfaces(5).</p><p># The loopback network interface<br
/> auto lo eth0<br
/> iface lo inet loopback</p><p># The primary network interface<br
/> iface eth0 inet static<br
/> pre-up  /usr/sbin/ethtool -s eth0 speed 100 duplex full autoneg off<br
/> address 192.168.1.101<br
/> netmask 255.255.255.0<br
/> broadcast 192.168.1.255<br
/> network 192.168.1.0<br
/> gateway 192.168.1.1<br
/> <b><br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> this should work for DHCP/Auto setup:<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> </b><br
/> # This file describes the network interfaces available on your system<br
/> # and how to activate them. For more information, see interfaces(5).</p><p># The loopback network interface<br
/> auto lo eth0<br
/> iface lo inet loopback</p><p># The primary network interface<br
/> iface eth0 inet dhcp<br
/> pre-up  /usr/sbin/ethtool -s eth0 speed 100 duplex full autoneg off</p> ]]></content:encoded> </item> <item><title>By: Ciprian Pantea</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-148995</link> <dc:creator>Ciprian Pantea</dc:creator> <pubDate>Wed, 17 Jun 2009 21:31:28 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-148995</guid> <description>Hmmm... I have 2.6.25 and and I just managed to cut myself access from the server by issuing
ethtool -s eth0 autoneg off speed 1000 duplex full
even when I got this:
ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: yes
I have a new gbit switch there but I can&#039;t get the desired speed... any bright ideas?</description> <content:encoded><![CDATA[<p>Hmmm&#8230; I have 2.6.25 and and I just managed to cut myself access from the server by issuing<br
/> ethtool -s eth0 autoneg off speed 1000 duplex full<br
/> even when I got this:<br
/> ethtool eth0<br
/> Settings for eth0:<br
/> Supported ports: [ TP ]<br
/> Supported link modes:   10baseT/Half 10baseT/Full<br
/> 100baseT/Half 100baseT/Full<br
/> 1000baseT/Full<br
/> Supports auto-negotiation: Yes<br
/> Advertised link modes:  10baseT/Half 10baseT/Full<br
/> 100baseT/Half 100baseT/Full<br
/> 1000baseT/Full<br
/> Advertised auto-negotiation: Yes<br
/> Speed: 100Mb/s<br
/> Duplex: Full<br
/> Port: Twisted Pair<br
/> PHYAD: 0<br
/> Transceiver: internal<br
/> Auto-negotiation: on<br
/> Supports Wake-on: umbg<br
/> Wake-on: g<br
/> Current message level: 0&#215;00000007 (7)<br
/> Link detected: yes</p><p>I have a new gbit switch there but I can&#8217;t get the desired speed&#8230; any bright ideas?</p> ]]></content:encoded> </item> <item><title>By: Hector</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-148669</link> <dc:creator>Hector</dc:creator> <pubDate>Fri, 22 May 2009 15:56:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-148669</guid> <description>Hi!! I have some question about this script, I&#039;m enter in this script but some expression I don&#039;t understand.
Well gooo.
#!/bin/sh
ETHTOOL=&quot;/usr/sbin/ethtool&quot;
DEV=&quot;eth0&quot;  // well here in the end the expression no coming &quot;;&quot; well in each expression.
SPEED=&quot;100 duplex full&quot;
case &quot;$1&quot; in
start)  //well here not is start()
echo -n &quot;Setting eth0 speed 100 duplex full...&quot;;
$ETHTOOL -s $DEV speed $SPEED;
echo &quot; done.&quot;;;
stop) // here too stop ()
;;
esac
exit 0
well this script I&#039;ll work but no change the base 100TX to 10T when restart my Debian, Now I&#039;m use the tools like ethtool for change in the moment, well send me  the solution and thank for the post is good information.</description> <content:encoded><![CDATA[<p>Hi!! I have some question about this script, I&#8217;m enter in this script but some expression I don&#8217;t understand.<br
/> Well gooo.<br
/> #!/bin/sh<br
/> ETHTOOL=&#8221;/usr/sbin/ethtool&#8221;<br
/> DEV=&#8221;eth0&#8243;  // well here in the end the expression no coming &#8220;;&#8221; well in each expression.<br
/> SPEED=&#8221;100 duplex full&#8221;<br
/> case &#8220;$1&#8243; in<br
/> start)  //well here not is start()<br
/> echo -n &#8220;Setting eth0 speed 100 duplex full&#8230;&#8221;;<br
/> $ETHTOOL -s $DEV speed $SPEED;<br
/> echo &#8221; done.&#8221;;;<br
/> stop) // here too stop ()<br
/> ;;<br
/> esac<br
/> exit 0</p><p>well this script I&#8217;ll work but no change the base 100TX to 10T when restart my Debian, Now I&#8217;m use the tools like ethtool for change in the moment, well send me  the solution and thank for the post is good information.</p> ]]></content:encoded> </item> <item><title>By: wuchale</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-146271</link> <dc:creator>wuchale</dc:creator> <pubDate>Tue, 16 Dec 2008 14:55:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-146271</guid> <description>Thx  for the arcticle. Helped me out.</description> <content:encoded><![CDATA[<p>Thx  for the arcticle. Helped me out.</p> ]]></content:encoded> </item> <item><title>By: trimethy</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-145594</link> <dc:creator>trimethy</dc:creator> <pubDate>Sun, 16 Nov 2008 12:49:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-145594</guid> <description>A variant on the script that handles multiple interfaces and reads the interdfaces from a configuration file.
Enjoy.
Cheers
Interface entry in /etc/default/100Mbs:
INTERFACES=&quot;eth0 eth1 eth3&quot;
/etc/init.d/100Mbs startup script:#!/bin/sh
# Startup script for changing netowork interface parameters
#
ETHTOOL=&quot;/usr/sbin/ethtool&quot;
OPTIONS=&quot;speed 100 duplex full autoneg off&quot;
# Check for a configuration file in /etc/default
if [ ! -f /etc/default/100Mbs ]; then
echo &quot;/etc/default/100Mbs does not exist! - Aborting...&quot;
exit 1
fi
. /etc/default/100Mbs
case &quot;$1&quot; in
start)
if test &quot;$INTERFACES&quot; != &quot;&quot;; then
for I in $INTERFACES; do
echo -n &quot;Setting  ${I} $OPTIONS ...&quot;;
$ETHTOOL -s ${I} $OPTIONS;
echo &quot; done.&quot;
done
fi
;;
stop)
;;
esac
exit 0</description> <content:encoded><![CDATA[<p>A variant on the script that handles multiple interfaces and reads the interdfaces from a configuration file.</p><p>Enjoy.<br
/> Cheers</p><p>Interface entry in /etc/default/100Mbs:<br
/> INTERFACES=&#8221;eth0 eth1 eth3&#8243;</p><p>/etc/init.d/100Mbs startup script:#!/bin/sh<br
/> # Startup script for changing netowork interface parameters<br
/> #</p><p>ETHTOOL=&#8221;/usr/sbin/ethtool&#8221;<br
/> OPTIONS=&#8221;speed 100 duplex full autoneg off&#8221;</p><p># Check for a configuration file in /etc/default<br
/> if [ ! -f /etc/default/100Mbs ]; then<br
/> echo &#8220;/etc/default/100Mbs does not exist! &#8211; Aborting&#8230;&#8221;<br
/> exit 1<br
/> fi</p><p>. /etc/default/100Mbs</p><p>case &#8220;$1&#8243; in<br
/> start)<br
/> if test &#8220;$INTERFACES&#8221; != &#8220;&#8221;; then<br
/> for I in $INTERFACES; do<br
/> echo -n &#8220;Setting  ${I} $OPTIONS &#8230;&#8221;;<br
/> $ETHTOOL -s ${I} $OPTIONS;<br
/> echo &#8221; done.&#8221;<br
/> done<br
/> fi<br
/> ;;<br
/> stop)<br
/> ;;<br
/> esac<br
/> exit 0</p> ]]></content:encoded> </item> <item><title>By: Vasudeva</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-144634</link> <dc:creator>Vasudeva</dc:creator> <pubDate>Tue, 12 Aug 2008 14:09:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-144634</guid> <description>My questions is: my /etc/sysconfig/network-scripts/ifcfg-eth0 is not having details of the NIC speed but when i issue command ethtool eth0 i am getting NIC speed. Where could be this information picking from? Is there any place which ethtool command picks this information?</description> <content:encoded><![CDATA[<p>My questions is: my /etc/sysconfig/network-scripts/ifcfg-eth0 is not having details of the NIC speed but when i issue command ethtool eth0 i am getting NIC speed. Where could be this information picking from? Is there any place which ethtool command picks this information?</p> ]]></content:encoded> </item> <item><title>By: Harka</title><link>http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-144253</link> <dc:creator>Harka</dc:creator> <pubDate>Thu, 03 Jul 2008 09:06:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html#comment-144253</guid> <description>Debian:
/etc/network/interfaces
up ethtool -s eth0 speed 100 duplex full autoneg off
Worked for me. Our servers with out-of-the-box OS settings always went half-duplex during auto-negotiation with the router. So this line fixes that.
Ditto for ETHTOOL_OPTS line from article for Redhat.</description> <content:encoded><![CDATA[<p>Debian:<br
/> /etc/network/interfaces</p><p>up ethtool -s eth0 speed 100 duplex full autoneg off</p><p>Worked for me. Our servers with out-of-the-box OS settings always went half-duplex during auto-negotiation with the router. So this line fixes that.<br
/> Ditto for ETHTOOL_OPTS line from article for Redhat.</p> ]]></content:encoded> </item> </channel> </rss>
