Basic Operation Guide 2014/02

NOTE: This feature does not change the system defaults. The custom default configuration file is
automatically used when the startup configuration file is erased. It has no effect on what is loaded
onto the switch when a remotely stored configuration file is restored.
The default configuration file can be customized using commands at the CLI prompt or by copying
a configuration file with the desired configuration using TFTP, USB, or XMODEM copy commands.
The existing default configuration file also can be transferred from the switch using these commands.
To start creating the configuration file to be used as the custom default configuration file, enter the
commands that configure the features desired and then save the configuration file using the write
memory command. An example is shown below.
Example 25 Creating a config file with the desired features
HP Switch(config)# spanning-tree
HP Switch(config)# interface 4 flow-control
HP Switch(config)# write memory
This configuration, which enables flow control on interface 4, and also spanning-tree on the switch,
is stored in the startup configuration file.
To save this configuration as the custom default configuration, the startup configuration file is copied
to the default configuration file, as shown below.
Example 26 Copying the startup configuration file to the custom default configuration file
HP Switch(config)# copy startup-config default-config
Copying an existing configuration file to the custom default configuration file
The switch can have up to 3 different configuration files stored in flash memory. (For more
information about multiple configuration files, see "Multiple Configuration Files" in the Management
and Configuration Guide for your switch.) To copy a configuration file that exists in flash memory
to the custom default configuration file, use this command.
Syntax:
copy config <source-filename>
default-config
Copies the configuration file specified in [<source-filename>] to the custom
default configuration file.
Example 27 Copying the abc.cfg config file to the custom default config file
HP Switch(config)# copy abc.cfg default-config
Copying the custom default config file onto the switch
The following sections explains how to copy the custom default config file onto the switch using:
TFTP
XMODEM
USB
Using TFTP
To copy a configuration file stored on a TFTP server to the custom default configuration file, use
the copy tftp default-config command.
52 Switch Memory and Configuration