Examples Copy FTP Running-Config The following example copies a host configuration file named host1-confg from the netadmin1 directory on the remote server with an IP address of 172.16.101.101, and loads and runs the commands on the device: device# copy ftp://netadmin1:mypass@172.16.101.101/host1-confg system:running-config Configure using host1-confg from 172.16.101.101? [confirm] Connected to 172.16.101.101 Loading 1112 byte file host1-confg:![OK] Managing Configuration Files Examples Command or Action Purpose Example: Device> enable • Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal (Optional) Allows you to enter global configuration mode.
This step is required only if you want to override the default remote username or password (see Steps 3 and 4). Step 3 ip ftp username username Example: Device(config)# ip ftp username NetAdmin1 (Optional) Specifies the default remote username. Step 4 ip ftp password password Example: Device(config)# ip ftp password adminpassword (Optional) Specifies the default password. 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 3 and 4). Step 6 Do one of the following: • copy ftp: [[[//[username[:password]@]location] /directory ]/filename]system:running-config • copy ftp:
[[[ /[username[:password]@]location]/directory]/filename]nvram:startup-config Example: Device# copy ftp:nvram:startup-config Using FTP copies the configuration file from a network server to running memory or the startup configuration. Managing Configuration Files 18