FAQ-如何查看接口流量为多少

发布时间:  2015-02-13 浏览次数:  236 下载次数:  0
问题描述
Q:如何查看接口流量为多少
解决方案
A:
display interface命令用来查看接口当前运行状态、接口基本配置和报文通过接口的转发情况。

根据speed显示的当前速率以及Input bandwidth utilization/ Output bandwidth utilization的输入输出带宽占用可以得知端口流量情况。

<HUAWEI> display interface gigabitethernet 1/0/1
GigabitEthernet 1/0/1 current state : UP                                      
Line protocol current state : UP                                             
Description:                                                                  
Switch Port, PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216   
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0025-9ef4-abcd
Last physical up time   : -                                                    
Last physical down time : 2012-05-24 21:01:26                                  
Current system time: 2012-06-05 18:56:41                                       
Port Mode: COMMON FIBER                                                        
Speed : 1000,  Loopback: NONE               //Speed 1000表示接口当前速率为 1000M
Duplex: FULL,  Negotiation: ENABLE                                             
Mdi   : NORMAL                                                                 
Last 300 seconds input rate 0 bits/sec, 0 packets/sec     //接口在前5分钟接收的字节速率和报文速率。
Last 300 seconds output rate 0 bits/sec, 0 packets/sec    //接口在前5分钟发送的字节速率和报文速率。
Input peak rate 0 bits/sec, Record time: -                                     
Output peak rate 0 bits/sec, Record time: -                                    
                                                                               
Input:  0 packets, 0 bytes                                                     
  Unicast:                          0,  Multicast:                           0 
  Broadcast:                        0,  Jumbo:                               0 
  Discard:                          0,  Pause:                               0 
 
  Total Error:                      0
  CRC:                              0,  Giants:                              0 
  Jabbers:                          0,  Fragments:                           0 
  Runts:                            0,  DropEvents:                          0 
  Alignments:                       0,  Symbols:                             0 
  Ignoreds:                         0,  Frames:                              0 
                                                                               
Output:  0 packets, 0 bytes                                                    
  Unicast:                          0,  Multicast:                           0 
  Broadcast:                        0,  Jumbo:                               0 
  Discard:                          0,  Pause:                               0 
 
  Total Error:                      0                                          
  Collisions:                       0,  ExcessiveCollisions:                 0 
  Late Collisions:                  0,  Deferreds:                           0 
  Buffers Purged:                   0               
                                                                               
    Input bandwidth utilization threshold : 100.00%       //输入带宽占用率阈值。
    Output bandwidth utilization threshold: 100.00%       //输出带宽占用率阈值。
    Input bandwidth utilization  :    0%                  //输入带宽占用率。
    Output bandwidth utilization :    0%                  //输出带宽占用率。也可以通过display interface brief | include up查看接口的输入输出带宽情况。

[HUAWEI]display interface Ethernet brief | include up  
……
InUti/OutUti: input utility/output utility                                     
Interface                   PHY   Auto-Neg Duplex Bandwidth  InUti OutUti Trunk
Ethernet0/0/0               up    enable   full        100M  0.01%  0.01%    --
Ethernet5/0/3               up    enable   full        100M     0%     0%    --
Ethernet5/0/4               up    enable   full        100M     0%     0%    --
Ethernet5/0/5               up    enable   full        100M     0%     0%    -- 

END