Showing posts with label Huawei AR2220. Show all posts
Showing posts with label Huawei AR2220. Show all posts

Tuesday, March 15, 2016

How to Delete Console Port and Telnet Passwords through BootROM

Huawei router configuration: how to delete console port and telnet passwords through BootROM:
Specifications
This example applies to all versions and Huawei AR routers.
Networking Requirements
The management interface of RouterA connects to the PC. The passwords for logging in through the console port and Telnet need to be deleted through the BootROM menu.
Figure 1 Changing the name of the configuration file for next startup
6-27 huawei 1
Procedure
1. Connect a PC to the device with a serial cable and log in to the device through the console port.
2. Restart the device. When the message “Press Ctrl+B to break auto startup …” is displayed, press Ctrl+B and enter the password to display the BootROM main menu.
BIOS Creation Date : Nov 10 2011, 14:41:12                                     
DDR DRAM init : OK                                                             
Start Memory Test ? (‘t’ or ‘T’ is test):skip                                  
Copying Data : Done                                                             
Uncompressing : Done                                                           
USB2 Host Stack Initialized.                                                   
USB Hub Driver Initialized                                                      
USBD  Wind River Systems, Inc. 562 Initialized                                 
Octeon Host Controller Initialize……Done.                                   
                                                                                
                                                                               
Press Ctrl+B to break auto startup … 2    
NOTE:
The default password in V200R003C01 and earlier versions is huawei, and the default password in V200R005C00 and later versions is Admin@huawei.
3. Select choice 4 to enter the Startup Select menu.
      Main Menu                                                              
                                                                                
    1. Default Startup                                                         
    2. Serial Menu                                                             
    3. Network Menu                                                             
    4. Startup Select                                                          
    5. File Manager                                                            
    6. Password Manager                                                         
    7. Reboot                                                                  
                                                                               
Enter your choice (1-6):4 

4. Select choice 1 to view the system configuration.
In V200R001C01SPC300 and later versions, you can use the following method to view the configuration file. In V200R001C01SPC300, the menu choice is Startup Information. In Startup Information and later versions, the menu choice is Display Startup.
Startup Select

    1. Display Startup
    2. Set Boot File
    3. Set Config File
    4. Startupfile Check Manage
    0. return
                                                                                
Enter your choice (0-4):1                                                       

************** Current Stratup info ****************
Valid Flag State       : Vaild
Boot File Name         : sd1:/software.cc
Config File Name       : sd1:/vrpcfg.cfg
Licence File Name      :
Patch State            : Deactivate
Patch File Name        :
Voice File Name        :
In V200R001C01SPC200 and earlier versions, the configuration file cannot be viewed. The system often uses the file vrpcfg.zip or iascfg.zip.
5. Rename the configuration file.
        Startup Select

    1. Display Startup
    2. Set Boot File
    3. Set Config File
    4. Startupfile Check Manage
    0. return

Enter your choice (0-4):0
        Main Menu

    1. Default Startup
    2. Serial Menu
    3. Network Menu
    4. Startup Select
    5. File Manager
    6. Password Manager
    7. Reboot

Enter your choice (1-7):5

        File Menu

    1. Flash file system
    2. SDCard file system
    0. Return

Enter your choice (0-2):2
        SDCard file system MENU

    1. List file in SDCard[1]
    2. Delete file in SDCard[1]
    3. Rename file in SDCard[1]
    4. Format SDCard[1]
    5. Check SDCard[1]
    0. Return

Enter your choice(0-5):3
Please input the file name: vrpcfg.cfg
Please input the new name: vrpcfg_cpy.cfg
Rename file[sd1:/vrpcfg.cfg] to [sd1:/vrpcfg_cpy.cfg], Yes or No(Y/N): y
Rename OK!

6. Restart RouterA.

       SDCard file system MENU

    1. List file in SDCard[1]
    2. Delete file in SDCard[1]
    3. Rename file in SDCard[1]
    4. Format SDCard[1]
    5. Check SDCard[1]
    0. Return

Enter your choice (0-5):0
        File Menu

    1. Flash file system
    2. SDCard file system
    0. Return

Enter your choice (0-2):0
        Main Menu

    1. Default Startup
    2. Serial Menu
    3. Network Menu
    4. Startup Select
    5. File Manager
    6. Password Manager
    7. Reboot

Enter your choice (1-7):1

