<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cyborgworkshop.org &#187; 10/100</title>
	<atom:link href="http://cyborgworkshop.org/tag/10100/feed/" rel="self" type="application/rss+xml" />
	<link>http://cyborgworkshop.org</link>
	<description>Blurring the line</description>
	<lastBuildDate>Wed, 22 Feb 2012 14:31:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Disable autonegotiate on a NIC in Linux</title>
		<link>http://cyborgworkshop.org/2008/04/14/disable-autonegotiate-on-a-nic-in-linux/</link>
		<comments>http://cyborgworkshop.org/2008/04/14/disable-autonegotiate-on-a-nic-in-linux/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 14:00:46 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[10/100]]></category>
		<category><![CDATA[autonegotiate]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[full duplex]]></category>
		<category><![CDATA[hardcode]]></category>
		<category><![CDATA[nic]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/?p=25</guid>
		<description><![CDATA[Sometimes auto negotiate just doesn&#8217;t work, and it&#8217;s never a good idea to use auto negotiate on a SAN connection. To disable auto negotiate use the ethtool command. ethtool -s $DEV autoneg off Don&#8217;t forget to set your speed and duplex afterwards! I haven&#8217;t been able to track down a way to do this in [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes auto negotiate just doesn&#8217;t work, and it&#8217;s never a good idea to use auto negotiate on a SAN connection.  To disable auto negotiate use the ethtool command. </p>
<blockquote><p>ethtool -s $DEV autoneg off</p></blockquote>
<p>Don&#8217;t forget to set your speed and duplex afterwards!  I haven&#8217;t been able to track down a way to do this in the system provided configuration files, but you can easily script it in your startup scripts. Just make sure it runs early or right after the network script.</p>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2008/04/14/disable-autonegotiate-on-a-nic-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get and set the speed and duplex of a NIC in Linux</title>
		<link>http://cyborgworkshop.org/2008/04/08/how-to-get-and-set-the-speed-and-duplex-of-a-nic-in-linux/</link>
		<comments>http://cyborgworkshop.org/2008/04/08/how-to-get-and-set-the-speed-and-duplex-of-a-nic-in-linux/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 14:00:59 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[10/100]]></category>
		<category><![CDATA[duplex]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[nic]]></category>
		<category><![CDATA[speed]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/?p=10</guid>
		<description><![CDATA[NICs like to talk to each other at the same speed and duplex. In fact, bad things happen if you have a mismatch in either of those, so a way to view and then set those parameters is important. Let&#8217;s start with the viewing. As root, run ethtool $DEV Where the $DEV is the network [...]]]></description>
			<content:encoded><![CDATA[<p>NICs like to talk to each other at the same speed and duplex. In fact, bad things happen if you have a mismatch in either of those, so a way to view and then set those parameters is important. Let&#8217;s start with the viewing. As root, run</p>
<blockquote><p> ethtool $DEV</p></blockquote>
<p>Where the $DEV is the network interface. You&#8217;ll get output similar to the following</p>
<blockquote><p> root@Seraph:~# ethtool eth0<br />
Settings for eth0:<br />
Supported ports: [ TP MII ]<br />
Supported link modes:   10baseT/Half 10baseT/Full<br />
100baseT/Half 100baseT/Full<br />
Supports auto-negotiation: Yes<br />
Advertised link modes:  <strong>10baseT/Half 10baseT/Full</strong><br />
<strong>100baseT/Half 100baseT/Full </strong><br />
Advertised auto-negotiation: Yes<br />
Speed: <strong>10Mb/s</strong><br />
Duplex: <strong>Half</strong><br />
Port: MII<br />
PHYAD: 32<br />
Transceiver: internal<br />
Auto-negotiation: <strong>on</strong><br />
Supports Wake-on: pumbg<br />
Wake-on: d<br />
Current message level: 0&#215;00000007 (7)<br />
Link detected: no</p></blockquote>
<p>The fields in bold tell you the capabilities of your interface,  the current speed, the current duplex and whether the NIC is set to try to auto-negotiate it&#8217;s speed and duplex settings with the switch.  While auto-negotiate will work in most cases for clients, when you start talking about servers you really need to hardcode the NIC. Do that with</p>
<blockquote><p> ethtool -s $DEV speed 100 duplex full</p></blockquote>
<p>And now $DEV is set to 100Mbs Full Duplex. You can verify that with another run of ethtool. An important tip to remember is to never run this command if you are connected to the server using this interface. If a speed or duplex mismatch occur, the server will become pretty much unavailable over that interface. Always use the serial console, the attached keyboard or a different interface then the one you are working on to connect to the server.</p>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2008/04/08/how-to-get-and-set-the-speed-and-duplex-of-a-nic-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

