Chinaunix首页 | 论坛 | 博客
  • 博客访问: 55618
  • 博文数量: 11
  • 博客积分: 47
  • 博客等级: 民兵
  • 技术积分: 87
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-10 10:24
个人简介

不学无术

文章分类

全部博文(11)

文章存档

2015年(8)

2013年(1)

2012年(2)

我的朋友

分类: LINUX

2013-06-25 10:57:32

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"  
阅读(1079) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~