7. Stop Auto-Config.
l         You do not need to set a password in V200R002C00 and earlier versions.
l         You are prompted to set a password in versions V200R002C01 to V200R003C01. The message is displayed as follows:
Please configure the login password (maximum length 16):Huawei@123   //  Set a password for the first console port login.
l         You are prompted to set a password in V200R005C00 and later versions. The message is displayed as follows:
Please configure the login password (<8-128>)    //  Set a password for the first console port login.
Enter Password:
Confirm Password:

<Huawei> Auto-Config is working. Before configuring the device, stop Auto-Config.
If you perform configurations when Auto-Config is running, the DHCP, routing, DNS, and VTY configurations will be lost. Do you want to stop Auto-Config? [y/n]:y
<Huawei>

8. Change the renamed configuration file to executable file. Select one file format.

<Huawei>rename vrpcfg_cpy.cfg vrpcfg_cpy.bat   //  When the file name extension is .cfg, decompress the file in .bat format.
Rename sd1:/vrpcfg_cpy.cfg to sd1:/vrpcfg_cpy.bat? (y/n)[n]:y
Info: Rename file sd1:/vrpcfg_cpy.cfg to sd1:/vrpcfg_cpy.bat ……Done
<Huawei>unzip vrpcfg_cpy.zip vrpcfg_cpy.bat   //  When the file name extension is .zip, decompress the file in .bat format.
Extract sd1:/vrpcfg_cpy.zip to sd1:/vrpcfg_cpy.bat? (y/n)[n]:y

100%  complete
%Decompressed file sd1:/vrpcfg_cpy.zip sd1:/vrpcfg_cpy.bat.

9. Restore the configuration.

[Huawei]board add 0/1 1E1-MFT                                      
                    ^                                                          
Error: Unrecognized command found at ‘^’ position.
[Huawei]execute vrpcfg_cpy.bat
Information: The script file has been executed completely.
NOTE:
If there is failure information about “board add”, it is a normal situation. No action is required.
10. Reset the passwords for logging in through the console port and Telnet, and run the save command to save the passwords. The password for logging in through the console port has been configured in V200R002C01B130 and later versions.
Configuration Notes
  • The management interfaces of different AR models are:
AR151: Ethernet0/0/3
AR160: GigabitEthernet0/0/0
AR207: Ethernet0/0/6
AR1200: GigabitEthernet0/0/0
AR2220: GigabitEthernet0/0/0
AR2240: GigabitEthernet0/0/2
AR3200: GigabitEthernet0/0/2
  • When performing the last two steps, ensure that users on the serial port are kept online.
  • The preceding method cannot be used on the AR1200 of V200R001C00SPC200 or an earlier version. You must delete the configuration file in the BootROM menu and reset the passwords after the system restarts.
 Contact information:
Telephone: 852-30623083
           Supports@Thunder-link.com            


Sunday, March 13, 2016

Configuring VLAN ID-based QinQ Stacking on Huawei Router

Background
QinQ mitigates VLAN ID shortage and is widely applied when users connect to carrier networks.
When private networks connect to a carrier network through CEs and PEs, run the qinq
stacking command on CE interfaces connected to PEs so that the CE interfaces add the outer VLAN tag allocated by the carrier to user packets. This implementation saves VLAN IDs and allows user packets to be transparently transmitted on the carrier network.
The configuration overview:
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
bridge bridge-id
A bridge group is created and the bridge group view is displayed.
Step 3 Run:
quit
Exit from the bridge group view.
Step 4 Run:
interface { ethernet | gigabitethernet }.subinterface-number
The Ethernet sub-interface view is displayed.
NOTE
Sub-interfaces can only be created on Layer 3 Ethernet interfaces. If an interface works in Layer 2 mode and supports switching between Layer 2 and Layer 3 modes, run the undo portswitch command to switch the interface in Layer 3 mode before creating a sub-interface on the interface.
Step 5 Run:
bridge bridge-id
The Ethernet sub-interface is added to the bridge group.
Step 6 Run:
bridge vlan-transmit enable
The interface is enabled to transparently transmit VLAN IDs.
Step 7 Run:
qinq stacking vid low-ce-vid [ to high-ce-vid ] pe-vid pe-vid [ remark-8021p 8021pvalue2]
VLAN ID-based QinQ stacking is configured.
—-End
This configuration works for Huawei router, such as Huawei AR1200Huawei AR2220Huawei AR3200Huawei AR2200

Telephone: 852-30623083
           Supports@Thunder-link.com