environment : This test environment is CentOS7_x86_64
Method 1 :
1, Common commands for testing network bandwidth ( Including installation and use )
yum -y install iperf
2, Remember to turn off the firewall or configure the firewall rules by yourself during the test , For quick testing , Close the firewall directly here
systemctl stop firewalld
3, Installation completed iperf after , stay Server End execution
iperf -s -i 1 -f m
-s express server,-i Indicates the display interval ,-f Indicates the units of display formatting
4, stay Client Execute the following commands at the end
iperf -c 10.241.18.1 -i 1 -t 30 -f m
-c Represent client , Followed by server Address of ,-t Represents the time of operation
Method II :
use speedtest-cli command .
1, install speedtest-cli
yum –y install python-pip
pip install speedtest-cli
2, Test bandwidth
three , View network card , Network conditions
1, use nload Command view
yum -y install nload
2, see eth0 Network card network condition
nload eth0
Incoming That is, the traffic entering the network card ,Outgoing, That is, the traffic from this network card , Each part has the following .
– Curr: Current flow
– Avg: Average flow
– Min: Minimum flow
– Max: Maximum flow
– Ttl: Total flow
nload The default is eth0 network card , If you want to monitor eth1 Network card traffic , You can use the following command
nload -m
3, use iftop Command view
yum -y install iftop
4, use iftop Command test
iftop
5, use nethogs Command to view the network usage of each process
yum -y install nethogs
6, use nethogs Command to view the network usage of the process
nethogs
The above are just some common commands for personal work , I hope you can give me more advice on the shortcomings .
Technology