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
HowTo: Send Email from an SMTP Server using the Command Line
Viewed 847 times since Mon, Feb 18, 2019
20 IPtables Examples For New SysAdmins
Viewed 1118 times since Fri, May 15, 2020
RHEL: Change system’s hostname
Viewed 1784 times since Sun, May 27, 2018
linux ssh How to Hide the OpenSSH Version Details when Telnet to Port 22
Viewed 1442 times since Wed, Apr 22, 2020
LVM: Extend SWAP size by adding a new Logical Volume
Viewed 1086 times since Sat, Jun 2, 2018
Linux Customizing Bash
Viewed 442 times since Sun, Dec 6, 2020
List usernames instead of uids with the ps command for long usernames
Viewed 985 times since Wed, Jul 25, 2018
ZFS: Grow/Shrink an existing zfs filesystem
Viewed 2231 times since Sun, Jun 3, 2018
how to list all hard disks in linux from command line
Viewed 1110 times since Mon, Jan 28, 2019
OCFS2 Cluster File System Setup Guide in Linux
Viewed 5162 times since Sat, Jun 2, 2018