Sooner or later in your networking career, you will realize that there is nothing more important than backing up your system's configuration. Days, or even months of hard work can disappear in a matter of seconds. That's why it is so important to always take the measures to prevent this from happening. Show
Performing backups often is importnat but also testing them can be invaluable because you need to make sure that you can rely on them when needed. So let's start by learning how to connect to a Cisco router by using telnet and console access. Then we will see how to perform configuration backup to a TFTP server and how to restore the backup in case it is needed. Connecting to a Cisco Router Using ConsoleStep 1: Attach a console cable to the console port (Rj-45) located at the back of the router. Step 2: Open a new HyperTerminal instance from Start-All Programs-Accessories-Communications-HyperTerminal, enter a random name to this connection and choose the com port to use for connecting to the router. Adjust the following port settings to the com port: Bits per second: 9600 Step 3: After pressing [Enter] a few times you will see the Router> prompt. Go to menu view-font of the hyperterminal and select courier font with font size 14. Write enable to enter into privileged mode (after issuing the correct enable secret). Here are the steps: [Router name]> Connecting to a Cisco Router Using TelnetNote that in order to be able to telnet onto a router, a telnet password must have been configured on the router and also telnet access should not be disabled on the specific router. Before installing a new router you must provide a password for the telnet access on the router, otherwise you will not be able to telnet to it. Use the console to connect to the router: [Router name] enable Press [enter] until you see a sentence like: line vty 0 4 (see the example below). Below this sentence you should see a password. If not then you should provide a password. If a password is set but no exec line is seen like in the example below, then telnet is blocked and you should unblock it. Example: Line vty 0 4 a. To Provide a telnet PasswordRouter#config t b. To Unblock telnet Access on RouterRouter#config t Backing Up Router ConfigurationTo copy the configuration from the router to the TFTP server you can use the copy run tftp command. It will backup the router configuration thats stored in DRAM. Then you will be asked to enter the address of the TFTP server and the name of the destination file on TFTP server like this: [Router name] #copy run tftp -- to copy the running configuration to TFTP server Address or name of remote host []? 172.16.10.2 -- the ip address of TFTP server Destination filename [routername-confg]? /Backup/Router01.cfg -- the folder path on the server where the configuration file will be stored) Restoring Router ConfigurationIn this section I'll show you how to restore a running router with basic configuration and also how to restore a new router with no basic configuration -- both of which scenarios you'll probably run into. 1. Restoring a Running Router with Basic ConfigurationIn case the router has the basic configuration (i.e. router ports are assigned to subnet), use the command copy TFTP run and then complete the rest of the requirements like this: [router name]# show run -- to see the running configuration We issue show run command to verify that the configuration has been copied to the router. Use show interfaces command to ensure that the interfaces where we have cables connected to them are up. Issue the command copy run start to copy the configuration from running configuration (DRAM) to Startup configuration (NVRAM). The following is an example of what you will see on the screen when you issue the show interfaces command: Vlan1 is up, line protocol is up Usually fastethernet ports are brought up on their own as soon as the ethernet cable is attached to them. In case a certain port is still down after we have connect a cable in it we use: [Router name]#config t 2. Restoring a New Router with No Basic Configurationa. Provide basic router configurationIn case we install a new router with no configuration, then we have to incorporate this router into the subnet before restoring the final configuration. We have to assign an IP address and subnet mask to interface Vlan1. First we have to go through the old configuration files either from the old router or from the tfrp server and look for the IP address and subnet that the router was configured with, on its previous location. This information will look like this: interface vlan1 Make a note of both IP address and subnet and then log onto your new router with the console cable using a hyperterminal. Issue passwords and then issue the following: [Router name]#config t b. Copy configuration from TFTP server to the router[Router name] #copy TFTP run My Advice: Save This Article in a Safe PlaceThis article has all the details of backing up and restoring configuration files on Cisco switches/routers. Whatever you do -- don't underestimate this information. Believe me when I say, this should be your first and most important thing you need to learn and apply in practice if you want to sleep peacefully at night. My Advice:
Ready to test your skills for the CCNA exam? See how they stack up with this assessment from Smarterer. Start this CCNA test now. Which command would be used to restore the running configuration from a backup file on TFTP server?copy running -config tftp. Back up is nothing but restoring the data. while copy running-config TFTP command is used to create and save this backfile in TFTP server.
How to restore backup from TFTP server?Use a TFTP Server to Backup and Restore a Configuration
At theRouter>prompt, issue theenablecommand, and provide the required password when prompted. The prompt changes toRouter#, which indicates that the router is now in privileged mode. Open the configuration file with a text editor.
Which command would be used to back up a running configuration to a configured TFTP server?IOS configurations are usually copied to a TFTP server using the copy command. You can backup both the startup configuration and the running configuration of your device. The copy command accepts two parameters: the first parameter is the from location, and the second it the to location.
Which command is used to copy a configuration script file from a TFTP server?Use the copy system:running-config {ftp: | rcp: | tftp:} command to copy the current configuration file to a network server using FTP, rcp, or TFTP. Use the copy nvram:startup-config {ftp: | rcp: | tftp:} command to copy the startup configuration file to a network server.
|