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
Setup SSL Tunnel Using Stunnel on Ubuntu
Viewed 698 times since Fri, Sep 28, 2018
UUIDs and Linux: Everything you ever need to know [Update]
Viewed 835 times since Tue, Jul 17, 2018
Install OpenVPN On CentOS / RHEL 7
Viewed 733 times since Fri, May 15, 2020
Manage SSH Key File With Passphrase
Viewed 844 times since Tue, Mar 5, 2019
RHEL: Checking HBAs
Viewed 2756 times since Sun, May 27, 2018
ZPOOL: Verify/change properties of a zpool
Viewed 858 times since Sun, Jun 3, 2018
systemd Auto-restart a crashed service in systemd
Viewed 708 times since Fri, Jan 17, 2020
How to Clear RAM Memory Cache, Buffer and Swap Space on Linux
Viewed 368 times since Mon, Nov 23, 2020
logrotate - rotates, compresses, and mails system logs.
Viewed 713 times since Fri, Nov 30, 2018
zabbix linux How to solve apache error No space left on device: Cannot create SSLMutex
Viewed 212 times since Wed, Nov 11, 2020