wiki:Internal/Documentation/OpenFlow/switchReset

Version 3 (modified by akoshibe, 11 years ago) ( diff )

Factory resetting switches

This page describes how to factory reset various switches, if not, at least the default credentials and serial line settings for working with the switch.

Switchlist

The following is a list of switches described here.

Netgear

NEC

Quanta

References

GSM7224

Default user/password: admin/blank
Serial settings: carrier-watch off, 9600 baud, 8 data, 1 stop, parity none

Start the switch up, with the serial line connected. Select 2 when prompted for the boot option:

Verifying Operational Code CRC in Flash...100%
Select an option. If no selection in 10 seconds then
operational code will start.

1 - Start operational code.
2 - Start Boot Menu.
Select (1, 2): 2 

You will be presented with a boot menu. Choose "Restore Configuration to factory defaults", selection 8 in the case shown:

Boot Menu
Options available
 1 - Start operational code
 2 - Change baud rate
 3 - Retrieve event log using XMODEM (64KB)
 4 - Load new operational code using XMODEM
 5 - Run Flash Diagnostics
 6 - Update Boot Code
 7 - Reset the system
 8 - Restore Configuration to factory defaults (delete config files) and reset
 9 - Display operational code vital product data
[Boot Menu] 8

Upon entering 8, the switch will reset and boot up. You can check if the reset was successful by logging in with the default credentials.

[Boot Menu] 8


NetGear GSM7224 Boot code....

Flash = 8MB
SDRAM = 64MB

Verifying Operational Code CRC in Flash...100%
Select an option. If no selection in 10 seconds then
operational code will start.

1 - Start operational code.
2 - Start Boot Menu.
Select (1, 2):


Operational Code Date: Fri Jun  9 12:35:52 2006
Uncompressing.....

                       50%                     100%
||||||||||||||||||||||||||||||||||||||||||||||||||
Attaching interface lo0...done

Adding 23132 symbols for standalone.

(Unit 1)>

User:

GSM7248

Default user/password: admin/blank
Serial settings: carrier-watch off, 9600 baud, 8 data, 1 stop, parity none

Load the U-Boot prompt. This can be done by hitting any key right after the appearance of the U-Boot banner:

U-Boot 1.1.2 (Feb 25 2006 - 21:16:55)

Board: Netgear GSM7248
DRAM:  64 MB
FLASH:  8.5 MB
Hit any key to stop autoboot:  0 

The variables for the switch should look like something below:

=> printenv
flashargs=setenv bootargs root=/dev/ram console=ttyS0,9600 mem=62M mac0=$(fp_card_base_mac) serialnum=$(fp_sn) quiet
silent=1
bootcmd=run flashargs; bootm ff000000
bootdelay=3
baudrate=9600
initrd_high=03E00000
fp_num_mac_addrs=4
fp_model=Netgear GSM7248
fp_mfgr=bc00
fp_pn=GSM7248
fp_fru=GSM7248
fp_desc=Netgear GSM7248
fp_maint=1
fp_who=LVL7 Support
fp_type=Netgear GSM7248stdin=serial
fp_card_base_mac=0x00:0x1E:0x2A:0x3B:0x9E:0xC5
fp_sn=1DU3823J00054
stdin=serial
stdout=serial
stderr=serial

Environment size: 496/65532 byte

The flashargs variable for bootcmd load the firmware with the current settings, including the password. You want to start the firmware without these settings so you can get to the boot menu. To do this, run the bootm command directly:

=> bootm ff000000

This loads just the firmware of the switch. Let the startup process run its course. Choose 2 when prompted for the startup mode:

Select startup mode.  If no selection is made within 3 seconds,
the GSM7248 Application will start automatically...

1 - Start GSM7248 Application
2 - Display Utility Menu
Select (1, 2): 2

This will present you with the familiar boot menu:

GSM7248 Startup Rev: 3.3

GSM7248 Startup -- Utility Menu

 1  - Start GSM7248 Application
 2  - Load Code Update Package using XMODEM/YMODEM/ZMODEM
 3  - Display Vital Product Data
 4  - Select Serial Speed
 5  - Retrieve Error Log using XMODEM/YMODEM/ZMODEM
 6  - Erase Current Configuration
 7  - Erase Permanent Storage

 Q  - Quit from GSM7248 Startup

Select option (1-8 or Q):

Enter 6 to reset the configs. Now, power cycle the switch. The switch should be in default mode when it comes up again:

GSM7248 starting...started!

(Unit 1)>

User:admin
Password:
(GSM7248) >

IP8800/S3640

Default user/password: operator/blank
Serial settings: carrier-watch off, 9600 baud, 8 data, 1 stop, parity none

LB9A

Default user/password: admin/pica8 (XorPlus CLI), root/pica8 (system shell), root/openflow (OpenFlow mode)
Serial settings: carrier-watch off, 115200 baud, 8 data, 1 stop, parity none

Note: See TracWiki for help on using the wiki.