VRP (Versatile Routing Platform)即通用路由平臺,是華為在通信領(lǐng)域多年的研究經(jīng)驗(yàn)結(jié)晶,是華為所有基于IP/ATM構(gòu)架的數(shù)據(jù)通信產(chǎn)品操作系統(tǒng)平臺。運(yùn)行VRP操作系統(tǒng)的華為產(chǎn)品包括
路由器、局域網(wǎng)
交換機(jī)、ATM
交換機(jī)、撥號訪問
服務(wù)器、IP電話網(wǎng)關(guān)、電信級綜合業(yè)務(wù)接入平臺、智能業(yè)務(wù)選擇網(wǎng)關(guān),以及專用硬件
防火墻等。華為的產(chǎn)品在市場上非常的受歡迎,但是產(chǎn)品售后服務(wù)依舊存在一些問題,我們作為一個已有華為通信設(shè)備環(huán)境的網(wǎng)絡(luò)工程師維護(hù)設(shè)備時最要具備的命令知識還有很多的人不太清楚。
一、如何通過console口連接路由器
用Console線纜(RJ45轉(zhuǎn)RJ232)將筆記本連接到路由器的CON/AUX口,然后通過第三方SecureCRT軟件進(jìn)行連接(現(xiàn)在Win7系統(tǒng)更新之后就沒有系統(tǒng)自帶的終端仿真軟件),如下圖:
連接成功后,是時候展現(xiàn)你真正技術(shù)的時候了(伊澤瑞爾^_^不懂地忽略括號內(nèi)容)。
實(shí)驗(yàn)拓?fù)鋱D如下(此處開始在eNSP模擬環(huán)境下寫文):
輸入"?"回車可以看到全局模式下可用的所用命令;
輸入"system-view"回車后再輸入"?"將是系統(tǒng)視圖下所有可用的命令;
輸入"display ?"回車可以看到設(shè)備所有以dis開頭的命令。如果你對英語熟練,那你學(xué)習(xí)起來將更快。
如:display version //
顯示設(shè)備版本號、型號、啟動時間
二、配置設(shè)備console密碼、主機(jī)名、時間、時區(qū)、baner
>Huawei
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]quit //退出系統(tǒng)視圖
>Huawei
[Huawei]sysname R1 //配置主機(jī)名
[R1]
[R1]header login information "Welcome to UUU" //配置登錄banner,如telnet等
[R1]header shell information "Welcome to KBXiaoWangGuan" //配置登錄banner,如console
[R1]user-interface console 0 //進(jìn)入console口,默認(rèn)無密碼
[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小網(wǎng)管小寫拼音
[R1-ui-console0]idle-timeout 5 //配置空閑超時為5分鐘,默認(rèn)10分鐘
三、配置接口地址與VTY驗(yàn)證
[R1]display ip interface brief //查看接口狀態(tài)
[R1]display interface g0/0/0 //查看接口詳細(xì)信息
[R1]interface g0/0/0 //進(jìn)入接口模式
[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用戶名+密碼身份驗(yàn)證模式
[R1-ui-vty0-4]quit
[R1]aaa
[R1-aaa]local-user JRTT password kbxiaowangguan //新建一個用戶賬號為JRTT密碼為kbxiaowangguan
四、查看、保存、清空、重啟路由器
[R1]display current-configuration //查看路由器當(dāng)前配置信息
>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..