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
Easily Monitor CPU Utilization in Linux Terminal With Stress Terminal UI
Viewed 4182 times since Thu, Apr 18, 2019
Linux - How to shutdown or reboot
Viewed 2223 times since Fri, Jun 8, 2018
How to encrypt a partition with DM-Crypt LUKS on Linux
Viewed 8294 times since Fri, Jul 13, 2018
RHEL: Remove existing SAN LUNs
Viewed 14190 times since Sat, Jun 2, 2018
How to encrypt a partition using LUKS?
Viewed 1924 times since Fri, Jul 13, 2018
LVM: Reduce an existing Volume Group by removing one of its disks
Viewed 2576 times since Sat, Jun 2, 2018
Index » Community Contributions » System encryption using LUKS and GPG encrypted keys for arch linux
Viewed 3282 times since Fri, Jul 13, 2018
Secure Secure Shell
Viewed 10965 times since Fri, Aug 21, 2020
ZPOOL: Add a mirror to a concat zpool
Viewed 3884 times since Sun, Jun 3, 2018
Creating SWAP partition using FDISK & FALLOCATE commands
Viewed 3557 times since Thu, Jan 16, 2020