Alterando a velocidade de sua placa de rede

Publicado por Leonardo Damasceno em 30/07/2010

[ Hits: 55.204 ]

Blog: https://techcraic.wordpress.com

 


Alterando a velocidade de sua placa de rede



Certa vez, ao olhar o servidor proxy e web do local em que trabalho, percebi que a velocidade da rede estava errada, pois foi mostrado:

Speed: 10Mb/s

Sabendo que toda a estrutura é para trabalhar a 100Mb/s. Ao pesquisar, descobri a ferramenta chamada ethtool. Se você utiliza qualquer distribuição derivada do Debian, utilize o apt-get (o pacote existe nos repositórios Main do Ubuntu e Debian):

sudo apt-get install ethtool

Agora, para checar não só a velocidade, mas muitas outras informações, faça:

# ethtool eth0

Veja como será o resultado (resultado baseado em minhas configurações):

Settings for eth0:
   Supported ports: [ MII ]
   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: 10Mb/s
   Duplex: Full
   Port: Twisted Pair
   PHYAD: 1
   Transceiver: internal
   Auto-negotiation: on
   Supports Wake-on: g
   Wake-on: d
   Current message level: 0x000000ff (255)
   Link detected: yes

Agora, para alterar a velocidade de 10Mb/s para 100Mb/s, faça:

# ethtool -s eth0 speed 100 duplex full autoneg off

Outras dicas deste autor

Inserindo data e hora no comando history

Habilitando SSH no PFSense

Definindo imagem para o GRUB

NetGrok, uma ótima ferramenta para monitoramento

Adicionando o IMSpector em seu pfSense

Leitura recomendada

Sincronização de coletor de dados MC3090 Symbol no Windows Seven virtualizado no Ubuntu 10.10 x64

Virtualizando um Sistema Operacional em linha de comando com o qemu

Criar pacotes deb com o Debreate 0.7alpha6

Instalando o navegador Vivaldi no Fedora 32

Visualizando o céu com o Stellarium no Linux

  

Comentários
[1] Comentário enviado por brizao em 31/07/2010 - 06:04h

mto boa a dica, eu até ia pesquisar sobre isso, hoje precisei numa maquina windows alterar de 100 full duplex para 10 full duplex (cabeamento barato haha) e ia pesquisar de como fazer isso no linux...
valeu!!!!!

[2] Comentário enviado por leandrox em 31/07/2010 - 11:25h

Boa dica, mas checando a minha placa vi que já estava em 100Mb/s ...
vlw!

[3] Comentário enviado por Rcristiano em 02/10/2013 - 16:43h

Como faço para alterar se estiver em bound?

[4] Comentário enviado por acsajr em 28/05/2020 - 09:10h

Olá, o meu problema está na alteração da velocidade de 100 para 1000mbs.
Minha placa suporte, o cabo de cat 5e, já testei com Cat6, e o modem é gigabit.
Settings for enp0s10:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes
Executo o comando sudo ethtool -s enp0s10 speed 1000 duplex full autoneg on
Não retorna nenhum erro, mas também não altera a velocidade.

[5] Comentário enviado por acsajr em 28/05/2020 - 18:36h


[4] Comentário enviado por acsajr em 28/05/2020 - 09:10h

Olá, o meu problema está na alteração da velocidade de 100 para 1000mbs.
Minha placa suporte, o cabo de cat 5e, já testei com Cat6, e o modem é gigabit.
Settings for enp0s10:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes
Executo o comando sudo ethtool -s enp0s10 speed 1000 duplex full autoneg on
Não retorna nenhum erro, mas também não altera a velocidade.



Comprei uma placa pci Gigabit Realtek R8169.
Ao mudar a velocidade para 1000 ela não habita e fica sem conexão.
Volto a velocidade para 100 a placa funciona.
Já instalei os drivers.
Settings for enp4s0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes

