h3c查在线计算机,H3C 交换机查看所有端口状态的命令
想看一下8樓交換機所有端口的狀態,因為有兩臺嘛,不確定是哪臺,一臺插得網口多,一臺插得少。交換機是H3C的,以前在思科的交換機上有個很好用的命令:show ip in br ,H3C應該是 dis ip in br,發現不行,就只出現了VLAN信息,沒有端口信息。
原來H3C下應該是 dis in br,但顯示出來的也不對啊!后來發現是后面的“br”不對,這個應該補全為:brief,不然它是:Bridge-Aggregation,所以不對嘛!執行效果如下:
dis interface brief
The brief information of interface(s) under route mode:
Link: ADM – administratively down; Stby – standby
Protocol: (s) – spoofing
Interface Link Protocol Main IP Description
M-GE0/0/0 DOWN DOWN –
NULL0 UP UP(s) –
Vlan1 DOWN DOWN –
Vlan2000 UP UP 172.16.1.45
The brief information of interface(s) under bridge mode:
Link: ADM – administratively down; Stby – standby
Speed or Duplex: (a)/A – auto; H – half; F – full
Type: A – access; T – trunk; H – hybrid
Interface Link Speed Duplex Type PVID Description
BAGG6 DOWN auto A T 1
GE1/0/1 DOWN auto A A 801
GE1/0/2 UP 1G(a) F(a) A 801
GE1/0/3 UP 1G(a) F(a) A 801
GE1/0/4 DOWN auto A A 801
GE1/0/5 UP 100M(a) F(a) A 801
GE1/0/6 UP 10M(a) F(a) A 801
GE1/0/7 DOWN auto A A 801
GE1/0/8 DOWN auto A A 801
GE1/0/9 DOWN auto A A 801
GE1/0/10 DOWN auto A A 801
GE1/0/11 DOWN auto A A 801
GE1/0/12 DOWN auto A A 801
GE1/0/13 DOWN auto A A 801
GE1/0/14 DOWN auto A A 801
GE1/0/15 UP 100M(a) F(a) A 801
GE1/0/16 UP 1G(a) F(a) A 801
GE1/0/17 UP 1G(a) F(a) A 801
GE1/0/18 DOWN auto A A 801
GE1/0/19 DOWN auto A A 801
GE1/0/20 DOWN auto A A 801
后來我發現還有個命令也可以查看所有的端口狀態:dis port-security。顯示如下:
dis port-security
Equipment port-security is disabled
Trap is disabled
AutoLearn aging time is 0 minutes
Disableport Timeout: 20s
OUI value:
GigabitEthernet1/0/1 is link-down
GigabitEthernet1/0/2 is link-up
GigabitEthernet1/0/3 is link-up
GigabitEthernet1/0/4 is link-down
GigabitEthernet1/0/5 is link-up
GigabitEthernet1/0/6 is link-up
GigabitEthernet1/0/7 is link-down
GigabitEthernet1/0/8 is link-down
GigabitEthernet1/0/9 is link-down
GigabitEthernet1/0/10 is link-down
GigabitEthernet1/0/11 is link-down
GigabitEthernet1/0/12 is link-down
GigabitEthernet1/0/13 is link-down
GigabitEthernet1/0/14 is link-down
GigabitEthernet1/0/15 is link-up
GigabitEthernet1/0/16 is link-up
GigabitEthernet1/0/17 is link-up
GigabitEthernet1/0/18 is link-down
GigabitEthernet1/0/19 is link-down
GigabitEthernet1/0/20 is link-down
以下為網絡轉載:
大家都知道交換機的端口都是比較多,當你想查看某些端口狀態(是處于UP還是DOWN狀態)時,通常我們會使用以下命令:
思科:show interface X
H3C:display interface X
注:X表代端口號,如e1/0/1之類的。
但如果當交換機的端口非常多時,而且你想知道所有端口的狀態時,你再一條一條命令輸進去,那是相當累人的,同時輸出的結果也過于詳細,看得人眼花繚亂。
如何有效的查看所有端口的狀態呢?我們可以使用以下命令:
思科:show ip interface brief
H3C:display interface brief
華為的交換機好像沒有什么命令能實現這種功能。
總結
以上是生活随笔為你收集整理的h3c查在线计算机,H3C 交换机查看所有端口状态的命令的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 大学人机交互课小组作业(刚入坑菜鸟一枚,
- 下一篇: Android 打开手机淘宝,并自动识别