文档章节

Installing iperf on CentOS

天马行空的鱼
 天马行空的鱼
发布于 2017/09/07 14:21
字数 456
阅读 9
收藏 0

I ran yum install iperf to install the network bandwidth test tool Iperf on a CentOS 7 system, but was informed "No package iperf available."

When I checked the package repositories that were in use on another system that had iperf installed by using the command yum repolist, I found the following:

When I checked the repository that had been used for the installation of Iperf on that other system, I saw it was the epel repository.

You can use yum provides pkgname or yum whatprovides pkgname to see package information for pkgname and also the repository from which the package was obtained.

When I checked the repositories in use on the system where yum install iperf did not install iperf, I found it had only the default repositories and did not have the epel repository.

The Extra Packages for Enterprise Linux (EPEL) is a "community approved" repository, which is listed on the CentOS wiki under Available Repositories for Linux, which notes that though community repositories are not associated with the CentOS project, that "These repositories are frequently recommended by the community, are usually well maintained, and provide a substantial number of additional packages to CentOS." The wiki also notes:

Extra Packages for Enterprise Linux (EPEL) - (See http://fedoraproject.org/wiki/EPEL) provides rebuilds of Fedora packages for EL5, EL6 and EL7. Packages should not replace base, although there have been issues around point releases in the past. You can install EPEL by running yum install epel-release. The epel-release package is included in the CentOS Extras repository that is enabled by default. Support available on Freenode in #epel, on mailing lists, and its issue tracker.

On the system where the EPEL repo was in use, I found the following in /etc/yum.repos.d:

The system where the EPEL repository wasn't used had only the following files in the same directory:

I installed the EPEL repository on that system with yum install epel-release. I was then able to install iperf on that system with yum install iperf and was then able to run iperf in server mode on the system.

I ran iperf -c 192.168.18.44 on another system to use iperf on the other system in client mode to test the bandwidth between the two systems. On the server end, i.e., the system where I just installed iperf and ran the iperf -s command, I saw the following:

You may have to create a firewall rule on the system functioning as an iperf server. For CentOS 7 systems, the default firewall software is firewalld. The default port used by iperf is 5001, so you will need to open that port in the firewall for both UDP and TCP, if you wish to use both protocols.

本文转载自:http://support.moonpoint.com/os/unix/linux/centos/iperf-install.php

共有 人打赏支持
天马行空的鱼
粉丝 8
博文 54
码字总数 31978
作品 0
QA/测试工程师
容器服务里限制应用的带宽

容器场景下,一个标准的需求就是限制容器能够使用的最大资源,在Kubernetes里,我们可以很方便的设置一个容器能使用的最大内存,也能限制容器能分配到的CPU。然而容器使用的资源不光CPU和内存...

太公
01/21
0
0
Iperf 简单试验报告

实验环境: --服务器1. hadoop6 (CentOS 6.5 X64) --PC1: 自己的PC(iperf 有windows 版本) --服务器2. hadoop1 (CentOS 6.5 X64) 下载: https://iperf.fr/iperf-download.php (ipe......

Willson_luo
2015/08/31
134
0
SylixOS网络性能测试

1.应用场景 在进行一些研究和开发时经常需要对网络性能进行测试,iperf是一款非常出色的网络性能测试工具,它拥有多个参数,可以测量TCP和UDP的带宽,延时抖动以及丢包率。SylixOS支持iperf...

诸葛一帆丶
2017/05/16
0
0
SylixOS网络性能测试

1.应用场景 在进行一些研究和开发时经常需要对网络性能进行测试,iperf是一款非常出色的网络性能测试工具,它拥有多个参数,可以测量TCP和UDP的带宽,延时抖动以及丢包率。SylixOS支持iperf...

诸葛一帆丶
2017/05/16
0
0
SylixOS网络性能测试

1.应用场景 在进行一些研究和开发时经常需要对网络性能进行测试,iperf是一款非常出色的网络性能测试工具,它拥有多个参数,可以测量TCP和UDP的带宽,延时抖动以及丢包率。SylixOS支持iperf...

诸葛一帆丶
2017/05/16
0
0

没有更多内容

加载失败,请刷新页面

加载更多

TypeScript基础入门之JSX(一)

转发 TypeScript基础入门之JSX(一) 介绍 JSX是一种可嵌入的类似XML的语法。 它旨在转换为有效的JavaScript,尽管该转换的语义是特定于实现的。 JSX在React框架中越来越受欢迎,但此后也看到了...

durban
35分钟前
0
0
JavaScript使用原型判断对象类型

1. constructor属性 在JavaScript创建对象(二)——构造函数模式中,我们说过可以使用对象的constructor属性判断对象的类型:p1.constructor === Person,可能当时就有细心的读者会想,我们...

Bob2100
36分钟前
1
0
10-《深度拆解JVM》JVM是怎么实现invokedynamic的?(下)

一、问题引入 上回讲到,为了让所有的动物都能参加赛马,Java 7 引入了 invokedynamic 机制,允许调用任意类的“赛跑”方法。不过,我们并没有讲解 invokedynamic,而是深入地探讨了它所依赖...

飞鱼说编程
57分钟前
2
0
457. Circular Array Loop

Description Difficulty : Medium You are given an array of positive and negative integers. If a number n at an index is positive, then move forward n steps. Conversely, if it's n......

52iSilence7
今天
1
0
MySQL SQL 常见用法

某字段重复记录 select a.fieldA from tableA a group by a.fieldA having count(a.fieldA)>1;==select * from (select a.fieldA, count(1) as faCount from tableA a group......

园领T
今天
1
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部