Pular para o conteúdo principal

Como alterar a velocidade da rede no linux

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, vamos alterar a velocidade de 10Mb/s para 100Mb/s, faça:
# ethtool -s eth0 speed 100 duplex full autoneg off
prontinho agora faça o teste e veja a novas configurações:
# ethtool eth0

Comentários