00:00.0 Memory controller: NVIDIA Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: NVIDIA Corporation CK804 ISA Bridge (rev f3)
00:01.1 SMBus: NVIDIA Corporation CK804 SMBus (rev a2)
00:02.0 USB controller: NVIDIA Corporation CK804 USB Controller (rev a2)
00:02.1 USB controller: NVIDIA Corporation CK804 USB Controller (rev a3)
00:06.0 IDE interface: NVIDIA Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: NVIDIA Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: NVIDIA Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: NVIDIA Corporation CK804 PCI Bridge (rev f2)
00:0a.0 Bridge: NVIDIA Corporation CK804 Ethernet Controller (rev f3)
00:0b.0 PCI bridge: NVIDIA Corporation CK804 PCIE Bridge (rev f3)
00:0c.0 PCI bridge: NVIDIA Corporation CK804 PCIE Bridge (rev f3)
00:0d.0 PCI bridge: NVIDIA Corporation CK804 PCIE Bridge (rev f3)
00:0e.0 PCI bridge: NVIDIA Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:01.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev c0)
01:07.0 Multimedia audio controller: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller (rev 01)
02:00.0 USB controller: VIA Technologies, Inc. VL80x xHCI USB 3.0 Controller (rev 03)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
05:00.0 VGA compatible controller: NVIDIA Corporation G96 [GeForce 9500 GT] (rev a1)

[6] Comentário enviado por acsajr em 28/05/2020 - 19:24h


[5] Comentário enviado por acsajr em 28/05/2020 - 18:36h


[4] Comentário enviado por acsajr em 28/05/2020 - 09:10h

Olá, o meu problema está na alteração da velocidade de 100 para 1000mbs.
Minha placa suporte, o cabo de cat 5e, já testei com Cat6, e o modem é gigabit.
Settings for enp0s10:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes
Executo o comando sudo ethtool -s enp0s10 speed 1000 duplex full autoneg on
Não retorna nenhum erro, mas também não altera a velocidade.



Comprei uma placa pci Gigabit Realtek R8169.
Ao mudar a velocidade para 1000 ela não habita e fica sem conexão.
Volto a velocidade para 100 a placa funciona.
Já instalei os drivers.
Settings for enp4s0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes

00:00.0 Memory controller: NVIDIA Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: NVIDIA Corporation CK804 ISA Bridge (rev f3)
00:01.1 SMBus: NVIDIA Corporation CK804 SMBus (rev a2)
00:02.0 USB controller: NVIDIA Corporation CK804 USB Controller (rev a2)
00:02.1 USB controller: NVIDIA Corporation CK804 USB Controller (rev a3)
00:06.0 IDE interface: NVIDIA Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: NVIDIA Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: NVIDIA Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: NVIDIA Corporation CK804 PCI Bridge (rev f2)
00:0a.0 Bridge: NVIDIA Corporation CK804 Ethernet Controller (rev f3)
00:0b.0 PCI bridge: NVIDIA Corporation CK804 PCIE Bridge (rev f3)
00:0c.0 PCI bridge: NVIDIA Corporation CK804 PCIE Bridge (rev f3)
00:0d.0 PCI bridge: NVIDIA Corporation CK804 PCIE Bridge (rev f3)
00:0e.0 PCI bridge: NVIDIA Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:01.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev c0)
01:07.0 Multimedia audio controller: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller (rev 01)
02:00.0 USB controller: VIA Technologies, Inc. VL80x xHCI USB 3.0 Controller (rev 03)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
05:00.0 VGA compatible controller: NVIDIA Corporation G96 [GeForce 9500 GT] (rev a1)



Resolvido o problema. Era o cabo de rede.
Estava usando um cat5e, porém ele deve estar com algum problema.
Coloquei outro cabo cat5e e a placa nova funcionou com 1000mbs sem precisar fazer nada.
Portanto se tiverem este problema vejam todas as pontas.
Se roteador é gigabit, se o cabo é gigabit e se a placa é gigabit.



Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts