Chinaunix首页 | 论坛 | 博客
  • 博客访问: 335854
  • 博文数量: 124
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 321
  • 用 户 组: 普通用户
  • 注册时间: 2014-08-04 16:09
文章分类

全部博文(124)

文章存档

2014年(124)

分类: 网络与安全

2014-08-06 14:11:57

原文地址:linux 查询网卡速率 作者:yuyunliuhen

1 $ifconfig

点击(此处)折叠或打开

  1. [root@localhost tinynet]# ifconfig
  2. eth1 Link encap:Ethernet HWaddr 00:0C:29:15:0C:8F
  3.           inet addr:192.168.22.61 Bcast:192.168.22.255 Mask:255.255.255.0
  4.           inet6 addr: fe80::20c:29ff:fe15:c8f/64 Scope:Link
  5.           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  6.           RX packets:21837690 errors:0 dropped:0 overruns:0 frame:0
  7.           TX packets:25586224 errors:0 dropped:0 overruns:0 carrier:0
  8.           collisions:0 txqueuelen:1000
  9.           RX bytes:5981318187 (5.5 GiB) TX bytes:3560555762 (3.3 GiB)

  10. lo Link encap:Local Loopback
  11.           inet addr:127.0.0.1 Mask:255.0.0.0
  12.           inet6 addr: ::1/128 Scope:Host
  13.           UP LOOPBACK RUNNING MTU:16436 Metric:1
  14.           RX packets:43294922 errors:2751 dropped:2751 overruns:0 frame:0
  15.           TX packets:43294922 errors:0 dropped:0 overruns:0 carrier:0
  16.           collisions:0 txqueuelen:0
  17.           RX bytes:3836215850 (3.5 GiB) TX bytes:3836215850 (3.5 GiB)

2 $ethtool eth1

点击(此处)折叠或打开

  1. [root@localhost tinynet]# ethtool eth1
  2. Settings for eth1:
  3.         Supported ports: [ TP ]
  4.         Supported link modes: 10baseT/Half 10baseT/Full
  5.                                 100baseT/Half 100baseT/Full
  6.                                 1000baseT/Full
  7.         Supported pause frame use: No
  8.         Supports auto-negotiation: Yes
  9.         Advertised link modes: 10baseT/Half 10baseT/Full
  10.                                 100baseT/Half 100baseT/Full
  11.                                 1000baseT/Full
  12.         Advertised pause frame use: No
  13.         Advertised auto-negotiation: Yes
  14.         Speed: 1000Mb/s
  15.         Duplex: Full
  16.         Port: Twisted Pair
  17.         PHYAD: 0
  18.         Transceiver: internal
  19.         Auto-negotiation: on
  20.         MDI-X: Unknown
  21.         Supports Wake-on: d
  22.         Wake-on: d
  23.         Current message level: 0x00000007 (7)
  24.                                drv probe link
  25.         Link detected: yes

一般来说,1000Mb的单位是bit,而不是byte,所以网卡流量的上限应该是1000Mb/8=125M.


阅读(1018) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~