База знаний

How to Check Internet Speed on CentOS VPS  Распечатать статью

How to Check Internet Speed on VPS Running CentOS

 

Checking the internet speed on a VPS (Virtual Private Server) running CentOS can help you monitor and diagnose connectivity issues. In this guide, we will walk you through the steps to check your internet speed using various tools and commands.

Tutorial: How to Check Internet Speed on a CentOS VPS

Prerequisites

  • Access to a CentOS VPS.
  • A terminal or SSH client to connect to your VPS (e.g., PuTTY, OpenSSH).

Step 1: Connect to Your VPS

  1. Open your terminal or SSH client.
  2. Use SSH to log in to your VPS using the following command (replace username and your_vps_ip with your actual username and VPS IP address):
  3. ssh username@your_vps_ip

Step 2: Update Your System Packages

Make sure that your system packages are up to date. You can do this by running:

sudo yum update -y

Step 3: Install Necessary Tools

There are several tools available to check internet speed. Two common ones are speedtest-cli and iperf. This tutorial will cover both.

Option A: Using speedtest-cli

speedtest-cli is a command-line tool for testing internet bandwidth using Speedtest.net.

  1. Install speedtest-cli:

 

  • sudo yum install -y epel-release
    sudo yum install -y speedtest-cli
  • Run Speed Test:
    After installation, you can simply run:

  1. speedtest
    • This will automatically find the nearest server and perform a speed test, providing you with download and upload speeds along with ping.

Option B: Using iperf

iperf is another tool that can measure the bandwidth between two hosts on a network.

  1. Install iperf:

  • sudo yum install -y iperf
  • Choose a Testing Server:
    You need a server that you can connect to for the test. You can use public iperf servers available online. For this example, let's use iperf.org for testing.

  • Run the Client:
    Start an iperf test without needing a server on your VPS:

    iperf -c iperf.umd.edu
  1. Review the Results:
    The output will display transfer speeds in Mbps along with other information.

Additional Tools

If you want a graphical representation, consider using the nload or iftop commands to monitor network usage.

  1. Install nload:

sudo yum install -y nload

Then run:

  • nload
  • Install iftop:

sudo yum install -y iftop

Run it with:

  1. sudo iftop

You have successfully checked your internet speed on a CentOS VPS using two different tools: speedtest-cli and iperf. Use the one that fits your needs better.

Помог ли вам данный ответ?

Связанные статьи

How To Activate Windows Server 2012 R2 Trial License
Hi Thank you for choosing service from Host4Fun . Go to run > cmd > slmgr.vbs /rearm and...
How to enable ping response on Windows Server 2008
By default Windows Server 2008 firewall blocks ping requests. To enable please follow the...
How to enable ping response on Windows Server 2012
By default Windows Server 2012 firewall blocks ping requests. To enable please follow the below...
How to fix CentOS 6 : YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Hi , Thank you for choosing Service from Host4Fun.Com. When we run command "yum update" on our...
How to fix CentOS 6 error
For Guide Visit :...