1. 程式人生 > >NETWORK筆記4:華為命令

NETWORK筆記4:華為命令

image.png

<Huawei>      #使用者檢視

<Huawei>system-view      #進系統檢視

Enter system view, return user view with Ctrl+Z.      #進入系統檢視,返回使用者檢視用Ctrl+Z。

[Huawei]interface Ethernet 0/0/1      #介面檢視 Ethernet:介面型別 0/0/1:第一個0代表槽位,第二個0代表子卡號,1代表介面號

[Huawei-Ethernet0/0/1]quit      #quit 返回上一試圖

[Huawei]ospf      #ospt協議檢視

[Huawei-ospf-1]

[Huawei-ospf-1]return      #return 回到使用者檢視

<Huawei>

<Huawei>system-view

[Huawei]sysname Switch     #系統名 交換機

[Switch]display version      #顯示 版本資訊

[Switch]display current-configuration       #顯示 當前配置

<Switch>system-view 

[Switch]user-interface console 0      #使用者 介面 控制檯 0

[Switch-ui-console0]authentication-mode password      #認證模式 密碼

[Switch-ui-console0]set authentication password simple|cipher 123      #設定 認證 密碼 簡單|暗文 123    簡單|暗文二選一!

<Switch>system-view 

[Switch]user-interface console 0

[Switch-ui-console0]authentication-mode aaa

[Switch-ui-console0]aaa

[Switch-aaa]local-user huawei password cipher huawei123      #本地使用者 huawei 密碼 暗文 huawei123

Info: Add a new user.      #資訊:新增 新 使用者

<Switch>save      #save儲存

The current configuration will be written to the device.      #當前配置將被寫入裝置。

Are you sure to continue?[Y/N]                                #您確定繼續嗎?[y/n]

Save the configuration successfully.      #儲存配置成功。

<Switch>reboot      #重新啟動

System will reboot! Continue?[Y/N]:y      #系統將重啟!繼續[Y/ N]:Y?

<Switch>reset saved-configuration       #重置 儲存 配置

Warning: The action will delete the saved configuration in the device.      #警告:該操作將刪除裝置中儲存的配置。

The configuration will be erased to reconfigure. Continue? [Y/N]:y      #配置將被擦除以重新配置。 繼續?[Y/ N]:Y

Info: Succeeded in clearing the configuration in the device.      #資訊:成功清除裝置中的配置。


未完