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
Modifying the inode count for an ext2/ext3/ext4 file system
Viewed 14431 times since Fri, Sep 18, 2020
RHEL7: How to get started with Firewalld.
Viewed 11792 times since Wed, May 22, 2019
Need to set up yum repository for locally-mounted DVD on Red Hat Enterprise Linux 7
Viewed 2782 times since Mon, Oct 29, 2018
HowTo: Send Email from an SMTP Server using the Command Line
Viewed 1639 times since Mon, Feb 18, 2019
RHEL: Getting/Setting hardware clock’s time
Viewed 2750 times since Sat, Jun 2, 2018
CentOS / RHEL 7 : Configuring an NFS server and NFS client Linux NFS
Viewed 16030 times since Fri, Feb 21, 2020
Linux - How to monitor memory usage
Viewed 2789 times since Fri, Jun 8, 2018
tcpdump usage examples
Viewed 2081 times since Fri, Jul 27, 2018
YUM CRON RHEL7: Configure automatic updates.
Viewed 1783 times since Fri, Oct 26, 2018
Linux / UNIX: DNS Lookup Command
Viewed 9387 times since Sun, Sep 30, 2018