{"id":32,"date":"2007-11-16T09:02:26","date_gmt":"2007-11-16T14:02:26","guid":{"rendered":"http:\/\/yourlinuxguy.com\/?p=32"},"modified":"2008-01-23T08:46:56","modified_gmt":"2008-01-23T13:46:56","slug":"why-doesnt-my-linux-machine-auto-negotiate-correctly","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=32","title":{"rendered":"Why doesn&#8217;t my Linux machine auto-negotiate correctly?"},"content":{"rendered":"<p>This one can be frustrating. I travel between networks alot, and I cannot predict the condition of the network equipment to which I&#8217;ll be physically connecting (when I&#8217;m not wireless).<\/p>\n<p>Many, many times, it&#8217;s Cisco switches; and for some reason, with Cisco my laptop (and other machines for that matter) does not auto-negotiate the 100Mb Full Duplex that it should (this used to happen all the time with Solaris boxes I worked with too, so don&#8217;t just blame Linux). It will often negotiate half-duplex on the computer end, and upon investigation of the switch, the switch believes it has negotiated full-duplex. Not alot of goodness ensues&#8230;<\/p>\n<p>Anyway, I encourage you to memorize the following. You might need it as often as I do! This command  will disable auto-negotiation and set your interface to 100FD. Life will be good (this command assumes the interface in question is eth0)&#8230;.<\/p>\n<p><code><font size=1>ethtool -s eth0 autoneg off speed 100 duplex full<\/font><\/code><\/p>\n<p>If you just want to check what your interface is set to (or negotiated) use this command:<\/p>\n<p><code>ethtool eth0<\/code><\/p>\n<p>&#8230;and of course, you should always verify with &#8220;man ethtool&#8221;&#8230; trust, but verify&#8230;<\/p>\n<p>\ud83d\ude09<\/p>\n<p>Follow-up: By the way, if you&#8217;re wondering why I don&#8217;t just use &#8220;<code>mii-tool<\/code>&#8220;, it&#8217;s because that tool has been deprecated and is no longer being (or soon will no longer be) provided with some distros. Of course, some older NICs require &#8220;<code>mii-tool<\/code>&#8220;, so you might need to install it if that&#8217;s the case for you&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This one can be frustrating. I travel between networks alot, and I cannot predict the condition of the network equipment to which I&#8217;ll be physically connecting (when I&#8217;m not wireless). Many, many times, it&#8217;s Cisco switches; and for some reason,&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=32\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10,15],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-introductory","category-suse"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-w","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":0,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}