NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
festus4711
Jul 27, 2020Aspirant
M4300 - Question regarding place were the stack config is stored?
Hello Community,
I am using multiple stacks of M4300.
However, I have problems with the stack at one customer.
Maybe something was missed during the setup and so I booted the mini stack from two 8x8 switches with factory-defaults. My normal config was deleted, but there was still the config around the stack!
In which file is the stack config stored and with which CLI command can I really delete everything?
Thanks in advance
Dirk
- Hi, yes stacking configuration is stored at a different place. Please find these how-to's, you can use the general command, or delete stacking configuration manually. Below is CLI, but obviously you can follow the manual method in the GUI as well.
HOW TO TOTALLY CLEAR STACK CONFIG FROM ONE SWITCH:
- POWER DOWN THE SWITCH WE WANT TO REMOVE FROM THE STACK
- DISCONNECT THE STACKING CABLES COMING TO AND/OR STARTING FROM THAT SWITCH
- RESTART THIS SWITCH SEPARATE, IN STANDALONE MODE
- LOG INTO THE CONSOLE
- ISSUE FOLLOWING COMMANDS:
User:admin
Password:
(M4300-8X8F) >en
(M4300-8X8F) #config
(M4300-8X8F) (Config)#switch 1 priority 1
(M4300-8X8F) (Config)#exit
(M4300-8X8F) #write memory
(M4300-8X8F) #erase stack-config
-->it reboots. After reboot, the switch is standalone.
Optional: Clear the configuration
User:admin
Password:
(M4300-8X8F) >en
(M4300-8X8F) #clear config
(M4300-8X8F) #reload
Are you sure you want to reload the stack? (y/n) y
MANUAL Method
Manually if switch 2 disconnected from the 3-switch stack:
(M4300-8X8F) (Config)#stack
(M4300-8X8F) (Config-stack)#no member 1
(M4300-8X8F) (Config-stack)#no member 3
(M4300-8X8F) (Config-stack)#stack-port 2/0/9 ethernet
(M4300-8X8F) (Config-stack)#stack-port 2/0/10 ethernet
(M4300-8X8F) (Config-stack)#exit
(M4300-8X8F) (Config)#switch 2 renumber 1 but it requires reboot......
(M4300-8X8F) (Config)#switch 1 priority 1
(M4300-8X8F) (Config)#exit
(M4300-8X8F) #write memory
(M4300-8X8F) #reload
I hope this will help, please let us know how it goes!
4 Replies
- DaneANETGEAR Employee Retired
You may use the clear config command in Privileged EXEC Mode to reset the switch configuration to its factory default settings without powering off the switch. As reference. kindly read page 240 of the M4300 CLI Reference Manual here.
Regards,
DaneA
NETGEAR Community Team
- festus4711Aspirant
Hi DaneA,
thank you for the provided CLI reference guide.
Unfortunately the CLI command "clear config" again only deleted the standard configuration, like VLANs, Port-description, etc. Furthermore all settings around STACKING are still available! The previously configured stacking ports are still there, but also the priorities of the stack members. It must be somehow possible to delete everything?
I am glad for all tips.
Thanks and greetings in advance
festus4711
- LaurentMaNETGEAR ExpertHi, yes stacking configuration is stored at a different place. Please find these how-to's, you can use the general command, or delete stacking configuration manually. Below is CLI, but obviously you can follow the manual method in the GUI as well.
HOW TO TOTALLY CLEAR STACK CONFIG FROM ONE SWITCH:
- POWER DOWN THE SWITCH WE WANT TO REMOVE FROM THE STACK
- DISCONNECT THE STACKING CABLES COMING TO AND/OR STARTING FROM THAT SWITCH
- RESTART THIS SWITCH SEPARATE, IN STANDALONE MODE
- LOG INTO THE CONSOLE
- ISSUE FOLLOWING COMMANDS:
User:admin
Password:
(M4300-8X8F) >en
(M4300-8X8F) #config
(M4300-8X8F) (Config)#switch 1 priority 1
(M4300-8X8F) (Config)#exit
(M4300-8X8F) #write memory
(M4300-8X8F) #erase stack-config
-->it reboots. After reboot, the switch is standalone.
Optional: Clear the configuration
User:admin
Password:
(M4300-8X8F) >en
(M4300-8X8F) #clear config
(M4300-8X8F) #reload
Are you sure you want to reload the stack? (y/n) y
MANUAL Method
Manually if switch 2 disconnected from the 3-switch stack:
(M4300-8X8F) (Config)#stack
(M4300-8X8F) (Config-stack)#no member 1
(M4300-8X8F) (Config-stack)#no member 3
(M4300-8X8F) (Config-stack)#stack-port 2/0/9 ethernet
(M4300-8X8F) (Config-stack)#stack-port 2/0/10 ethernet
(M4300-8X8F) (Config-stack)#exit
(M4300-8X8F) (Config)#switch 2 renumber 1 but it requires reboot......
(M4300-8X8F) (Config)#switch 1 priority 1
(M4300-8X8F) (Config)#exit
(M4300-8X8F) #write memory
(M4300-8X8F) #reload
I hope this will help, please let us know how it goes!
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!