文档章节

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

没有更多内容

加载失败,请刷新页面

加载更多

OSChina 周三乱弹 —— 有一天考拉麻麻拉肚子了

Osc乱弹歌单(2018)请戳(这里) 【今日歌曲】 @瘟神灬念 :分享周汇洋的单曲《Man Srae(曼斯拉之舞)》:美滋滋。。。。 手机党少年们想听歌,请使劲儿戳(这里) 我听了一下 赶紧关了, ...

小小编辑
51分钟前
23
4
oh-my-zsh 自定义

GitHub 地址 基于 oh-my-zsh 的自定义配置,增加了一些个人常用插件与皮肤。 采用的是 git submodule 来维护,包括 oh-my-zsh,之所以这么搞,主要是手头有多台 linux 需要维护, 每台机器、...

郁也风
今天
6
0
Docker安装踩坑:E_FAIL 0x80004005的解决

参考 菜鸟教程--Windows Docker 安装 http://www.runoob.com/docker/windows-docker-install.html 官方文档-Install Docker Toolbox on Windows https://docs.docker.com/toolbox/toolbox_in......

karma123
今天
6
0
js垃圾回收机制和引起内存泄漏的操作

JS的垃圾回收机制了解吗? Js具有自动垃圾回收机制。垃圾收集器会按照固定的时间间隔周期性的执行。 JS中最常见的垃圾回收方式是标记清除。 工作原理:是当变量进入环境时,将这个变量标记为“...

Jack088
昨天
18
0
大数据教程(10.1)倒排索引建立

前面博主介绍了sql中join功能的大数据实现,本节将继续为小伙伴们分享倒排索引的建立。 一、需求 在很多项目中,我们需要对我们的文档建立索引(如:论坛帖子);我们需要记录某个词在各个文...

em_aaron
昨天
27
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部