2960G 查看端口的使用情况

需要盘点下各个交换机端口的使用情况,除了通过 HTTPS 的方式查看(信息量较少),命令行下也可以查看,个人觉得更加方便。

下面几条命令都是通过 ? 获取到的,意思很简单,做个记录,不一条条解释了:
#show interfaces status
Port      Name               Status       Vlan       Duplex  Speed Type
Gi0/1                        notconnect   2            auto   auto 10/100/1000BaseTX
Gi0/2                        connected    2          a-full  a-100 10/100/1000BaseTX

Gi0/24                       connected    2          a-full a-1000 10/100/1000BaseTX
Gi0/25                       connected    2          a-full a-1000 10/100/1000BaseTX
Gi0/26                       notconnect   2            auto   auto 10/100/1000BaseTX
Gi0/27                       connected    3          a-full a-1000 10/100/1000BaseTX
Gi0/28                       connected    3          a-full a-1000 10/100/1000BaseTX

Gi0/44                       notconnect   3            auto   auto 10/100/1000BaseTX
Gi0/45                       notconnect   3            auto   auto Not Present
Gi0/46                       notconnect   3            auto   auto Not Present
Gi0/47                       connected    trunk      a-full a-1000 10/100/1000BaseTX
Gi0/48                       connected    trunk      a-full a-1000 10/100/1000BaseTX

#show interfaces vlan 2
Vlan2 is up, line protocol is up
  Hardware is EtherSVI, address is d0c3.8232.2821 (bia 22c2.2222.d821)
  Internet address is 192.168.10.1/24

     1562340 packets input, 117523472 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     858410 packets output, 88732550 bytes, 0 underruns
     0 output errors, 0 interface resets
     0 output buffer failures, 0 output buffers swapped out

#show innterfaces stats

Vlan3
          Switching path    Pkts In   Chars In   Pkts Out  Chars Out
               Processor   59297791 3802436103    7386173  998751156
             Route cache          0          0          0          0
                   Total   59297791 3802436103    7386173  998751156
GigabitEthernet0/1
          Switching path    Pkts In   Chars In   Pkts Out  Chars Out
               Processor          0          0          0          0
             Route cache          0          0          0          0
                   Total          0          0          0          0
GigabitEthernet0/2
          Switching path    Pkts In   Chars In   Pkts Out  Chars Out
               Processor          0          0    9290643  698491538
             Route cache          0          0          0          0
                   Total          0          0    9290643  698491538

#show interfaces summary
 *: interface is up
 IHQ: pkts in input hold queue     IQD: pkts dropped from input queue
 OHQ: pkts in output hold queue    OQD: pkts dropped from output queue
 RXBS: rx rate (bits/sec)          RXPS: rx rate (pkts/sec)
 TXBS: tx rate (bits/sec)          TXPS: tx rate (pkts/sec)
 TRTL: throttle count

  Interface               IHQ   IQD  OHQ   OQD  RXBS RXPS  TXBS TXPS TRTL
————————————————————————-
  Vlan1                    0     0    0     0     0    0     0    0    0
* Vlan2                    0     0    0     0     0    0     0    0    0
* Vlan3                    0     0    0     0  4000    7  3000    2    0
  GigabitEthernet0/1       0     0    0     0     0    0     0    0    0
* GigabitEthernet0/2       0     0    0     0     0    0     0    0    0

  GigabitEthernet0/26      0     0    0     0     0    0     0    0    0
* GigabitEthernet0/27      0     0    0  4276 111000    5  4000    6    0

#show interfaces trunk
Port        Mode             Encapsulation  Status        Native vlan
Gi0/47      on               802.1q         trunking      1
Gi0/48      on               802.1q         trunking      1

Port        Vlans allowed on trunk
Gi0/47      1-4094
Gi0/48      1-4094

Port        Vlans allowed and active in management domain
Gi0/47      1-3
Gi0/48      1-3

Port        Vlans in spanning tree forwarding state and not pruned
Gi0/47      1-3
Gi0/48      1-3