Configuration Backup Once The Device Is Configured Properly
Configuration Backup Once The Device Is Configured Properly
Configuration Backup Once The Device Is Configured Properly
Before starting the lab lets understand few things related with the
backup or downloading the Configuration file.
Backup can be taken using lots of way, the common method is using
TFTP,FTP and SCP etc. But TFTP is being used most of the cases
because of it’s simplicity. In this LAB we will perform our tasks using
TFTP only.
TFTP stands for Trivial File Transfer Protocol. It uses UDP port 69. This
software is being used widely for transferring IOS images,
Configuration files, License , Software/tools etc. from Host to Device
and vice versa.
TFTP client: usually the Networking Devices are the TFTP client. They
are the one who will be connected to the TFTP server.
You can download TFTP software from internet. Chef’s favorite one is
tftpd.32. You can download the software from the link below :
http://tftpd32.jounin.net/
its simple and small sized software. You don’t need to install it. Just
download and use directly.
This lab can be done using Cisco Packet Tracer, GNS3 and also in
Real devices. Here the Chef will show his recipe using GNS3.
1. Basic Configuration:
Configuration of Router :
Router(config)#hostname R1
R1(config)#
R1(config)#interface fa0/0
R1(config-if)#no shutdown
R1(config-if)#
R1(config-if)#exit
R1(config)#exit
Building configuration…
[OK]
Now startup configuration file is also generated.
First open tftp software. Here chef has tftpd32 which is free to
Connectivity are checked earlier and found ok. If you don’t find
connectivity by using PING command then try again after disabling the
windows firewall or your OS’s firewall. Windows firewall usually blocks
the icmp packets.
You have to apply the command in privilege mode.the command
syntax are following:
For example,
Copy = Syntax
Router R1
!!
!!
R1#
Now open the TFTP folder to check the Configuration backup file.
Router R1
Accessing tftp://192.168.1.7/R1-Startu-Config_4-8-2017…
[OK]
R1#
Accessing tftp://192.168.1.7/R1-running-Config_4-8-2017…
R1#
R1#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
R1#reload
Now we don’t have any configuration in our router. But to upload the
backups router must be reachable to TFTP server.
So, lets configure one interface with the IP address so that router can
communicate with TFTP server. After that router will be able to take
backups from TFTP server.
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fa0/0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Router#ping 192.168.1.7
!!!!!
Accessing tftp://192.168.1.7/R1-Startu-Config_4-8-2017…
[OK]
Router#
R1#
Did u notice that after copying startup to running config the hostname
changed to the R1 ? SO our work is done.
Now what happen when we roll back the running configuration file ?
Lets erase the config, reload the router and configure the ip address
only. The upload the Running-Config file in the Router.
Accessing tftp://192.168.1.7/R1-running-Config_4-8-2017…
R1#
Now we have directly load the Running-config file in router’s RAM. Now
enable the required interfaces using no shutdown command as
mentioned above.
But LAB is not finished yet. We have not saved the configuration yet.
Now if the router reboots our configuration will be lost. So we must
save the configuration.
Building configuration…
[OK]
http://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-
software-releases-122-mainline/46741-backup-config.html
If you find this post helpful then please do not hesitate to rate this
post.
(1 votes, average: 5.00 out of 5)
Basic Configurations 1
Basic Configurations 2
Interface Configuration
Telnet
SSH
Password Recovery