如何用命令查看linux的网卡吞吐量或最大网
发布网友
发布时间:2022-05-16 19:04
我来回答
共1个回答
热心网友
时间:2023-11-24 13:27
ip -s link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
link/ether 00:0c:29:b7:e0:5d brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
2607102 11333 0 0 0 0
TX: bytes packets errors dropped carrier collsns
228349 1990 0 0 0 0
看实时的 装 speedometer 2.8 shell下图形实时流量
yum install -y python-urwid wget
wget http://excess.org/speedometer/speedometer-2.8.tar.gz
tar -zxvvf speedometer-2.8.tar.gz
cd speedometer-2.8
cp speedometer.py /usr/local/bin/speedometer
cd ~
chown root: /usr/local/bin/speedometer
chmod 755 /usr/local/bin/speedometer
speedometer -rx ens33 -rx ens33
(ens33 是网卡 用 ip link 命令可以看到 把ens33 换成自己的网卡)
speedometer -rx ens33 -c -rx ens33