H3C常用命令詳解


                           H3C常用命令詳解

                                            作者:尹正傑

版權聲明:原創作品,謝絕轉載!否則將追究法律責任。

 

1.關閉后台日志輸出

<yinzhengjie>sys

[yinzhengjie]undo info-center enable 

2.查看設備IOS版本信息,設備啟動時間,接口卡信息

<yinzhengjie>display version 

3.查看全局配置信息

<yinzhengjie>display current-configuration  #當前配合信息(即時信息),當設備斷電或重啟后丟失

<yinzhengjie>display saved-configuration    #查看配置看start-config配置文件,該配置永久保存,斷電重啟后加載該文件,注意,華為設備會默認保存到vrpcfg.zip這個文件中。

4.查看設備所有接口的相關信息(包括IP,物理層,鏈路層協議狀態等)

[yinzhengjie]display ip interface brief 

<yinzhengjie>display interface Ethernet 0/0/0   #查看單個接口信息

5.查看H3C設備硬盤空間大小,及存儲數據信息

<yinzhengjie>dir

6.給一個接口配置IP地址

<yinzhengjie>system-view 
Enter system view, return user view with Ctrl+Z.
[yinzhengjie]interface Eth0/0/0
[yinzhengjie-Ethernet0/0/0]ip address 172.30.100.1 24    #這個也可以這樣配置:[yinzhengjie-Ethernet0/0/0]ip address 172.30.100.1  255.255.255.0
[yinzhengjie-Ethernet0/0/0]undo shutdown 
Info: Interface Ethernet0/0/0 is not shutdown.
[yinzhengjie-Ethernet0/0/0]

 

7.查看路由表信息

<yinzhengjie>display ip routing-table

8.查看歷史命令記錄

<yinzhengjie>display history-command 

9.用戶模式下配置系統時間 

<yinzhengjie>clock datetime 0:26:30 2017-4-10
<yinzhengjie>display clock 
2017-04-10 00:26:42-08:00
Monday
Time Zone(China-Standard-Time) : UTC-08:00
<yinzhengjie>

10.命令行編輯功能

11.顯示系統運行統計信息

<yinzhengjie>display diagnostic-information

12.查看IP路由表摘要信息

[yinzhengjie]display ip routing-table

 1 [yinzhengjie]display ip routing-table 
 2 Route Flags: R - relay, D - download to fib
 3 ------------------------------------------------------------------------------
 4 Routing Tables: Public
 5          Destinations : 2        Routes : 2        
 6 
 7 Destination/Mask(目的地址)    Proto(路由協議)   Pre(優先級)  Cost(代價值)      Flags     NextHop (下一跳地址)        Interface
 8 
 9       127.0.0.0/8                Direct(直連)          0            0                   D       127.0.0.1                       InLoopBack0
10       127.0.0.1/32            Direct                  0               0                   D       127.0.0.1                       InLoopBack0
11 
12 [yinzhengjie]
13 
14 關於協議擴充:
15     1>.Direct(直連)
16     2>.Static(靜態路由)
17     3>.Rip(動態路由)
18     4>.O_ASE(OSPF)
display ip routing-table 輸出詳解

13.查看符合指定目的地址的路由信息

[yinzhengjie]display ip routing-table  127.0.0.1 

14.查看路由表的統計信息

[yinzhengjie]display ip routing-table statistics 

15.查看OSPF配置信息

<yinzhengjie>display ospf brief 

16.查看OSPF允許了哪些接口

<yinzhengjie>display ospf interface 

17.

 

18.

19.

20.

21.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM