如何知道 Cisco 交换机上的接口利用率?

网络工程 思科 转变 cisco 命令 带宽 界面
2021-07-23 03:33:59

我想确认一下。以下粗体信息是否足以了解我的界面使用百分比?

Switch#sho int fa0/8  
FastEthernet0/8 is up, line protocol is up (connected)  
  Hardware is Fast Ethernet, address is 001c.b1b8.1808 (bia 001c.b1b8.1808)  
  Description: connected to RICI_1E1  
  MTU 1500 bytes, BW 2048 Kbit, DLY 100 usec,  
     reliability 255/255, txload 23/255, rxload 22/255  
  Encapsulation ARPA, loopback not set  
  Keepalive set (10 sec)  
  Full-duplex, 100Mb/s, media type is 10/100BaseTX  
  input flow-control is off, output flow-control is unsupported  
  ARP type: ARPA, ARP Timeout 04:00:00  
  Last input 00:00:00, output 00:00:00, output hang never  
  Last clearing of "show interface" counters never  
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0  
  Queueing strategy: fifo  
  Output queue: 0/0 (size/max)  
  5 minute input rate 12329000 bits/sec, 1707 packets/sec  
  5 minute output rate 2933000 bits/sec, 1331 packets/sec  
     6694535692 packets input, 5277030343947 bytes, 0 no buffer  
     Received 1079534037 broadcasts (145728815 multicasts)  
     0 runts, 0 giants, 0 throttles  
     83072 input errors, 83072 CRC, 0 frame, 0 overrun, 0 ignored  
     0 watchdog, 145728815 multicast, 0 pause input  
     0 input packets with dribble condition detected  
     4448677146 packets output, 1162660273701 bytes, 0 underruns  
     0 output errors, 0 collisions, 1 interface resets  
     0 babbles, 0 late collision, 0 deferred  
     0 lost carrier, 0 no carrier, 0 PAUSE output  
     0 output buffer failures, 0 output buffers swapped out  
Switch#  

利用率输入 = (inputRate/BW)*100
利用率输出 = (inputRate/BW)*100

1个回答

您正在查看的是过去五分钟的比特率。您可以使用命令更改时间段,但不能低于 30 秒load-interval

我不确定你所说的“利用”是什么意思。看起来您想要一个百分比,但您想出的百分比将在特定时间段内。如果您获得 40%,则您的界面可能在五分钟中有两分钟处于 100%,并且完全空闲三分钟。

编辑:

我想我明白你哪里错了。看起来有人bandwidth在界面上使用了该命令,并且显示在您的show interfaces输出中。该命令并没有真正改变接口上的带宽;它允许诸如 QoS 之类的特性将其用作计算的基础,但实际接口带宽不受影响。