ip:
sudo ip -s -s link show dev eth0
ethtool:
sudo ethtool -S eth0
Kde výstup:
| Counter | Description |
|---|---|
| rx_packets | Total packets received |
| rx_bytes | Total bytes received |
| rx_errors | Bad packets received |
| tx_packets | Total packets transmitted |
| tx_bytes | Total bytes transmitted |
| tx_errors | Packet transmit issues |
| collisions | Packets with late collisions |
| rx_missed | Packets missed due to low resources |
| tx_dropped | Packets not transmitted due to issues |
sudo ethtool -i eth0 | grep -i driver # vypíše použitý ovladač (nebo ethtool --driver enp2s0)
sudo ethtool -i eth0 | grep -i firmware # vypíše verzi firmware
sudo ethtool -p eth0 30 # rozbliká port na 30 sekund (zmáčkněte CTRL+C pro přerušení)
sudo ethtool -s eth0 speed 1000 duplex full autoneg on # nastavení parametrů linky
sudo ethtool --include-statistics -a eth0 # vypsání parametrů linky
