beautypg.com

Creating and using configuration files, Creating a configuration file, Specifying the start-up configuration script – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 132

background image

Creating and Managing Files

Software Reference for x310 Series Switches

6.8

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

Creating and Using Configuration Files

This section provides instructions on:

Creating a configuration file

Specifying the start-up 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.

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:

where URL specifies a file in Flash. If you do not specify a file name, the switch names
the file default.cfg.

using the device’s text editor. Use the command:

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 start-up configuration script”

for more information.

Specifying the start-up configuration script

When you restart your device, or when it automatically restarts, it executes the pre-
configured 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:

where URL specifies the name and location of a configuration file. At the next restart, the
device executes the commands in the specified file.

You can specify that the configuration file is either in the Flash or USB storage device
filesystem. However, if you specify that the configuration file is on a USB storage device
then you must first create a backup configuration file stored in Flash.

awplus#

copy running-config (destination-URL)

awplus#

edit (source-URL)

awplus(config)#

boot config-file backup

URL