3 using a different configuration file, 4 resetting to the factory default – ZyXEL Communications ZyXEL Dimension GS-4012F User Manual
Page 275

GS-4012F/4024 User’s Guide
274
Chapter 41 Command Examples
This command restores a configuration file on the switch. The following example uploads the
configuration file (
test.cfg
) from the TFTP server (
172.23.19.96
) to the switch.
Figure 168 CLI: Restore Configuration Example
41.6.3 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.
Figure 169 CLI: boot config Command Example
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.
Figure 170 CLI: reload config Command Example
Note: 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.
41.6.4 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.
ras# copy tftp config 1 172.23.19.96 test.cfg
Restoring
. (683)Bytes Done!
ras#
ras# boot config 2
ras# reload config 2