在大中型企業中,公司新購的網絡設備一般需要進行初始化操作,包括查看路由器版本,設置系統時間,設置名稱,設置console登錄密碼,保存配置,查看當前配置,接口IP配置。
工具/原料
電腦
模擬器eNSP
方法/步驟
在用戶視圖下輸入display version命令,查看路由器版本,硬件信息,系統啟動時間等.
在用戶視圖下修改路由器時間,包括時區設置clock timezone,時鐘設置clock datetime,查看設置的時間display clock。
在系統視圖下修改路由器名稱為R1,並配置console登錄密碼,配置文件如下
1.
system-view
sysname R1
2.
system-view
user-interface console 0
authentication-mode password
Please configure the login password (maximum length 16):huawei321
set authentication password cipher huawei456
ctrl+z
save
在系統視圖下,配置路由器接口IP地址和描述,顯示當前接口信息,保存路由器配置,配置如下
system-view
interface GigabitEthernet 0/0/0
ip address 10.10.10.2 24
description This connet R2-G0/0/0
display this
return
save
在用戶視圖下,查看當前配置用display current-configuration,查看保存配置用display saved-configuration,如圖
在系統視圖下,查看路由器配置文件存放目錄用dir,刪除閃存中配置文件用reset saved-configuration,重啟路由用reboot。如圖