1. 程式人生 > >華為VRP 系統基 本配置

華為VRP 系統基 本配置

查看 prot service 進入 pair imu etime orm 認證

1.如何通過 console 口連接路由器
2.配置設備 console 密碼、主機名、時間、時區、banner、Super 密碼
3.配置接口地址與 telnet、SSH
4.查看、保存、清空、重啟路由器

一、如何通過 console 口連接路由器
用 console 線纜將筆記本連接到路由器的 Console 口,然後通過 CRT 軟件進行連接.
在輸入信息後輸入“?”可查看以輸入的字母開頭的命令。如輸入“dis?”,設備將輸出所有以 dis 開頭的命令。
在輸入的信息後增加空格,再輸入“?”,這時設備將嘗試識別輸入的信息對應的命令,然後輸出該命令的其他參數。例如輸入
“dis ?”,如果只有 display 命令是以 dis 開頭的,那舉設備將輸出 display 命令的參數,如上所示;如果以 dis 開頭的命令還

有其他的,設備將報錯。
另外可以使用鍵盤上 Tab 鍵補全命令,比如鍵入“dis”後,按鍵盤“Tab”鍵可以將命令補全為“display”。如有多個以“dis”
開頭的命令存在,則在多個命令間循環切換。
命令在不發生歧的情況下可以使用簡寫,如“display”可以簡寫為“dis”或“disp”等,“interface”可以簡寫為“int”或“inter”
等。
<Huawei>?
<Huawei>display version =====顯示設備版本號、型號、啟動時間

二、配置設備 console 密碼、主機名、時間、時區、baner
<Huawei>system-view ====進入系統視圖(相當於思科的全局配置模式)

[Huawei]quit or return ====退出系統視圖
<Huawei>
[Huawei]sysname R1 ===配置主機名
[R1]header login information "Welcome to R" ====配置登錄 banner,如 telnet 等
[R1]header shell information "Welcome to HW" ====配置登錄 banner,如 console
<R1>quit
Configuration console exit, please press any key to log on
Welcome to HW
<R1>
[R1]user-interface console 0====進入 console 口,默認無密碼
[R1-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):5 ====選擇密碼長度
[R1-ui-console0]set authentication password cipher cisco ====配置一個密文形式密碼(可以選擇明文,命令為 simple)
[R1-ui-console0]idle-timeout 3 20 ====配置空閑超時時間 3 分 20 秒,默認 10 分鐘
<R1>quit
<R1>display clock ====顯示系統時間
<R1>clock timezone GMT add 08:00:00 ====配置系統時區,中國為+8 區
<R1>clock datetime 22:59:00 2014-05-11 ====配置系統時間
[R1]super password cipher ccieh3c.taobao.com ====配置密文 super 密碼,防止非法用戶權限提升
[R1]display current-configuration | include super ====顯示 super 密碼配置

三、配置接口地址與 telnet、SSH
[R1]display ip interface brief ====查看接口狀態
R1]display interface g0/0/0 ====查看接口詳細信息
[R1]interface g0/0/0 ====進入接口模式(註:默認接口狀態為 UP,可以使用命令 shutdown 關閉接口,用 restart 命令開啟)
[R1-GigabitEthernet0/0/0]ip address 202.100.1.1 255.255.255.0
<R1>display ip int bri
telnet 配置【基於密碼與用戶名密碼 2 種方式】
[R1]user-interface vty 0 4 ====進入線下模式
[R1-ui-vty0-4]set authentication password cipher cisco ====配置加密密碼為 cisco
<R1>display telnet server status ====查看 telnet server 狀態
<R1>display users ====查看 telnet 會話信息
配置用戶名+密碼認證方式
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa
[R1-ui-vty0-4]quit
[R1]
[R2]aaa
[R2-aaa]local-user cisco password cipher cisco privilege level 15
[R2-aaa]local-user cisco service-type telnet
SSH 配置:
[R1]rsa local-key-pair create ====生成 RSA 密鑰
[R1]display rsa local-key-pair public ====查看生成 RSA 密鑰
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa
[R1-ui-vty0-4]protocol inbound ssh
[R1-ui-vty0-4]quit
[R1]aaa
[R1-aaa]local-user sshuser password cipher cisco ====創建 SSH 登陸用戶名與密碼
[R1]stelnet server enable ====啟用 Stelnet 功能
[R1]ssh user sshuser authentication-type password ====配置 SSH 登陸用戶名服務類型
[R1]display ssh server status ====查看 SSH 服務狀態
[R1]display ssh user-information ====查看 SSH 登陸用戶狀態
四、查看、保存、清空、重啟路由器
[R1]display current-configuration ====查看路由器當前配置信息
<R1>save ====保存路由器當前配置信息
<R1>startup saved-configuration iascfg.zip ====配置下次啟動加載配置文件
<R1>display startup ====查看下次啟動加載配置文件
<R1>reset saved-configuration ====清空配置
<R1>reboot ====重啟路由器

華為VRP 系統基 本配置