La velocità della scheda di rete in Linux

Qualche comando per trovare, in ambiente Linux, le caratteristiche dell’adattatore di rete; il tipo di scheda, la velocità, l’IRQ usato.

La velocità della scheda di rete in Linux

Le schede di rete, in ambiente Linux, sono identificate dall’identificativo eth seguito da un numero progressivo, partendo da 0. Quindi la prima scheda è eth0, la seconda eth1 e così via. Nei comandi indicati qui di seguito sostituire eventualmente il nome della scheda che si vuole verificare, se non è eth0.

# dmesg | grep eth0

il cui risultato sarà del tipo:

divert: allocating divert_blk for eth0
eth0: RealTek RTL8139 at 0xd800, 00:80:48:34:c2:84, IRQ 9
eth0:  Identified 8139 chip type ‘RTL-8100B/8139D’
divert: freeing divert_blk for eth0
divert: allocating divert_blk for eth0
eth0: RealTek RTL8139 at 0xd800, 00:90:44:34:a5:33, IRQ 9
eth0:  Identified 8139 chip type ‘RTL-8100B/8139D’
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
eth0: no IPv6 routers present

In questo caso l’output dice che la scheda è una RealTek RTL8139, che usa l’IRQ 9, la sua velocità è 100 Mbps ed è full-duplex.

Più ordinato il comando ethtool, da usarsi così:

# ethtool eth0

che produce un risultato come questo:

Settings for eth0:
  Supported ports: [ TP MII ]
  Supported link modes:   10baseT/Half 10baseT/Full
                          100baseT/Half 100baseT/Full
  Supports auto-negotiation: Yes
  Advertised link modes:  10baseT/Half 10baseT/Full
                          100baseT/Half 100baseT/Full
  Advertised auto-negotiation: Yes
  Speed: 100Mb/s
  Duplex: Full
  Port: MII
  PHYAD: 32
  Transceiver: internal
  Auto-negotiation: on
  Supports Wake-on: pumbg
  Wake-on: p
  Current message level: 0x00000007 (7)
  Link detected: yes

Lascia il tuo commento