95 ‐ Hardware ‐ Huawei S2700 Series - freifunk-darmstadt/projects GitHub Wiki
picocom /dev/ttyUSB0
Press STRG+B on Power-On
Default Password: [email protected]
Enter 7
Enter y
Enter 1
(Do not Reboot / Power-Off!)
Wait for device to Boot.
Press enter when asked to do so.
Enter Password Freifunk
twice when prompted.
Wait for the CLI to boot.
Enable CLI an enter save
. Enter y
then prompted.
After saving configuration, enter reset saved-configuration
. Enter y
when prompted.
Info: Succeeded in clearing the configuration in the device.
<Quidway>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Jan 1 2008 00:16:48+01:00 Quidway %%01CFM/4/SAVE(l)[3]:The user chose Y when deciding whether to save the configuration to the device.
Warning: AutoConfig will stop in the next phase for the manual intervention.
Now saving the current configuration to the slot 0 .
Info: Save the configuration successfully.
<Quidway>reset saved-configuration
The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y
Warning: Now clearing the configuration in the device.
Jan 1 2008 00:17:21+01:00 Quidway %%01CFM/4/RST_CFG(l)[4]:The user chose Y when deciding whether to reset the saved configuration.
Info: Succeeded in clearing the configuration in the device.
<Quidway>
Reboot the device with reboot
.
Make sure to not save the settings. Enter n
first, then y
.
<Quidway>reboot
Info: The system is now comparing the configuration, please wait.
Warning: All the configuration will be saved to the configuration file for the next startup:, Continue?[Y/N]:n
System will reboot! Continue?[Y/N]:y
Wait for device to Boot.
Press enter when asked to do so.
Upon reboot, re-set the Login Information to Freifunk
.
Please configure the login password (6-16)
Enter Password:
Confirm Password:
<Quidway>
Enter system view
system-view
Copy / Paste
port-group pgaccess
group-member Ethernet 0/0/1 to Ethernet 0/0/40
port link-type access
quit
port-group pgtrunk
group-member Ethernet 0/0/41 to Ethernet 0/0/48
group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/4
port link-type trunk
quit
Copy / Paste
vlan 10
port Ethernet 0/0/1 to 0/0/12
quit
vlan 20
port Ethernet 0/0/13 to 0/0/24
quit
vlan 30
port Ethernet 0/0/25 to 0/0/36
quit
vlan 40
port Ethernet 0/0/37 to 0/0/40
quit
vlan 100
quit
Copy / Paste
interface Ethernet 0/0/41
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet 0/0/42
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet 0/0/43
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet 0/0/44
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet 0/0/45
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet 0/0/46
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet 0/0/47
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet 0/0/48
port link-type trunk
port trunk allow-pass vlan all
quit
interface GigabitEthernet 0/0/1
port link-type trunk
port trunk allow-pass vlan all
quit
interface GigabitEthernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
interface GigabitEthernet 0/0/3
port link-type trunk
port trunk allow-pass vlan all
quit
interface GigabitEthernet 0/0/3
port link-type trunk
port trunk allow-pass vlan all
quit
system-view
interface vlanif 100
ip address 10.1.0.10 24
quit
quit
save
Quit system-view and save configuration.
quit
save
Press y
twice.
<Quidway>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name(*.cfg,*.zip)[vrpcfg.zip]:
Jan 1 2008 00:59:46+01:00 Quidway %%01CFM/4/SAVE(l)[0]:The user chose Y when deciding whether to save the configuration to the device.
flash:/vrpcfg.zip exists, overwrite?[Y/N]:
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
Now saving the current configuration to the slot 0 .
Info: Save the configuration successfully.
<Quidway>
Reboot the switch
reboot
Press y
Issue Description
The console port password of the S2700 of an earlier version is forgotten. Handling Process
To restore the password of a Huawei switch, perform the following steps. (In the following operations, the password is required for entering the BootROM. Try the following default passwords: huawei, [email protected] www.huawei.com, and Admin@123.)
Restart the switch. During the startup, press Ctrl+B to display the BootROM interface. Rename the default startup configuration file. For example, the new file name is vrptest.zip.
BIOS LOADING ...
Copyright (c) 2008-2010 HUAWEI TECH CO., LTD.
(Ver127, Jan 18 2011, 22:45:47)
Press Ctrl+B to enter BOOTROM menu... 1
password:
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. Reboot
Enter your choice(1-7): 5
FILESYSTEM SUBMENU
1. Erase Flash
2. Format flash
3. Delete file from Flash
4. Rename file from Flash
5. Display Flash files
6. Update EPLD file
7. Return to main menu
Enter your choice(1-7): 4 // Modify the name of the original configuration file and restart the system after the modification.
No. File Size(bytes) Created Date File Name
=================================================================
1: 1752 bytes Oct 01 2008 00:01:59 private-data.txt
2: 836 bytes Oct 01 2008 00:02:35 rr.dat
3: 836 bytes Oct 01 2008 00:02:40 rr.bak
4: 1115 bytes Oct 01 2008 00:06:14 vrpcfg.zip
5: 10215068 bytes Jan 01 1970 00:03:10 S5300SI-V100R005C01SPC100.cc
BE CAREFUL!
This may cause your system fail to start!
Please choose the file you want to rename: vrpcfg.zip
Please Input the new filename: vrptest.zip
Rename file .....done
FILESYSTEM SUBMENU
1. Erase Flash
2. Format flash
3. Delete file from Flash
4. Rename file from Flash
5. Display Flash files
6. Update EPLD file
7. Return to main menu
Enter your choice(1-7): 7
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. Reboot
Enter your choice(1-7): 7
Reboot...
The reboot is complete and the BootROM can be accessed without a password.
- Decompress the vrptest file and name the decompressed file vrpcfg.bat.
<Quidway>dir
Directory of flash:/
Idx Attr Size(Byte) Date Time FileName
0 -rw- 1,752 Oct 01 2008 01:07:03 private-data.txt
1 -rw- 1,115 Oct 01 2008 00:09:11 vrptest.zip
...
31,620 KB total (21,620 KB free)
<Quidway>unzip vrptest.zip vrpcfg.bat // Run the unzip vrptest.zip vrpcfg.bat command to decompress the vrptest.zip file into a .bat file.
Extract flash:/vrptest.zip to flash:/vrpcfg.bat?[Y/N]:y
100% complete
%Decompressed file flash:/vrptest.zip flash:/vrpcfg.bat.
Run the execute vrpcfg.bat command, and then delete the console port password.
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]execute vrpcfg.bat // Run the execute vrpcfg.bat command to import the bat file to the existing configuration file of the system.
[GT_3F]
[GT_3F]
Info: This operation may take a few seconds. Please wait for a moment...done.
The configuration will be overwritten. Wait for a period of time.
<GT_3F>system-view
Enter system view, return user view with Ctrl+Z.
[GT_3F]user-interface console 0
[GT_3F-ui-console0]undo authentication-mode // Delete the original console port password.
[GT_3F-ui-console0]quit
[GT_3F]quit
- Save the configuration and restart the device to restore the original configuration without the console password.
<GT_3F>save // Save the configuration after the password is deleted.
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 .
Info: Save the configuration successfully.
<GT_3F>reboot // Restart the device. The console password is deleted and the original service configuration is not lost.
Info: The system is now comparing the configuration, please wait.
System will reboot! Continue?[Y/N]:y