華爲交換機密碼遺失怎麽辦?華爲交換機密碼恢複方法
2018-06-29
  華爲交換機密碼遺失怎麽辦?華爲交換機密碼恢複方法
  1、恢複Console口密碼
  設備提供如下方法可以恢複Console口密碼。
  方法一:通過Telnet登錄設備修改Console口密碼。
  方法二:在BootROM下配置跳過Console口密碼啓動後,修改Console口密碼。
  方法三:在BootROM菜單下取消設置下次啓動配置文件,設備以空配置啓動後修改Console口密碼。
  說明:
  請優先使用方法一,如果Telnet密碼也忘記了再使用其它兩個方法。
  如果Console登錄用的是密碼認證,在方法一不可用的情況下優先使用方法二。
  如果Console登錄用的是AAA認證,使用方法三。
  通過Telnet登錄設備修改Console口密碼
  如果用戶擁有Telnet賬号,并且具有3級或更高的權限,則可以通過Telnet登錄到設備後修改Console口密碼,然後保存配置。
  使用Telnet賬号登錄設備,并确認當前賬号有3級或更高的權限。
  使用display users命令查看當前設備所有登錄用戶。其中帶“+”标記行爲當前用戶,記錄對應的編号VTY1。
  display users
  User-Intf    Delay    Type   Network Address     AuthenStatus    AuthorcmdFlag
  129 VTY 0   00:23:36  TEL    10.135.18.67              pass
  Username : Unspecified
  + 130 VTY 1   01:20:36  TEL    10.135.18.91              pass
  Username : Unspecified
  131 VTY 2   00:00:00  TEL    10.135.18.54              pass
  Username : Unspecified
  使用display user-interface命令可以顯示所有用戶的權限,确定VTY1對應的等級爲15,有權限修改Console口密碼。
  display user-interface
  Idx  Type     Tx/Rx      Modem Privi ActualPrivi Auth  Int
  0    CON 0    9600       -     15    -           P     -
  + 129  VTY 0               -     15    15          P     -
  + 130  VTY 1               -     15    15          P     -
  + 131  VTY 2               -     15    -           P     -
  132  VTY 3               -     15    15          P     -
  ......
  修改Console用戶的密碼,以修改爲密碼認證,密碼爲“huawei@123”爲例。
  system-view
  [HUAWEI] user-interface console 0
  [HUAWEI-ui-console0] authentication-mode password
  [HUAWEI-ui-console0] set authentication password cipher huawei@123
  [HUAWEI-ui-console0] return
  爲了防止重啓後配置丢失,保存配置。
  save
  The current configuration will be written to the device.
  Are you sure to continue?[Y/N]y
  Now saving the current configuration to the slot 0.
  Save the configuration successfully.
  在BootROM下清除Console口密碼登錄後,修改Console口密碼
  設備的BootROM提供了清除Console口密碼的功能,可以在用戶使用Console口登錄的時候跳過密碼檢查。這樣系統啓動後除了不需要輸入Console密碼外,與正常啓動相同,也會完成所有配置加載。設備啓動後修改Console口密碼,然後保存配置。
  注意:
  要進入到BootROM菜單需要重啓設備,會導緻業務中斷,請視具體情況做好設備備份,并盡量選擇業務量較少的時間操作。
  清除Console口密碼登錄後請馬上配置新的密碼。
  在此操作過程中不要對設備進行下電。
  用串口線連接設備,然後重啓,當出現“Press Ctrl+B to enter Boot Menu...”打印信息時,按下“Ctrl+B”并鍵入密碼(缺省爲“Admin@huawei.com”,老版本設備可能爲“huawei”),進入BootROM主菜單。
  清除Console口登錄密碼。
  BOOTROM  MENU
  1. Boot with default mode
  2. Enter serial submenu
  3. Enter startup submenu
  4. Enter ethernet submenu
  5. Enter filesystem submenu
  6. Modify BOOTROM password
  7. Clear password for console user
  8. Reboot
  Enter your choice(1-8):7
  Note: Clear password for console user? Yes or No(Y/N): y
  Clear password for console user successfully. Choose "1" to boot, then set a new
  password.
  Note: Do not choose "8. Reboot" or power off the device, otherwise this operatio
  n will not take effect.
  根據設備的提示,在BootROM主菜單下選擇“1”啓動設備。
  完成系統啓動後,通過Console口登錄時不需要認證,登錄後配置Console口密碼,以修改爲密碼認證,并修改密碼爲“huawei@123”爲例。
  system-view
  [HUAWEI] user-interface console 0
  [HUAWEI-ui-console0] authentication-mode password
  [HUAWEI-ui-console0] set authentication password cipher huawei@123
  [HUAWEI-ui-console0] return
  爲了防止重啓後配置丢失,保存配置。
  save
  The current configuration will be written to the device.
  Are you sure to continue?[Y/N]y
  Now saving the current configuration to the slot 0.
  Save the configuration successfully.
  在BootROM菜單下取消設置下次啓動配置文件,設備以空配置啓動後修改Console口密碼
  在BootROM下取消設置下次啓動配置文件,設備會以空配置(出廠配置)啓動。啓動後将原配置文件導出,手動修改其中關于Console口登錄的配置。将修改後的配置文件重新上傳至設備,配置設備以修改後的配置文件啓動,重啓後的設備将無需輸入Console口登錄密碼。
  注意:
  要進入到BootROM菜單需要重啓設備,會導緻業務中斷,請視具體情況做好設備備份,并盡量選擇業務量較少的時間操作。
  在此操作過程中不要對設備進行下電。
  用串口線連接設備,然後重啓,當出現“Press Ctrl+B to enter boot menu ...”打印信息時,按下“Ctrl+B”并鍵入密碼(缺省爲“Admin@huawei.com”)後進入BootROM主菜單。