Linux - How to get network speed and statistic of ethernet adapter in Linux
Article Number: 242 | Rating: Unrated | Last Updated: Fri, Jun 8, 2018 9:45 PM
Linux - How to get network speed and statistic of ethernet adapter in Linux
Question : How to get network speed of ethernet adapter in Linux.
Answer : "ethtool <ethX>" command can be used to get network speed of specific ethernet card in Linux.
Example :
Question : How to get network statistic of ethernet interface in Linux.
Answer : "ifconfig <ethX>" command can be used to display statistic of specific ethernet interface in Linux. Alternative, "ifconfig -a" command can be used to display statistic of all ethernet interface in Linux.
Example :
Answer : "ethtool <ethX>" command can be used to get network speed of specific ethernet card in Linux.
Example :
[root@server ~]# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: g Link detected: yes |
Question : How to get network statistic of ethernet interface in Linux.
Answer : "ifconfig <ethX>" command can be used to display statistic of specific ethernet interface in Linux. Alternative, "ifconfig -a" command can be used to display statistic of all ethernet interface in Linux.
Example :
root@server # ifconfig -a <--- To display network statistic of all interface root@server # ifconfig eth0 <--- To display network statistic of interface eth0 |