Purpose
Command or Action
Device# copy system:running-config ftp:
Examples
Storing a Running Configuration File on an FTP Server
The following example copies the running configuration file named runfile-confg to the netadmin1 directory
on the remote host with an IP address of 172.16.101.101:
Device#
copy system:running-config ftp://netadmin1:[email protected]/runfile-confg
Write file runfile-confg on host 172.16.101.101?[confirm]
Building configuration...[OK]
Connected to 172.16.101.101
Device#
Storing a Startup Configuration File on an FTP Server
The following example shows how to store a startup configuration file on a server by using FTP to copy the
file:
Device#
configure terminal
Device(config)#
ip ftp username netadmin2
Device(config)#
ip ftp password mypass
Device(config)#
end
Device#
copy nvram:startup-config ftp:
Remote host[]?
172.16.101.101
Name of configuration file to write [start-confg]?
Write file start-confg on host 172.16.101.101?[confirm]
![OK]
What to Do Next
After you have issued the
copy
EXEC command, you may be prompted for additional information or for
confirmation of the action. The prompt displayed depends on how much information you provide in the
copy
command and the current setting of the
file prompt
global configuration command.
Copying a Configuration File from a TFTP Server to the Device
To copy a configuration file from a TFTP server to the device, complete the tasks in this section:
SUMMARY STEPS
1.
enable
2.
copy tftp:
[[[
//location
]
/directory
]
/filename
]
system:running-config
3.
copy tftp:
[[[
//location
]
/directory
]
/filename
]
nvram:startup-config
4.
copy tftp:
[[[
//location
]
/directory
]
/filename
]
flash-[n]:/directory/startup-config
System Management Configuration Guide, Cisco IOS XE Gibraltar 16.10.x (Catalyst 9200 Switches)
157
Managing Configuration Files
Examples