- Linux – Determine / Find Ethernet Connection Speed
- How do I determine ethernet connection speed?
- 16 Useful Bandwidth Monitoring Tools to Analyze Network Usage in Linux
- ManageEngine Netflow Analyzer
- 1. vnStat – A Network Traffic Monitor
- Install VnStat in Linux
- 2. iftop – Displays Bandwidth Usage
- Install iftop in Linux
- 3. nload – Displays Network Usage
- Install nload in Linux
- 4. NetHogs – Monitor Network Traffic Bandwidth
- Install NetHogs in Linux
- 5. bmon – Bandwidth Monitor and Rate Estimator
- Install Bmon in Linux
- 6. Darkstat – Captures Network Traffic
- Install Darkstat in Linux
- 7. IPTraf – An IP Network Monitor
- Install IPTraf in Linux
- 8. CBM – (Color Bandwidth Meter)
- Install Color Bandwidth Meter in Linux
- 9. Iperf/Iperf3 – Network Bandwidth Measurement Tool
- Install Iperf3 in Linux
- 10. Netperf – Network Bandwidth Testing
- Install Netperf in Linux
- 11. SARG – Squid Analysis Report Generator
- 12. Monitorix – System and Network Monitoring Tool
- Install Monitorix in Linux
- 13. Cacti – Network Monitoring and Graphing Tool
- 14. Observium – Network Monitoring Platform
- 15. Zabbix – Application and Network Monitoring Tool
- 16. Nagios – Monitors Systems, Networks, and Infrastructure
- If You Appreciate What We Do Here On TecMint, You Should Consider:
Linux – Determine / Find Ethernet Connection Speed
Most intelligent network devices use an autonegotiation protocol to communicate what media technologies they support, and then select the fastest mutually supported media technology.
How do I determine ethernet connection speed?
Type the following command to get speed for eth0:
$ ethtool eth0 | less
OR
$ ethtool eth0 | grep -i speed
Sample outputs:
Fig.01: Ubuntu Linux verify the speed of my NIC (network card)
- No ads and tracking
- In-depth guides for developers and sysadmins at Opensourceflare✨
- Join my Patreon to support independent content creators and start reading latest guides:
- How to set up Redis sentinel cluster on Ubuntu or Debian Linux
- How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
- How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
- A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
- How to protect Linux against rogue USB devices using USBGuard
Join Patreon ➔
🐧 Get the latest tutorials on Linux, Open Source & DevOps via
Category | List of Unix and Linux commands |
---|---|
Documentation | help • mandb • man • pinfo |
Disk space analyzers | df • duf • ncdu • pydf |
File Management | cat • cp • less • mkdir • more • tree |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Linux Desktop Apps | Skype • Spotify • VLC 3 |
Modern utilities | bat • exa |
Network Utilities | NetHogs • dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • glances • gtop • jobs • killall • kill • pidof • pstree • pwdx • time • vtop |
Searching | ag • grep • whereis • which |
Shell builtins | compgen • echo • printf |
Text processing | cut • rev |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Comments on this entry are closed.
Is there any similar functionality on Windows?
I want to see the Duplex and Speed on Windows as well.
yes you have to go to your Ethernet card properties which can me done through device manger and there select advance option and change the LAN link speed either to 10 or 100 Mbps full or half duplex
I’m using Ubuntu 8.10 alpha 3 32bits.
I tried “ethtool eth0 | grep -i speed ” but needed to add sudo to execute it.
Without sudo:
Cannot get device settings: Operation not permitted
Cannot get wake-on-lan settings: Operation not permitted
Cannot get link status: Operation not permitted
jp@jp-desktop810:
$ sudo ethtool eth0 | grep -i speed
Speed: 100Mb/s
Talk about difficult to find out what my nic link speed is with linux (fedora 8) …
I would have expected “settings/network or network status” to show me.
On windows just look at the properties/status of the network card object and it shows link speed, duplex and real time packet count.
On Windows, you type in a fairly long command to get it, instead of just “ethtool “, which is shorter. You’re comparing the graphical tools available on Windows to the command line of Linux. Apples and oranges.
Tried this on ubuntu, uhm, 8 or something (was some old usb livestick i often use to revive data from dead computers and laptops).
I had to install the ethtool first, but a permission denied. This command worked though:
sudo apt-get install ethtool
Then I tried the first command in this article, which gave me no info and I didn´t know howto get out of the program. Closed the terminal and opened it up again, then ran the second command. Permission denied. But a sudo !! did the trick. In short, this would work after doing the apt-get-install:
sudo ethtool eth0 | grep -i speed
Hope this helps others out who are just as newb as me 🙂
apt-get and ethtool are administrator tools hence the need to use sudo before the actual commands. Users are normally not able to use them as they can affect the system and possibly cause major failures in connectivty or software.
On amazon Linux on EC2, ethtool only says whether a link is detected or not.
ifconfig -a
cat /proc/net/bonding/bond0
cat /proc/net/bonding/bond1
If you don’t have ethtool installed, you may have mii-tool:
# mii-tool
eth0: negotiated 1000baseT-FD flow-control, link ok
eth1: negotiated 100baseTx-FD flow-control, link ok
Can any one tell me ,How to get Ethernet Link Speed(through command prompt i e Terminal ) in MAC OS X ?
Thank you
If your interface name is en6, enter:
ifconfig en6 | grep media
media: autoselect (100baseTX )
If your interface name is en0, enter:
ifconfig en0 | grep media
Источник
16 Useful Bandwidth Monitoring Tools to Analyze Network Usage in Linux
Are you having problems monitoring your Linux network bandwidth usage? Do you need help? It’s important that you are able to visualize what is happening in your network in order to understand and resolve whatever is causing network slowness or simply to keep an eye on your network.
In this article, we will review 16 useful bandwidth monitoring tools to analyze network usage on a Linux system.
If you are looking to manage, troubleshoot or debug your Network, then read our article – 22 Linux Networking Commands for Sysadmins
The tools listed below are all open source and can help you to answer questions such as “why is the network so slow today?”. This article includes a mix of small tools for monitoring bandwidth on a single Linux machine and complete monitoring solutions capable of handling a few number of hosts on a LAN (Local Area Network) to multiple hosts even on a WAN (Wide Area Network).
ManageEngine Netflow Analyzer
ManageEngine NetFlow Analyzer is a flow-based bandwidth monitoring solution that offers multi-vendor support. It monitors your network, analyzes traffic patterns, and detects and diagnoses bandwidth hogs.
You can track the traffic patterns in your network over any period of time, and drill down further into the device, interface, application, and user-level details. With its traffic shaping abilities, NetFlow Analyzer helps you identify network anomalies in real-time and troubleshoot them before they affect your end-users.
With its customizable reports, NetFlow Analyzer also helps you predict and plan your bandwidth requirements. You can create, schedule, and generate comprehensive bandwidth analysis reports in just a few clicks.
ManageEngine Netflow Analyzer
1. vnStat – A Network Traffic Monitor
VnStat is a fully-featured, command line-based program to monitor Linux network traffic and bandwidth utilization in real-time, on Linux and BSD systems.
Vnstat Network Traffic Monitor Tool
One advantage it has over a similar tool is that it logs network traffic and bandwidth usage statistics for later analysis – this is its default behavior. You can actually view these logs even after the system reboots.
Install VnStat in Linux
2. iftop – Displays Bandwidth Usage
iftop is a simple, easy-to-use, real-time top-like command line-based network bandwidth monitoring tool, used to get a quick overview of network activities on an interface. It displays network usage bandwidth updates every 2, 10, and 40 seconds on average.
Iftop Display Bandwidth Usage
Install iftop in Linux
3. nload – Displays Network Usage
nload is another simple, easy-to-use command-line tool for monitoring network traffic and bandwidth usage in real-time. It uses graphs to help you monitor inbound and outbound traffic. In addition, it also displays information such as the total amount of transferred data and min/max network usage.
nload – Monitor Network Usage
Install nload in Linux
4. NetHogs – Monitor Network Traffic Bandwidth
NetHogs is a tiny top-like, text-based tool to monitor real-time network traffic bandwidth usage by each process or application running on a Linux system. It simply offers real-time statistics of your network bandwidth usage on a per-process basis.
NetHogs – Monitor Network Usage Per User
Install NetHogs in Linux
5. bmon – Bandwidth Monitor and Rate Estimator
bmon is also a straightforward command-line tool for monitoring network bandwidth utilization and a rate estimator, in Linux. It captures network statistics and visualizes them in a human-friendly format so that you can keep an eye on your system.
Bmon – Bandwidth Monitor and Rate Estimator
Install Bmon in Linux
6. Darkstat – Captures Network Traffic
Darkstat is a small, simple, cross-platform, real-time, efficient web-based network traffic analyzer. It is a network statistics monitoring tool that works by capturing network traffic, computer usage statistics, and serves the reports over HTTP in a graphical format. You can also use it via the command line to get the same results.
Darkstat – Captures Network Traffic
Install Darkstat in Linux
7. IPTraf – An IP Network Monitor
IPTraf is an easy-to-use, ncurses-based and configurable tool for monitoring incoming and outgoing network traffic passing through an interface. It is useful for IP traffic monitoring, and viewing general interface statistics, detailed interface statistics and so much more.
IPTraf – Network Statistics Utility
Install IPTraf in Linux
8. CBM – (Color Bandwidth Meter)
CBM is a tiny command-line utility for displaying current network traffic on all connected devices in colored output in Ubuntu Linux and its derivatives such as Linux Mint, Lubuntu, and many others. It shows each connected network interface, bytes received, bytes transmitted, and total bytes, allowing you to monitor network bandwidth.
CBM – Monitor Network LAN Usage
Install Color Bandwidth Meter in Linux
9. Iperf/Iperf3 – Network Bandwidth Measurement Tool
Iperf/Iperf3 is a powerful tool for measuring network throughput over protocols such as TCP, UDP, and SCTP. It is primarily built to help in tuning TCP connections over a particular path, thus useful for testing and monitoring the maximum achievable bandwidth on IP networks (supports both IPv4 and IPv6).
It requires a server and a client to perform tests (which reports the bandwidth, loss, and other useful network performance parameters).
Iperf3 – Network Performance and Tuning
Install Iperf3 in Linux
10. Netperf – Network Bandwidth Testing
Netperf is similar to iperf, for testing network performance. It can help in monitoring network bandwidth in Linux by measuring data transfer using either TCP, UDP. It also supports measurements via Berkeley Sockets interface, DLPI, Unix Domain Sockets, and so many other interfaces. You need a server and a client to run tests.
Netperf – Network Bandwidth Testing
Install Netperf in Linux
11. SARG – Squid Analysis Report Generator
SARG is a squid log files analyzer and internet bandwidth monitoring tool. It produces useful HTML reports with information including but not limited to IP addresses, and total bandwidth usage. It is a handy tool for monitoring internet bandwidth utilization by individual machines on a single network.
Sarg – Squid Network Analysis Report Generator
For installation instruction and usage, check out our article – How to Install SARG to Monitor Squid Internet Bandwidth Usage.
12. Monitorix – System and Network Monitoring Tool
Monitorix is a lightweight system resources and network monitoring application, designed for small Linux/Unix servers and also comes with amazing support for embedded devices.
It helps you monitor network traffic and usage statistics from an unlimited number of network devices. It supports IPv4 and IPv6 connections include packet traffic and traffic error graphs and supports up to 9 discs per network interface.
Monitorix – System and Network Monitoring Tool
Install Monitorix in Linux
13. Cacti – Network Monitoring and Graphing Tool
Cacti is a fully functional, web-based network graphing PHP application with an intuitive, easy-to-use interface. It uses MySQL database for storing data collected network performance data, used to produce customized graphing. It is a frontend to RRDTool, useful for monitoring small to complex networks with thousands of devices.
Cacti – Network Monitoring and Graphing Tool
For installation instruction and usage, check out our article – Install Cacti (Network Monitoring) on Linux.
14. Observium – Network Monitoring Platform
Observium is a fully-featured network monitoring platform with an elegant and powerful, robust yet simple and intuitive interface. It supports a number of platforms including, Linux, Windows, FreeBSD, Cisco, HP, Dell, and many others, and includes autodetection of devices. It helps users to gather network metrics and offers intuitive graphing of device metrics from collected performance data.
Observium – Network Monitoring Platform
15. Zabbix – Application and Network Monitoring Tool
Zabbix is a feature-rich, commonly used network monitoring platform, designed in a server-client model, to monitor networks, servers, and applications in real-time. It collects different types of data that are used for a visual representation of network performance or load metrics of the monitored devices.
It is capable of working with well-known networking protocols such as HTTP, FTP, SMTP, IMAP, and many more, without the need to install additional software on the monitored devices.
Zabbix – Monitoring Solution for Linux
16. Nagios – Monitors Systems, Networks, and Infrastructure
Nagios is a robust, powerful, feature-rich, and widely used monitoring software. It allows you to monitor local and remote network devices and their services from a single window.
It offers bandwidth monitoring in network devices such as switches and Routers via SNMP thus enabling you to easily find out over-utilized ports, and pinpoint possible network abusers.
In addition, Nagios also helps you to keep an eye on per-port bandwidth utilization and errors and supports fast detection of network outages and protocol failures.
Nagios – IT Infrastructure Monitoring Tool
Summary
In this article, we have reviewed a number of useful network bandwidth and system monitoring tools for Linux. If we’ve missed including any monitoring tool in the list, do share with us in the comment form below.
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
Источник