vnStat – Network Traffic Monitor

vnStat is a console-based network traffic monitor that keeps a log of network traffic for...

Networking Tools Linux Open Source

vnStat is a console-based network traffic monitor that keeps a log of network traffic for selected interfaces. It uses kernel-provided interface statistics, making it lightweight and suitable for servers without affecting network performance. Data persists across reboots for long-term tracking.

Key Features

  • Low Resource Usage – Uses kernel statistics
  • Historical Data – Hourly, daily, monthly, yearly stats
  • Persistent Storage – Data survives reboots
  • Image Output – Generate traffic graphs

Installation

sudo apt install vnstat    # Debian/Ubuntu
sudo dnf install vnstat    # Fedora/RHEL

# Enable and start service
sudo systemctl enable --now vnstat

Basic Usage

# View traffic summary
vnstat

# Hourly statistics
vnstat -h

# Daily statistics
vnstat -d

# Monthly statistics
vnstat -m

# Live monitoring
vnstat -l

# Specific interface
vnstat -i eth0

Download vnStat

Was this article helpful?