beautypg.com

6 configuration file maintenance, 1 using a different configuration file – ZyXEL Communications GS-4012F/4024 User Manual

Page 297

background image

GS-4012F/4024 User’s Guide

296

Chapter 43 User and Enable Mode Commands

where

An example is shown next.

• Copy all attributes of port 1 to port 2

• Copy selected attributes (active, bandwidth limit and STP settings) to ports 5-8

43.6 Configuration File Maintenance

The following sections show how to manage the configuration files.

43.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.

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.

copy running-config

interface port-

channel

= Copies all of the possible attributes from one port to another port

or ports.

copy running-config

interface port-

channel

[active... ]

= Copies only the specified port attributes from one port to another

port or ports.

sysname# copy running-config interface port-channel 1 2
sysname# copy running-config interface port-channel 1 5-8 active
bandwidth-limit spanning-tree

sysname# boot config 2

sysname# reload config 2