1. 程式人生 > >華為MA5626-8密碼恢復及設定

華為MA5626-8密碼恢復及設定

裝置型號:華為MA5626-8

    #display version
      VERSION : MA5626V800R308C00
      PATCH   : SPC500 SPH505 HP5105
      PRODUCT MA5626

準備工作:超級終端(XP自帶、win7下可用secureCRT、Xshell、putty)、tftp、串列埠連線線、空密碼庫檔案(文末提供下載)

裝置的lan1口連線電腦的網口,本地連線裝置ip為10.11.104.11,子網掩碼為:255.255.255.0,預設閘道器:10.11.104.2

操作步驟:

1、用串列埠連線線連線好裝置然後開啟超級終端連線串列埠

2、開啟裝置電源

     Copyright (c) 1998 - 2011 by Huawei Technologies Co.,Ltd.
     All Rights Reserved.
     The last update date of base BIOS B is : Jan  4 2011   09:43:09
     ===============================================================
     BOARD INFORMATION :
       CPU: ARM Integrator - ARM1176JF (ARM).  Processor  running at 533Mhz
       256M bytes DDRAM, 64M bytes flash memory installed on board
       Baudrate of serial channel is 9600bps
       Board's LAN IP address is 10.11.104.2
       Board's LAN Subnet mask is 255.255.255.0
       Board's LAN MAC address is 70:7B:E8:53:BE:D7
     ===============================================================
     System is booting from base BIOS...
     Base BIOS version is 200
     
     Press <D> key to stop auto-boot    0

當出現

Press <D> key to stop auto-boot

時按下D鍵

    Main menu:
     ==============================================
     0    Boot from flash
     1    Load files
     9    Reboot system
     
     Please enter a choice : 1

選擇1

     SubMenu: Load files
     ==============================================
     0    Back to main menu
     1    Download program file to flash
     2    Download Data file to flash
     3    Download basebios file to flash
     4    Download cpld file
     5    Download packet file
     d    Download program file to ddram
     6    Download updatetool file to flash
     7    Download equipment file to flash
     
     Please enter a choice : 2

選擇2

    Please select load mode[default: 1 -- TFTP load mode]:
     ============================================
     0  Xmodem load mode
     1  TFTP load mode
     Q  Quit
     
     Please enter your choice:1

選擇1

    Board IP address   : [10.11.104.2]
     
     Board mask address : [255.255.255.0]
     
     TFTP server IP     : [10.11.104.1] 10.11.104.11
     
     File name          : [db_sd5103.dat] 5626.dat
     
     You will download file '5626.dat' from TFTP server 10.11.104.11,
     are you sure? (y/n) [y]

在Board IP address和Board mask address行直接回車,在TFTP server IP 輸入TFTP伺服器地址,在File name輸入檔名

 are you sure? (y/n) [y]輸入y開始下載,下載完成後返回選單,選擇0然後選擇9重啟。

重啟完成後,使用預設使用者密碼root、mduadmin就可以登入了。

登入後用#erase flash data

刪除全部裝置

#reboot system

重啟

空密碼庫檔案:http://www.liangchan.net/liangchan/9469.html

華為MA5626如何配置成交換機模式

開光口級聯:

root

密碼mduadmin

(這是預設的使用者名稱和密碼)

登陸onu後輸入的命令:

enable ---回車

erase flash data ---回車

Y ---回車

reboot system---回車

Y---回車

回車後等待片刻onu重啟後以前所配置的資料即可全部刪除MA5626>

enable

config

port mode 0/0/1 ge

port mode 0/0/2 ge 指定1,2光口為GE模式。然後把業務口透傳到光口,真要命,找好久還搞明白。

vlan service-profile profile-id 1

user-bridging enable 使用者橋接使能

commit 載入

quit

vlan 4000 smart 定義業務vlan

定義管理vlan

vlan bind service-profile 4000 profile-id 1 將vlan邦定1號模板

multi-service-port vlan 4000 port 0/1 1-8 user-vlan untagged rx-cttr 6 tx-cttr 6 批量載入業務口

interface vlanif4000 帶內管理vlan

ip address 111.111.111.1 255.255.255.0 帶內管理ip地址

quit

port vlan 4000 0/0 1 ETH口 vlan1 透傳到上行口1

port vlan 4000 0/0 2 ETH口 vlan1 透傳到上行口2

MA5620#config
MA5620(config)#port mode 0/0 ?
---------------------------------------------
  Command of config Mode:
---------------------------------------------
adapt                 Adapt mode
epon                  EPON mode
ge                    GE mode
gpon                  GPON mode

MA5620(config)#display board 0/0

  ---------------------------------------               
  Board Name          : H822EPUB                   
  Board Status        : Active normal                
  ---------------------------------------

  Subboard[0]: H831UP2A                        Status: Normal
  ------------------------------------------------------------------------------
  Port  Port Type        Link State
  ------------------------------------------------------------------------------
     1  AUTO             DOWN 
     2  AUTO             DOWN 
  ------------------------------------------------------------------------------

MA5620(config)#port mode 0/0 ge  
If you want to set the work mode of nni port to fixed type, you need to clear  the configuration of the port or erase the data. Are you sure to proceed? (y/n)[n]:y

MA5620(config)#display board 0/0

  ---------------------------------------               
  Board Name          : H822EPUB                   
  Board Status        : Active normal                
  ---------------------------------------

  Subboard[0]: H831UP2A                        Status: Normal
  ------------------------------------------------------------------------------
  Port  Port  Optic    MDI     Speed      Duplex    Flow-  Active   Link  
        Type  Status           (Mbps)               Ctrl   State          
  ------------------------------------------------------------------------------
     1  GE    absence  -       auto       auto      off    active   offline
     2  GE    normal   -       auto_1000  auto_full off    active   online
  ------------------------------------------------------------------------------
  Note: For a 1000 M, electrical port in the full-duplex mode, setting MDI to 
        any value is invalid