cisco IOS — Storing a Startup Configuration File on an FTP Server

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:mypass@172.16.101.101/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] Managing Configuration Files Examples Command or Action Purpose Step 5 end Example: Device(config)# end (Optional) Exits global configuration mode. This step is required only if you override the default remote username or password (see Steps 2 and 3). Step 6 Do one of the following: • copy system:running-config ftp:

[[[//[username [:password ]@]location]/directory ]/filename ] or • copy nvram:startup-config ftp: [[[//[username [:password ]@]location]/directory ]/filename ] Example: Device# copy system:running-config ftp: Copies the running configuration or startup configuration file to the specified location on the FTP server. Managing Configuration Files 14