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
How to use yum-cron to automatically update RHEL/CentOS Linux
Viewed 2425 times since Wed, Oct 17, 2018
Cron YUM How to use yum-cron to automatically update RHEL/CentOS Linux
Viewed 2188 times since Fri, Oct 26, 2018
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 79464 times since Thu, Jun 21, 2018
ZPOOL: Detach a submirror from a mirrored zpool
Viewed 2314 times since Sun, Jun 3, 2018
Odpalenie polecenia tylko na jedną godzinę
Viewed 2541 times since Thu, May 24, 2018
Turbocharge PuTTY with 12 Powerful Add-Ons – Software for Geeks #3
Viewed 14199 times since Sun, Sep 30, 2018
How To Set Up an SSL Tunnel Using Stunnel on Ubuntu
Viewed 2916 times since Fri, Sep 28, 2018
RHEL: Crash kernel dumps configuration and analysis on RHEL 6
Viewed 4315 times since Sat, Jun 2, 2018
How To Create a Linux Swap File
Viewed 2132 times since Fri, Jun 8, 2018
Jak znaleźć najszybszy publiczny serwer DNS w Polsce?
Viewed 2245 times since Mon, May 21, 2018