Table of Contents
Remote File Access – FTP
Learn how to save configurations using FTP.
Any data which is not backed up, you risk losing. On corporate networks, you should have a detailed backup and recovery plan. You may well use SFTP or some other secure method. In this lab, we will back up your router configuration using File Transfer Protocol.
Please use the following topology to complete this lab exercise.
Connect a router to a server using a crossover cable.
Configure an IP address on your Ethernet interface on your router.
Enter configuration commands, one per line. End with CNTL/Z.
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Configure an IP address on your server Ethernet interface. Set the default gateway to the router.
Ping the router from the server.
Router configurations are stored in NVRAM, but you need to save the live configuration there in order to populate it. Use the ‘copy run start’ command. Any values inside the  are the default so just press the enter key.
Router#copy run start
Destination filename [startup-config]?
Configure FTP credentials on the server. Use the username ‘101labs’ and password ‘hello.’ Tick all the access level boxes and then ‘Add.’
Add the FTP username and password to the router:
Router(config)#ip ftp username 101labs
Router(config)#ip ftp password hello
Copy the router configuration to the FTP server. Rename the saved file to today’s date. If you had to copy it back, you would need to rename it to ‘Router-confg’ but don’t worry about that for now.
Router#copy startup-config ftp:
Address or name of remote host ? 192.168.1.2
Destination filename [Router-confg]? 7sept18
[OK – 566 bytes]
Check that the file is on the FTP server. You will have to click on another service and back onto FTP because there is no refresh key.
Most backups can be identified by the name-date so you can pull back the relevant file.
The router startup configuration file contains all of your passwords and IP addresses and could amount to hundreds of lines of code. You wouldn’t want to lose it!
We have hands-on labs for Cisco, Linux, CompTIA, Ethical Hacking, IP Subnetting, Python, and more.