Maybe today or tomorrow in your networking arena, you will know that there is nothing more crucial than backing up the configuration of your system.
Some have realized this only when their hard work of many days or even months has disappeared in just a click. That’s why it is quite necessary to take urgent precautionary measures to save from this problem.
One must understand that making backups often is crucial yet also testing them may be unnecessary as you get to be sure that you can trust them when required.
Now, let’s start to learn & understand how to backup & restore the settings configured in a router.
Only after learning this method, we will see another method on how to connect to a Cisco router by using console access.
Then this will be succeeded by
a. How to restore the backup whenever required.
b. How to perform configuration backup to a TFTP server and
Let;s commence with the 1st method.
How to backup and restore the settings configured in a router?
The option of Backup Settings makes you save a file having all the configuration settings of the Router, i.e., WAN setup wireless settings, port forwarding, etc. on a computer to a required file.
When there’s a reset in Router to the Factory Default settings, this particular file can be utilized to restore the settings.
Now, to save the settings:
- Open a browser & type in the search bar
http://www.routerlogin.com or http://192.168.0.1 or http://192.168.1.1 or (depends on the Router’s model)
- Log into the Router.
Note that, by default, User Name is “admin” & password is “password”.
- Click Backup settings which are in the menu, under Maintenance.
- Click the Backup button.
- Then select a location on the PC to save the file.
Finally, to Restore the settings:
- Click Backup settings, which is in the menu, under Maintenance.
- Click on Browse & choose the configuration file which was earlier saved by you.
- Then click Restore to the Router to update the settings.
- Finally, the Router will get restored to the settings, similar to the resetting to the factory defaults that was done before.
Please Note: If restoring the settings has altered the router IP address, your computer may not be able to make communication with it until:
- You renew the dynamic IP address on the PC, or
- Have a decent static IP address on the PC.
Moving on, let’s have a look at the 2nd method.
Connecting to a Cisco Router Using Console
- Get a console cable to the console port, located at the backside of the Router.
- Choose from the latest HyperTerminal instance, i.e., Start-All Programs-Accessories-Communications-HyperTerminal.
- Now, type any name to the connection. And, choose the com port to use to join to the Router.
- Hence, keep the port settings to the com port:
- Flow control: Hardware
- Bits per second: 9600
- Parity: none
- Data bits: 8
- Stop bits: 1
- Just after going for “Enter”, one may see the Router> prompt.
To the menu view-font of the Hyperterminal, do a search and find. Then, select courier font with 14 as font size.
Type enable to get into privileged mode (since after receiving the correct desired secret).
Here are the points to write:
Backing Up Router Configuration
One may use the command copy run tffp to the TFTP server from the router, only to copy the configuration. The router configuration is stored in DRAM once you follow this method.
After all, this, write the address of the FTTP server & the file’s name destination on TFTP server as follows:
To copy the running configuration to TFTP server à [Name of the Router]#copy run tftp
The IP address of TFTP server à Remote Host address or name ? 172.16.10.2
[routername-confg]?/Backup/Router01.cfg — the path of the folder where the configuration file on the server shall be stored.
Restoring Router Configuration
Let us know this technique to save precious data.
1. Restoring a Running Router with basic configuration
One may use the command copy TFTP run. Only after that, we must complete the rest of the needs when there is the basic configuration of the router.
[name of the router]# show run
[name of the router]#copy tftp run
remote host’s name or address ?172.16.10.2
[name of the router]#show run
[name of the router]#show interfaces
[name of the router]#copy run start
Now utilize the show run command to check that the configuration has been copied to the router or not.
To be sure that the interfaces connected to the cables are running, use show interfaces command.
Type copy run start command to make a copy of the configuration to startup configuration (NVRAM) from current configuration (DRAM).
When you get the show interfaces command, this message will pop up on the screen:
Vlan1 is up, line protocol is up
fastethernet 0/1 is up, line protocol is up
fastethernet 0/2 is down, line protocol is down
2. Restoring a New Router with No Basic Configuration
a. Get the basic router configuration
One requires to keep this router into the subnet before restoring the last config when one installs a new router with no config.
Firstly, revisit the previous config, either from the past router or from the tftp server. Secondly, find IP address & subnet that the router was config with its previous location
The following details would come out to be:
IP address [ip address] [subnet]
One must write down about both subnet & IP address & then, use a Hyperterminal, sign in with the console cable for the new router.
Get passwords and this:
[Name of the router]#config t
[Name of the router](Config)#int vlan1
[Name of the router](Config-if)#ip address [ip address] [subnet]
[Name of the router](Config-if)#no shutdown
[Name of the router]# show run — to check that IP address on vlan1 has been set
b. Copy configuration to the router from TFTP server
[Name of the router] #copy TFTP run
Address or name of remote host ?172.16.10.2
[Name of the router]#show run
[Name of the router]#show interfaces
[Name of the router]#copy run start