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
linux ssh Remotely Initiated Reverse SSH Tunnel
Viewed 2887 times since Wed, Apr 22, 2020
ubuntu How to reset lost root password on Ubuntu 16.04 Xenial Xerus Linux
Viewed 8101 times since Tue, Dec 8, 2020
RHEL: How to change a USER/GROUP UID/GID and all owned files
Viewed 20878 times since Sat, Jun 2, 2018
debian How to check Debian CVE status using python script
Viewed 3415 times since Sun, Sep 23, 2018
RHEL: Rebuilding the initial ramdisk image
Viewed 7027 times since Sat, Jun 2, 2018
LVM: Move allocated PE between Physical Volumes
Viewed 3732 times since Sat, Jun 2, 2018
Using stunnel and TinyProxy to obfuscate HTTP traffic
Viewed 6556 times since Fri, Sep 28, 2018
Linux / UNIX: Run Command a Number of Times In a Row
Viewed 15725 times since Tue, Aug 6, 2019
chrt command: Set / Manipulate Real Time Attributes of a Linux Process
Viewed 10760 times since Mon, Feb 17, 2020
RHEL: Retrieve and generate a unique SCSI identifier
Viewed 2889 times since Sat, Jun 2, 2018