
Creating and Managing Files
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
6.7
Creating and Using Configuration Files
This section provides instructions on:
■
Creating a Configuration File
■
Specifying the Startup Configuration Script
■
Working with Configuration Files
Creating a Configuration File
A
configuration file
is
a text file that contains a sequence of standard commands for a specific
purpose. Configuration files have a .cfg extension. Your device has a default configuration script
called
default.cfg
.
You can create and edit configuration files on your device by:
■
saving the dynamic configuration on the device, known as the
running-config
(see
“Working
with Configuration Files”
). Use the command:
awplus#
copy running-config (destination-URL)
Where URL specifies a file in flash.
■
using the device’s text editor. Use the command:
awplus#
edit (source-URL)
where
source-URL
is the name of the copied file in Flash memory.
■
creating a file on a remote PC, then copying it to onto your device. See
“Copying files”
for
more information about using the
copy
commands.
Once you have created a configuration file, you can use it as the
startup-config
file. See
“Specifying the Startup Configuration Script”
for more information.
Specifying the Startup Configuration Script
When you restart your device, or when it automatically restarts, it executes the preconfigured
commands in a configuration script known as the
boot config
or
startup-config
file.
When you first start your device, the script set as the startup-config file is
default.cfg
. If desired,
you can overwrite
default.cfg
with another configuration. Alternatively, you can change the
startup-config by specifying a new file as the startup-config. Use the command:
awplus(config)#
boot config-file
URL
where
url
specifies the name and location of a configuration file. At the next restart, the device
executes the commands in the specified file.