beautypg.com

1 using a different configuration file, 2 resetting to the factory default – ZyXEL Communications GS-2724 User Manual

Page 268

background image

Chapter 39 User and Enable Mode Commands

GS-2724 User’s Guide

268

39.6.1 Using a Different Configuration File

You can store up to two configuration files on the Switch. Only one configuration file is used
at a time. By default the Switch uses the first configuration file (with an index number of 1).
You can set the Switch to use a different configuration file. There are two ways in which you
can set the Switch to use a different configuration file: restart the Switch (cold reboot) and
restart the system (warm reboot).
Use the

boot config

command to restart the Switch and use a different configuration file (if

specified). The following example restarts the Switch to use the second configuration file.

Use the

reload config

command to restart the system and use a different configuration file

(if specified). The following example restarts the system to use the second configuration file.

"

When you use the

write memory

command without specifying a configuration

file index number, the Switch saves the changes to the configuration file the
Switch is currently using.

39.6.2 Resetting to the Factory Default

Follow the steps below to reset the Switch back to the factory defaults.

1 Enter

erase running config

to reset the current running configuration.

2 Enter

write memory

to save the changes to the current configuration file. If you want

to reset the second configuration file, use the

write memory

command again with the

specified index number.

The following example resets both configuration files to the factory default settings.

sysname# boot config 2

sysname# reload config 2

sysname# erase running-config
sysname# write memory
sysname# write memory 2