linux网络传输状态查询iperf3

1、查看网络带宽

## 安装 iperf3
yum install iperf3 -y

##服务端
iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.46.66, port 59398
[  5] local 192.168.46.67 port 5201 connected to 192.168.46.66 port 59400
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec   354 MBytes  2.97 Gbits/sec
[  5]   1.00-2.00   sec   443 MBytes  3.72 Gbits/sec
[  5]   2.00-3.00   sec   403 MBytes  3.38 Gbits/sec
[  5]   3.00-4.00   sec   428 MBytes  3.59 Gbits/sec
[  5]   4.00-5.00   sec   418 MBytes  3.51 Gbits/sec
[  5]   5.00-6.00   sec   420 MBytes  3.52 Gbits/sec
[  5]   6.00-7.00   sec   441 MBytes  3.70 Gbits/sec
[  5]   7.00-8.01   sec   434 MBytes  3.60 Gbits/sec
[  5]   8.01-9.00   sec   370 MBytes  3.14 Gbits/sec
[  5]   9.00-10.00  sec   395 MBytes  3.31 Gbits/sec
[  5]  10.00-10.03  sec  11.8 MBytes  3.61 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.03  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.03  sec  4.02 GBytes  3.45 Gbits/sec                  receiver


## 客户端
[root@dev ~]# iperf3 -c 192.168.46.67
Connecting to host 192.168.46.67, port 5201
[  4] local 192.168.46.66 port 59400 connected to 192.168.46.67 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   364 MBytes  3.05 Gbits/sec    6   1.39 MBytes
[  4]   1.00-2.00   sec   440 MBytes  3.69 Gbits/sec    0   1.60 MBytes
[  4]   2.00-3.00   sec   410 MBytes  3.44 Gbits/sec    0   1.65 MBytes
[  4]   3.00-4.00   sec   428 MBytes  3.59 Gbits/sec    0   1.82 MBytes
[  4]   4.00-5.00   sec   419 MBytes  3.51 Gbits/sec   17   1.36 MBytes
[  4]   5.00-6.00   sec   419 MBytes  3.51 Gbits/sec    0   1.44 MBytes
[  4]   6.00-7.00   sec   442 MBytes  3.71 Gbits/sec    0   1.65 MBytes
[  4]   7.00-8.00   sec   431 MBytes  3.62 Gbits/sec    0   1.82 MBytes
[  4]   8.00-9.00   sec   372 MBytes  3.13 Gbits/sec   12   1.40 MBytes
[  4]   9.00-10.00  sec   395 MBytes  3.31 Gbits/sec    0   1.54 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  4.02 GBytes  3.46 Gbits/sec   35             sender
[  4]   0.00-10.00  sec  4.02 GBytes  3.45 Gbits/sec                  receiver

iperf Done.

2、查看当前网络传输量

yum install -y epel-release && yum install -y nload

## 查看网卡流量

nload ens33
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值