1. # iptraf -g //这个最直观
2. iperf Iperf 是一个网络性能测试工具。Iperf可以测试最大TCP和UDP带宽性能。Iperf具有多种参数和UDP特性,可以根据需要调整。Iperf可以报告带宽,延迟抖动和数据包丢失
TCP:
server(pc): iperf -s -i 1
client(ls1b): iperf -t 20 -i 1 -c 192.168.1.167 (pc-ip)
UDP:
server(pc): iperf -u -s -i 1
client(ls1b): iperf -t 10 -i 1 -u -b 1000M -c 192.168.1.90
3. # ifconfig -a
eth0:Link encap:Ethernet HWaddr 00:1e:64:63:ab:fe
inet addr:192.168.3.103 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::21e:64ff:fe63:abfe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:70283 errors:0 dropped:0 overruns:0 frame:0
TX packets:46701 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:73276012 (73.2 MB) TX bytes:6267375 (6.2 MB)
4. # mii-tool -w -v //更详细的用法 man mii-tool
5. ethtool是用来显示和更改网卡设置的工具 更详细的用法 man ethtool
# ethtool eth0 //显示网络端口设置功能
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: Not reported
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: no
# ethtool -i eth0 //显示跟硬件相关的信息
driver: r8169
version: 2.3LK-NAPI
firmware-version:
bus-info: 0000:05:00.0
6. # watch -n 1 "/sbin/ifconfig eth0 | grep bytes"
阅读(1124) | 评论(0) | 转发(0) |