有一些朋友對華為配置命令不是很熟悉,今天KB小網(wǎng)管給大家普及一下華為網(wǎng)絡(luò)操作系統(tǒng)平臺(tái)(VRP)。 何為VRP其實(shí)沒有必要深入了解,他是華為所有通訊產(chǎn)品的核心,核心的東西你想深入了解也是了解不了的,哈哈! 定義:VRP (Versatile Routing Platform)即通用路由平臺(tái),是華為在通信領(lǐng)域多年的研究經(jīng)驗(yàn)結(jié)晶,是華為所有基于IP/ATM構(gòu)架的數(shù)據(jù)通信產(chǎn)品操作系統(tǒng)平臺(tái)。運(yùn)行VRP操作系統(tǒng)的華為產(chǎn)品包括路由器、局域網(wǎng)交換機(jī)、ATM交換機(jī)、撥號(hào)訪問服務(wù)器、IP電話網(wǎng)關(guān)、電信級綜合業(yè)務(wù)接入平臺(tái)、智能業(yè)務(wù)選擇網(wǎng)關(guān),以及專用硬件防火墻等。 今天要給大家講的是作為一個(gè)已有華為通信設(shè)備環(huán)境的網(wǎng)絡(luò)工程師維護(hù)設(shè)備時(shí)最要具備的命令知識(shí): 一、如何通過console口連接路由器用Console線纜(RJ45轉(zhuǎn)RJ232)將筆記本連接到路由器的CON/AUX口,然后通過第三方SecureCRT軟件進(jìn)行連接(現(xiàn)在Win7系統(tǒng)更新之后就沒有系統(tǒng)自帶的終端仿真軟件),如下圖: 連接成功后,是時(shí)候展現(xiàn)你真正技術(shù)的時(shí)候了(伊澤瑞爾^_^不懂地忽略括號(hào)內(nèi)容)。 實(shí)驗(yàn)拓?fù)鋱D如下(此處開始在eNSP模擬環(huán)境下寫文): 輸入'?'回車可以看到全局模式下可用的所用命令; 輸入'system-view'回車后再輸入'?'將是系統(tǒng)視圖下所有可用的命令; 輸入'display ?'回車可以看到設(shè)備所有以dis開頭的命令。如果你對英語熟練,那你學(xué)習(xí)起來將更快。 如:display version //顯示設(shè)備版本號(hào)、型號(hào)、啟動(dòng)時(shí)間 二、配置設(shè)備console密碼、主機(jī)名、時(shí)間、時(shí)區(qū)、banerEnter system view, return user view with Ctrl+Z. [Huawei] [Huawei]quit //退出系統(tǒng)視圖 [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 //配置一個(gè)密文形式密碼KB小網(wǎng)管小寫拼音 [R1-ui-console0]idle-timeout 5 //配置空閑超時(shí)為5分鐘,默認(rèn)10分鐘 [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地址(注:端口有修改就自動(dòng)開啟,無需手動(dòng)開啟) [R1]user-interface vty 0 4 //配置用戶賬號(hào)和密碼 [R1-ui-vty0-4]authentication-mode aaa //改為aaa用戶名+密碼身份驗(yàn)證模式 [R1-ui-vty0-4]quit [R1]aaa [R1-aaa]local-user JRTT password kbxiaowangguan //新建一個(gè)用戶賬號(hào)為JRTT密碼為kbxiaowangguan [R1]display current-configuration //查看路由器當(dāng)前配置信息 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 This operation will take several minutes, please wait......... Info: Succeeded in setting the file for booting system 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 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. 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.. |
|