交換機登錄密碼忘記解決方案
交換機登錄密碼突然忘記了,我們就需要進行重置密碼,而不需要恢復出廠設置。
有些設備并不是按住RESET幾秒鐘,系統就會重置,華為的交換機需要按照下面步驟一步一步地來做。
1、用console線連接交換機和配置的筆記本電腦;
2、打開超級終端,然后重啟交換機,然后在終端上會顯示很多東西,當出現下面紅框內的話是,按CTRL+B;

3、輸入密碼華為默認密碼有:Aadmin@huawei.com或者是admin@123;進入系統之后,選擇第7條;

4、輸入7后,系統會提示是否清除密碼,輸入Y,進入下一步;
這時注意下面一行提示note;
5、我們需要在這里輸入“1”而不是“7”來重啟交換機。
重啟后,就進入了交換機配置界面。
這樣清除登錄密碼,并不會清除交換機內的原有配置,但此時交換機是沒有密碼的,接下來通過命令給交換機增加密碼,確保交換機的安全性。
我們進入系統后,為了安全,一定不要忘記重新配置登錄密碼。
6、配置console密碼的方法
system-view
Enter system view, return user view with Ctrl+Z.
[hws2]user-interface console 0
[hws2-ui-console0]authentication-mode password
[hws2-ui-console0]set authentication password cipher Huawei@123
[hws2-ui-console0]
7、保存配置(一定要記得保存密碼)
save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Jan 1 2008 00:26:03-05:13 hws2 %%01CFM/4/SAVE(l)[27]:The user chose Y when deciding whether to save the configuration to the device.
Now saving the current configuration to the slot 0 .
Info: Save the configuration successfully.