3 copying configuration files by using ftp – CANOGA PERKINS 9175 Configuration Guide User Manual

Page 273

Advertising
background image

CanogaOS Configuration Guide

Page 46-2

Beginning in privileged EXEC mode, follow these steps to upload a configuration file to a
TFTP server:

DUT#copy flash:/startup-config.conf

tftp://10.10.10.163/startup-config.conf

Upload the startup configuration file to remote TFTP
server

46.3 Copying configuration files by using FTP

You can download a switch configuration file from an FTP server or upload the file from
the switch to an FTP server.
You download a switch configuration file from a server to upgrade the switch
configuration. You can overwrite the current startup configuration file with the new one.
You upload a switch configuration file to a server for backup purposes. You can use this
uploaded configuration for future downloads to the switch or another switch of the same
type.

46.3.1 Preparing to download or upload a configuration file by using FTP

You can copy configurations files to or from an FTP server.
The FTP protocol requires a client to send a remote username and password on each
FTP request to a server.
Before you begin downloading or uploading a configuration file by using FTP, do these
tasks:

• Ensure that the switch has a route to the FTP server. The switch and the FTP

server must be in the same subnetwork if you do not have a router to route traffic
between subnets. Check connectivity to the FTP server by using the ping
command.

• If you are accessing the switch through the console or a Telnet session and you

do not have a valid username, make sure that the current FTP username is the
one that you want to use for the FTP download.

• When you upload a configuration file to the FTP server, it must be properly

configured to accept the write request from the user on the switch.

For more information, see the documentation for your FTP server.

46.3.2 Downloading a configuration file by using FTP

You can download a new configuration file and overwrite the current configuration or
keep the current configuration.

DUT#configure terminal

Enter global configuration mode.

DUT(config)#ftp username test

(Optional) Create a user “test”.

DUT(config)#ftp password test

(Optional) Create a password “test”.

DUT(config)#end

Return to privileged EXEC mode.

DUT#copy ftp://test:[email protected]/
startup-config.conf flash: /startup-config.conf

Get a startup configuration file from remote FTP
server.User’s name is “test”; the password is “test”.

DUT# show startup-config

Verify your entries.

Advertising