Documente Academic
Documente Profesional
Documente Cultură
You can use download TFTP software from http://tftpd32.jounin.net/ ; its free.
To back up your IOS, you will use the copy command from within privileged EXEC mode. The
syntax of this command is copy <from> <to>. Thus, if you want to copy an IOS from your IOS
to a TFTP server, the syntax would be copy tftp flash. After executing this command, you will be
prompted with a number of questions asking for such things as the IOS filename and IP address
of the TFTP server.
To restore or upgrade your IOS from a TFTP server to a router, the syntax would be copy tftp
flash.
Remember the following troubleshooting steps if you are having difficulties using TFTP:
Being a Cisco Associate you should be able to take back and restore of networks critical
resources. Cisco devices use Tftp server for this purpose. In real life you should keep daily back
up of Cisco IOS and running configuration. In lab we can do the same practical on packet
tracker.
As you can see in diagram we have a TFTP server connected with router from cross cable. A pc
is connected with router from console cable. IP address on Server is 10.0.0.2 and 10.0.0.1 on
routers fast Ethernet port 0/0 is already configured.
Now your task is to take the back of running configuration on tftp server. So we can
retrieve it in any situations.
Double click on pc0 click on Desktop tab select terminal click on terminal
configuration ( Do not change default setting). Click on ok This will emulate
Router on screen
R1>enable
R1#copy running-config tftp:
Address or name of remote host []? 10.0.0.2
Destination filename [R1-confg]?
.!!
[OK - 359 bytes]
As you can see in image we have successfully taken the backup. Now open again
terminal in PC0 and remove the startup configuration. And reload the router.
R1>enable
R1#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue?
[confirm]
[OK]
Erase of nvram: complete
%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
R1#reload
Proceed with reload? [confirm]
Now router will restart and as we have already discussed in our pervious article Booting process
of Cisco devices, that router load its running configuration from NARAM. And we have deleted
the contain for NAVRAM (Startup-configuration) so it will launch default startup program.
Write No and press enter.
Now you will see default router prompt. We have to do some basic setting before
connecting the TFTP Server.
Router>enable
Router#configure terminal
Router(config)#interface fastethernet 0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit
Router#
we have done the essential configuration to connect the tftp server. Now restore
the configuration back to router
At this point the configuration is in RAM so you will lost it on reboot so copy it in
NVRAM.
Being a CCNA certified associate you should also be capable to update the IOS of Cisco devices.
This process include the serious risk of getting defective of device. So don’t do it on live device
until you became perfect on simulator.
IP and other setting is already configured on Server and Router. We have new IOS
stored on TFTP Server. Double click on pc0 click on Desktop tab select terminal
click on terminal configuration ( Do not change default setting). This will emulate
Router on screen.
First step toward the updating of IOS is to check the available space in flash
R1>enable
R1#sh flash
As you can see in output we have 30424616 bytes free available. We can
download new IOS in flash from TFTP Server. To load new IOS
As you can see in output we have downloaded new IOS now we can remove old IOS
R1#delete flash:c1841-advipservicesk9-mz.124-15.T1.bin
Delete filename [c1841-advipservicesk9-mz.124-15.T1.bin]?
Delete flash:/c1841-advipservicesk9-mz.124-15.T1.bin? [confirm]
R1#show flash
R1#reload
Proceed with reload? [confirm]
%SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.
System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)
Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory.
Router>
As you can see in output router is booted from new IOS. As new IOS is loaded so all pervious
configuration will also be removed load it again from TFTP Server and save it to NVRAM.
Router(config)#no ip domain-lookup
Ever type in a command incorrectly and are left having to wait for a minute or two as the router
tries to translate your command to a domain server of 255.255.255.255? The router is set by
default to try to resolve any word that is not a command to a Domain Name System (DNS)
server at address 255.255.255.255. If you are not going to set up DNS, turn off this feature to
save you time as you type, especially if you are not good in typing.
logging synchronous
Router(config)#line console 0
Router(config-line)#logging synchronous
Router(config-line)#exit
Router(config)#
Some time it happens that you are typing a command and an informational line appears in the
middle of what you were typing? Lose your place? Do not know where you are in the command,
so you just press R and start all over? The logging synchronous command tells the router that if
any informational items get displayed on the screen, your prompt and command line should be
moved to a new line, so as not to confuse you. The informational line does not get inserted into
the middle of the command you are trying to type. If you were to continue typing, the command
would execute properly, even though it looks wrong on the screen.
exec-timeout
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#
The command exec-timeout 0 0 is great for a lab environment because the console never logs
out. This is considered to be bad security and is dangerous in the real world. The default for the
exec-timeout command is 10 minutes and zero (0) seconds (exec-timeout 10 0).
erase startup-config
Router#erase startup-config
Some time you want to reconfigure the router. Or want to sell the old one. In such a scenario you
would like to erase the start up configuration. The running configuration is still in dynamic
memory. Reload the router to clear the running configuration.
do Command
The do command is useful when you want to execute EXEC commands, such as show, clear, or
debug, while remaining in global configuration mode or in any configuration submode. You
cannot use the do command to execute the configure terminal command because it is the
configure terminal command that changes the mode to global configuration mode