1.查看全局配置
[h3c]display
2.查看接口狀態(tài)
【新系統(tǒng)】
[h3c]display interface brief
【老系統(tǒng)】
[h3c]display brief interface
3.查看IP接口信息
[h3c]display ip interface brief
4.查看ARP表
[h3c]display arp
[h3c]display arp | include *
*為所需檢索的關(guān)鍵字(IP或mac地址等)
5.查看交換機(jī)信息
[h3c]display version
6.查看MAC地址
[h3c]display mac-address
[h3c]display mac-address *
*為所檢索的mac地址
7.查看路由表
[h3c]display ip routing-table
8.查看日志
[h3c]display logbuffer
9.查看系統(tǒng)時(shí)間
[h3c]display clock
10.查看交換機(jī)型號(hào)及SN碼
[h3c]display device manuinfo
11.進(jìn)入配置模式
<h3c>system-view
[h3c]
12.進(jìn)入接口
[h3c]interface g1/0/1
一般來說【百兆口e1/0/1】【千兆g1/0/1】【萬兆ten1/0/1】
13.進(jìn)入一組接口
[h3c]interface range g1/0/1 to g1/0/5
14.設(shè)置接口為ACCESS
[h3c-GigabitEthernet1/0/1]port link-type access
15.設(shè)置ACCESS口的VLAN
[h3c-GigabitEthernet1/0/1]port access vlan 999
16.設(shè)置接口為TRUNK
[h3c-GigabitEthernet1/0/1]port link-type trunk
17.使得TRUNK口對VLAN放行
[h3c-GigabitEthernet1/0/1]port trunk permit vlan *
*vlan all 就是對所有vlan放行迂尝,trunk 上行下行都要注意是否放開科贬。
18.POE開啟/關(guān)閉
[h3c-GigabitEthernet1/0/1]poe enable
[h3c-GigabitEthernet1/0/1]undo poe enable
19.關(guān)閉/開啟接口
[h3c-GigabitEthernet1/0/25]shutdown
[h3c-GigabitEthernet1/0/25]undo shutdown
20.關(guān)閉/開啟實(shí)時(shí)日志(user view下)
<h3c>terminal monitor
<h3c>undo terminal monitor
21.查看存在的相連交換機(jī)信息
[h3c]dis lldp neighbor-information