Linux - How to get network speed and statistic of ethernet adapter in Linux

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 :
[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
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
sed Delete / Remove ^M Carriage Return (Line Feed / CRLF) on Linux or Unix
Viewed 10120 times since Thu, Feb 7, 2019
RHEL: Route network packets to go out via the same interface they came in
Viewed 2948 times since Sat, Jun 2, 2018
RHEL: Services basic management - chkconfig
Viewed 5488 times since Sat, Jun 2, 2018
Logowanie za pomocą kluczy Secure Shell
Viewed 2849 times since Thu, May 24, 2018
RHEL: Forgotten ’root’ password / using single-user to gain access
Viewed 7258 times since Sat, Jun 2, 2018
LVM: Move allocated PE between Physical Volumes
Viewed 3806 times since Sat, Jun 2, 2018
How to Migrate from RHEL 8 to CentOS 8
Viewed 2857 times since Fri, May 15, 2020
Get UUID of Hard Disks [Update]
Viewed 2120 times since Tue, Jul 17, 2018
FIO (Flexible I/O) – a benchmark tool for any operating system
Viewed 19312 times since Wed, Jul 25, 2018
Red Hat ADDING SWAP SPACE
Viewed 1958 times since Fri, Jun 8, 2018