We will back up the configuration file and system image of the switch or router directly to the TFTP server, so we need to prepare a TFTP server
1 We need to give the server an IP address, configure an IP address for the router's F0/1 port, and the router and the server can ping each other
2. Configure the router's boot configuration file
In privileged mode
Copy running-config TFTP save configuration file backup to TFTP server
IP address of the 192.168.1.1 TFTP server
ROUTER-CONFIG-BK take a name for the file you saved
The configuration file backup is successful and you can view your saved files on the TFTP server.
3. Configure the system image for the router
In privileged mode
You can show flash so it's easy to see the file name of iOS
Copy Flash tftp to save the system image to the TFTP server
C2008nm-advipservicesk9-mz.124-15.t1.bin The iOS file you want to copy
192.168.1.1 the address of the TFTP server
C200NM-ADVIPSERVICESK9-MZ.124-15.T1.BIN-BK take a name for the file you saved
Here the system image is configured successfully and you can view your saved files on the TFTP server.
4. Restore your configuration file, ping the TFTP server, keep the connection, download from TFTP to the router
Copy tftp running-config Download the previously configured backup from TFTP and restore the router's configuration file
IP address of the 192.168.1.1 TFTP server
RUNNING-CONFIG-BK you want to restore the backed up files in TFTP
Running-config a name for your recovered files.
Final reload, successful restart, successful recovery
5. Restore your iOS image to the same process as above
6. The configuration file of the switch is the same as the system image and the configuration method of the router above!
5.Cisco Packet Tracer about switch or router configuration files and system image backup and recovery