{"id":1312,"date":"2021-11-29T20:59:30","date_gmt":"2021-11-29T23:59:30","guid":{"rendered":"https:\/\/blog.abratel.com.br\/?p=1312"},"modified":"2021-12-03T16:05:28","modified_gmt":"2021-12-03T19:05:28","slug":"desativar-autonegotiation-e-setar-halfduplex-placa-de-rede-channel-bank-cianet","status":"publish","type":"post","link":"https:\/\/blog.abratel.com.br\/?p=1312","title":{"rendered":"Desativar autonegotiation e setar FullDuples placa de rede Channel Bank Cianet"},"content":{"rendered":"<p>Adicionar no arquivo da placa de rede:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nETHTOOL_OPTS=&quot;speed 100 duplex full autoneg off&quot;\n\n<\/pre>\n<p>Explicacao:<\/p>\n<p>Ethtool Command to Change Ethernet Adapter Settings<br \/>\nThe ethtool -s command can be used to change the current settings by defining the values for &#8220;speed,&#8221; &#8220;duplex,&#8221; and &#8220;autoneg&#8221; in the following format<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nsudo ethtool -s [device_name] speed [10\/100\/1000] duplex [half\/full] autoneg [on\/off]\n\n<\/pre>\n<p>For example, to set the speed at 1000Mb\/s, the duplex mode to \u2018full\u2019 and the auto-negotiation to \u2018on\u2019 the command would be:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nsudo ethtool -s enp0s3 speed 1000 duplex full autoneg on\n\n<\/pre>\n<p>The ethtool [device_name] command is necessary to confirm that the changes have been applied.<\/p>\n<p>Ethtool_opt Variable to Permanently Set Ethtool Command Settings<br \/>\nChanges made with Ethtool are by default reverted after a system is re-booted.<\/p>\n<p>To apply custom settings each time a system boots edit the file for the device interface:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nvi \/etc\/sysconfig\/network-scripts\/ifcfg-enp0s3\n\n<\/pre>\n<p>Add the desired values as a line at the end of the file using the following syntax:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nETHTOOL_OPTS=&quot;speed [100|1000|10000] duplex [half|full] autoneg [on|off]\u201d\nFor example:\n\nETHTOOL_OPTS=&quot;speed 100 duplex full autoneg off&quot;\n\n<\/pre>\n<p>Save the changes and exit the file.<\/p>\n<p>Now the changes are applied after every reboot and are permanent unless the file is altered again.<\/p>\n<p>Parameters<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nAuto\nFor interfaces that do autonegotiation, the appliance uses standard IEEE 802.3 autonegotiation for interface speed and direction. Preference is given to the highest speed. Preference is for full-duplex over half-duplex. This setting is the default value.\n10baseT-FD\nAdvertises 10BASE-T PHY (10 Mbps) in full-duplex mode.\n10baseT-HD\nAdvertises 10BASE-T PHY (10 Mbps) in half-duplex mode.\n100baseTx-FD\nAdvertises 100BASE-TX PHY (100 Mbps) in full-duplex mode.\n100baseTx-HD\nAdvertises 100BASE-TX PHY (100 Mbps) in half-duplex mode.\n1000baseTx-FD\nAdvertises 1000BASE-T PHY (1 Gbps) in full-duplex mode.\n10000baseTx-FD\nAdvertises 10000BASE-T PHY (10 Gbps) in full-duplex mode.\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Adicionar no arquivo da placa de rede: Explicacao: Ethtool Command to Change Ethernet Adapter Settings The ethtool -s command can be used to change the current settings by defining the values for &#8220;speed,&#8221; &#8220;duplex,&#8221; and &#8220;autoneg&#8221; in the following format For example, to set the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1314,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,2],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1312"}],"collection":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1312"}],"version-history":[{"count":12,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1312\/revisions"}],"predecessor-version":[{"id":1333,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1312\/revisions\/1333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/media\/1314"}],"wp:attachment":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}