一、華為VRP平台
華為現用的平台是VRP(Versatile Routing Platform)是華為公司數據通信產品的通用操作系統平台。 包含華為產品中的路由、交換、安全、無線等等
二、華為設備管理接口
三、通過設備的Console口連接登陸到VRP平台
用配置線一端連接到設備的console口,另一端接到電腦的COM口
也可以用USB轉網口的配置線,網頭一端接到設備的console口,USB一端接到電腦。
四、通過設備的Console口連接登陸到VRP平台
1、安裝SecureCRT ,並創建電腦至路由器的連接
到下圖的界面時按鍵盤回車鍵:
會出現以下提示,需要輸入賬號密碼進行登陸:
五、VRP平台介紹
1、VRP操作系統命令行視圖分為:
1】 用戶視圖 <Huawei>
2】 系統視圖 [Huawei] 用戶視頻進入系統視圖 <Huawei>sys ------------- [Huawei]
3】 接口視圖 [Huawei-GigabitEthernet0/0/1] 系統視圖進入接口視圖 [Huawei]interface GigabitEthernet0/0/0------------- [Huawei-GigabitEthernet0/0/1]
4】 協議視圖 [Huawei-ospf-1] 系統視圖進入協議視圖 [Huawei]ospf--------------[Huawei-ospf-1]
2、VRP快捷鍵
ctrl+c 取消當前命令的運行 ctrl+z 直接回到用戶視圖 TAB 命令補全
3、命令行在線幫助
? 問號, 在我們輸入一個命令時忘了后面可接什么命令或參數,可以加?
如:
[Huawei]dis ip routing-table ?
X.X.X.X Destination IP address
acl Access control list
all-vpn-instance All VPN instances
ip-prefix IP prefix-list
limit Route limit or prefix limit
protocol Specify Routing protocol
statistics Summary statistics of all routes
verbose Verbose information of routing table
vpn-instance VPN-Instance route information
| Matching output
4、文件系統常用命令
1)pwd 查看當前目錄
2)dir 列表當前目錄下的文件信息
3)more 查看文本文件內容 如:more a.txt
4)mkdir 創建新的目錄 如:mkdir test
5)cd 修改用戶當前界面的工作目錄, 如:cd test
6)rmdir 刪除目錄 如:rmdir test
7)copy 復制文件
8)move 移動文件
9)rename 修改文件名稱 如:rename test.txt a.txt
10)delete 刪除文件 unreserved 永久刪除文件
11)undelete 恢復刪除的文件
12)reset recycle-bin 徹底刪除回收站中的文件
13)system-view 進入系統視圖
14)sysname<系統名稱) 修改系統名稱 如:sysname AAAA
15)interface<接口名> 進入接口視圖 如:[Huawei]interface GigabitEthernet0/0/0
16)ip address<IP地址><掩碼> 配置接口的ip地址 如:[Huawei]ip address 192.168.10.1 255.255.255.0
17)shutdown 關閉接口 如:[Huawei-GigabitEthernet0/0/0]shutdown
18)undo 撤消之前輸入的命令 如:[Huawei-GigabitEthernet0/0/0]undo shutdown 這命令即啟用接口 如:[Huawei-GigabitEthernet0/0/0]undo ip 取消己配置的接口ip
19)quit 退出當前視圖
20)save 保存配置文件
21)display 查看命令,如:查看己保存的配置 <Huawei>display saved-configuration 查看當前的配置 <Huawei>display current-configuration
22)reboot 重啟設備
5、基本配置
1)配置設備名稱: sysname+名稱 (配置用戶名是在系統視圖)
如:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname ehong
[ehong]
2)配置系統時鍾 (配置系統時間是在用戶視圖下)
1】 clock timezone 設置所在時區
<Huawei>clock timezone BJ add 08:00:00
2】 clock datatime 設置當前時間和日期
<Huawei>clock datetime 10:20:29 2019-09-11
3】 <Huawei>display clock 查看當前系統時間
<Huawei>display clock 2019-09-04 11:20:05-08:00 Wednesday Time Zone(China-Standard-Time) : UTC-08:00
6、 配置標題消息(登陸前和登陸后的消息信息)
1)header login 配置在用戶登陸前顯示的標題消息
如:
[huawei]header login information " welcom to huawei certification!"
2)header shell 配置在用戶登陸后顯示的標題消息
如:
[huawei]header shell information " The banner text supports 480 characters max, including the start and the end cha racter.If you want to enter more than this, use banner file instead.Input banner text, and quit with the character '"': welcom to huawei certification! Please don`t reboot the device!"
7、 配置用戶界面命令
1)idle-timeout 配置超時時間
history-command max-size 設定歷史命令緩沖區的大小
如:
[huawei]user-interface console 0
[huawei-ui-console0]idle-timeout 1 30
[huawei-ui-console0]history-command max-size 20
查看操作過的歷史命令
[R1]dis history-command
8、配置文件的管理
1)保存配置
<Huawei>save
2)查看現在的系統配置
<Huawei>display current-configuration
3)查看己保存的配置
<Huawei>display saved-configuration
4)清空配置文件
<Huawei>reset saved-configuration
9、給接口配置ip並查看各接口的ip和狀態 給g0/0/0的接口配置ip地址為192.168.1.1,子掩碼為:255.255.255.0
[huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.1 24
查看各接口的ip和狀態
[huawei]dis ip int b
關閉接口 showdown 啟動端口undo showdown
[Huawei-GigabitEthernet0/0/0]shutdown
[Huawei-GigabitEthernet0/0/0]undo shutdown
刪除某端口下的ip配置
[Huawei-GigabitEthernet0/0/0]undo ip add
查看交換系統版本
[R1]dis version