Linux测试网速
super
2020-11-11 18:38

查看当前网络流量状态:
使用nload
ubuntu安装:
sudo apt install nload
CentOS安装:
sudo yum install nload
查看网络流量:
nload
Incoming也就是进入网卡的流量,Outgoing,也就是从这块网卡出去的流量,每一部分都有下面几个。
- Curr:当前流量
- Avg:平均流量
- Min:最小流量
- Max:最大流量
- Ttl:总流量
nload默认的是eth0网卡,如果你想监测eth1网卡的流量,可以使用下面的命令
nload eth1
同时查看多个网卡的流量情况
nload -m
使用speedtest-cli测速:
1)安装pip
ubuntu:
apt-get install python-pip
CentOS:
yum install python-pip
2)安装speedtest-cli
pip install speedtest-cli

3)使用
speedtest-cli

4)外网速度测试
[root@super ~]# speedtest-cli --list | grep China
29353) wuhan hello 5G (Wuhan, China) [922.18 km]
26352) China Telecom JiangSu 5G (Nanjing, China) [1176.96 km]
51442) China Mobile 5G (ChangZhou, China) [1204.95 km]
17320) China Mobile JiangSu 5G (ZhenJiang, China) [1220.20 km]
[root@super ~]# speedtest-cli --server=26352
注:--share参数可生成分享图片


1 条讨论