VRP (Versatile Routing Platform)即通用路由平臺,是華為在通信領域多年的研究經驗結晶,是華為所有基于IP/ATM構架的數據通信產品操作系統平臺。運行VRP操作系統的華為產品包括
路由器、局域網
交換機、ATM
交換機、撥號訪問
服務器、IP電話網關、電信級綜合業務接入平臺、智能業務選擇網關,以及專用硬件
防火墻等。華為的產品在市場上非常的受歡迎,但是產品售后服務依舊存在一些問題,我們作為一個已有華為通信設備環境的網絡工程師維護設備時最要具備的命令知識還有很多的人不太清楚。
一、如何通過console口連接路由器
用Console線纜(RJ45轉RJ232)將筆記本連接到路由器的CON/AUX口,然后通過第三方SecureCRT軟件進行連接(現在Win7系統更新之后就沒有系統自帶的終端仿真軟件),如下圖:
連接成功后,是時候展現你真正技術的時候了(伊澤瑞爾^_^不懂地忽略括號內容)。
實驗拓撲圖如下(此處開始在eNSP模擬環境下寫文):
輸入"?"回車可以看到全局模式下可用的所用命令;
輸入"system-view"回車后再輸入"?"將是系統視圖下所有可用的命令;
輸入"display ?"回車可以看到設備所有以dis開頭的命令。如果你對英語熟練,那你學習起來將更快。
如:display version //
顯示設備版本號、型號、啟動時間
二、配置設備console密碼、主機名、時間、時區、baner
>Huawei
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]quit //退出系統視圖
>Huawei
[Huawei]sysname R1 //配置主機名
[R1]
[R1]header login information "Welcome to UUU" //配置登錄banner,如telnet等
[R1]header shell information "Welcome to KBXiaoWangGuan" //配置登錄banner,如console
[R1]user-interface console 0 //進入console口,默認無密碼
[R1-ui-console0]authentication-mode password //配置console密碼,提高安全性(用戶名密碼登錄改用aaa命令)
Please configure the login password (maximum length 16):14 //選擇密碼長度
[R1-ui-console0]set authentication password cipher kbxiaowangguan //配置一個密文形式密碼KB小網管小寫拼音
[R1-ui-console0]idle-timeout 5 //配置空閑超時為5分鐘,默認10分鐘
三、配置接口地址與VTY驗證
[R1]display ip interface brief //查看接口狀態
[R1]display interface g0/0/0 //查看接口詳細信息
[R1]interface g0/0/0 //進入接口模式
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 255.255.255.0 //配置接口IP地址(注:端口有修改就自動開啟,無需手動開啟)
[R1]user-interface vty 0 4 //配置用戶賬號和密碼
[R1-ui-vty0-4]authentication-mode aaa //改為aaa用戶名+密碼身份驗證模式
[R1-ui-vty0-4]quit
[R1]aaa
[R1-aaa]local-user JRTT password kbxiaowangguan //新建一個用戶賬號為JRTT密碼為kbxiaowangguan
四、查看、保存、清空、重啟路由器
[R1]display current-configuration //查看路由器當前配置信息
>R1
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
>R1
This operation will take several minutes, please wait.........
Info: Succeeded in setting the file for booting system
>R1
MainBoard:
Startup system software: null
Next startup system software: null
Backup system software for next startup: null
Startup saved-configuration file: flash:/vrpcfg.zip
Next startup saved-configuration file: flash:/vrpcfg.zip
Startup license file: null
Next startup license file: null
Startup patch package: null
Next startup patch package: null
Startup voice-files: null
Next startup voice-files: null
>R1
This will delete the configuration in the flash memory.
The device configurations will be erased to reconfigure.
Are you sure? (y/n)[n]:y
Clear the configuration in the device successfully.
>R1
Info: The system is comparing the configuration, please wait.
Warning: All the configuration will be saved to the next startup configuration. Continue ? [y/n]:n //不保存重啟
System will reboot! Continue ? [y/n]:y
Info: system is rebooting ,please wait..