10.6.12 Packet Tracer - Use TFTP and Flash to Manage Configuration Files - Physical Mode

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
cisco networking devices are often upgraded or replaced for a number of reasons it is important to maintain backups to the latest device configurations as well as a history of configuration changes a tftp server is often used to backup configuration files and ios images in production networks a tftp server is a centralized and secure method used to store file backups and restore them as necessary using a centralizer tftp server you can backup files from many different cisco devices in addition to a tftp server most of the current cisco routers can backup and restore files locally from compact flash memory or a usb flash drive the compact flash is a removable memory module that has replaced the limited internal flash memory of earlier router models the ios image for the router resides in the compact flash memory and the router uses this ios image for the boot process with the larger size of compact flash memory additional files can be stored for backup purposes a removable usb flash drive can also be used for backup purposes you will use the ftp server software to backup the running configuration of cisco devices to the tftp server you will also backup the running configuration to flash build the network and configure basic device settings you will table the network topology and configure basic settings such as the interface ip addresses for r1 s1 and server 1. ok in use these uh copper straight through cables to connect supernat from r1 gigabit zero zero one to fast alternate five on the switch and another connection from facebook six on the switch faster not six to the faster net on the server the tftp server there are two pcs available so that you can establish a console connection from one pc to the router and they are not another pc to the switch okay and down here there are two pieces pc1 and pc2 so use the console cables to connect the console cables use the console cables from pc1 from port rs2302 to console connection on the router k2 console connection on the router this is the console connection so you have this connection from pc1 rs to 302 port to r1 console so use that another another console cable to connect to connect from pc2 port rs232 to the console on the switch right click on the switch inspect the rear and this is the console on the switch so you have this connection from pc2 port rs232 to the console connection 1s1 okay cable the network get ready use the command line interface tab on the router to configure basic settings for the router okay pc1 desktop terminal okay okay go to pc one click here dag stop terminal okay enter this is the the prompt on the router assign a device name to the router okay enable configure terminal hostname r1 okay okay this according the addressing table r1 and the disable dns lookup okay now ip domain lookup class as the privilege exit encrypted password enable secret class is the console password and enable login enter to line configuration mode with line console 0 password cisco don't forget login exit cisco bty password and enable logging 9bty from 0 to 15 or lines on the router password cisco login exit encrypt the plain text passwords service password encryption create a banner okay and banner message of the day and now to rise access is prohibited enter of your interfaces according the addressing table okay you can beat zero zero one with this ip address and subnet mask interface it will be zero zero one iprs1821681 subnet mask 24 don't forget to enable this interface not shut down exit save the running configuration to the startup configuration file exit privilege exec mode copy running config to startup dash copy enter enter very good use the command line interface tab on the switch to configure basic settings for the switch so go to the another pc pc number two desktop terminal okay this is the command line interface of the switch enter this is the prompt of the switch okay and [Music] device name disable dns lookup enable configure thermia hostname s1 according the addressing table as one okay enter disable dns recover no ip domain lookup class is the privilege encrypted password enable secret secret class cisco's the console password and enable login line console zero password cisco login exit sysquestbty password and enable logging 9bty0215 password cisco enable logging exit and create encrypt the plain text password service password encryption encryption [Music] shutdown all unused interfaces interfaces in use are on facethread5 and 6 so use the interface range et cetera from one to four comma and face internet from seven to twenty four and gigabit zero one and two okay one two four five and six and use from seven to twenty four and gigabyte1.2 and shut down okay shutdown enter okay very good shutdown configure interface bilangua according the other scene table so configure this on interface vlan 1 okay exit interface belong one ip address 182 168 1 11 285 285 0 okay now shut down enter very nice and don't forget the default get away okay exit ip the file dash get away 182.168.111 save the running configuration to the startup configuration exit okay on privilege accessing mode copy running coffee to startup config ok enter enter very nice using the desktop tab configure the ip address information on server 1 and verify connectivity with s1 and r1 ok go to the server this is the server on the rack desktop ipconfiguration and set the this ip address according the other scent table subnet mask and default gateway 182.168.13 subnet mask 24 okay and the forget 182.168.11 very nice and pink and ping from the server one to s1 okay access the server desktop command prompt and ping to s1 and what is the iprs of s1 is 11 pins to 180 to 168 111 success [Music] being from server 1 to r1 thinks to 1816811 success if the pings are not successful truly shoot the basic device configurations before continuing use the tftp to backup and restore the switch running configuration start the tftp server application on server one from the services tab of server one turn on the dftp application they click on the server go to services tab go to tftp and through no kb sure is on the tftp application uses the udp layer for transport protocol which is encapsulated in an ip packet for dftp file transfers to function there must be layer 1 and 2 ethernet in this case and layer 3 ip connectivity between the tftp client and the tftp server the lan topology in this activity uses only ethernet at layers 1 and 2. tftp transfers can also be accomplished over one links that use other layer 1 physical links and layer 2 protocols as long as there is ipconnectivity between the client and server as demonstrated by the output of the bing command the tftp transfer can take place if the pings are not successful troubleshoot the basic device configurations before continuing a common misconception is that you can tftp a file over the console connection this is not the case because the console connection does not use ip the tftp transfer can be initiated from the client device router or switch using the console connection but there must be ip connectivity between the client and server for the file transfer to take place explore the copy command on a cisco device from the privilege exit mode of s1 okay go to s1 console connection [Music] remember pc2 is connected to the console of the switch click on pc2 okay this is the problem of the switch ruby lash accent mode enter copy and question mark copy and to display the options for the source okay copy and the source can be flash ftp running config scp startup config or tftp you can specify flash or flash 0 is the source so you can specify flash or flash 0. if you simply provide a file name as the source flash 0 is assumed and is the default note that running config is also an option for the source location okay running config is another option okay and use for example flash and column okay use the question mark to display the destination options after the source file location is chosen the flash file system for s1 is the source file system in this example okay at the question mark okay this is the question mark and the destination can be ftp server running config scp startup config or dftp server transfer the running configuration file from s1 to the tftp server on server 1. from the privilege exec mode of s1 enter the copy running config okay tftp okay the copy command running config is the source and tftp server is the destination okay and use copy select the source running dash config the destination dftp column enter provide the remote host address of the tftp server 180 16813 18216813 enter press enter to accept the default destination file name s1.conf or provide your own file name okay destination file name by default is s1.conf so press enter to use the default name and success okay the exclamation marks indicate that transfer process is in progress and is successful and this is the progress and is successful check the directory in the tftp application on server 1 to verify that the file was transferred successfully server services dftp okay go to the server on the rack click on the server tftp now you can see s1 conf modify the running configuration on the switch and copy the running configuration file from the tftp server to the switch another one create a banner that warns anyone accessing the device that authorizes access is prohibited okay go to the console on the switch from pc2 this is the prompt on the switch so use show running config to verify show running okay space space space space and okay no banner okay a banner is not configured on on the switch and create the banner configure terminal by an error message of the day on authorized access is prohibited pull out right axis is prohibited enter from the privileged access mode on s1 enter copy tftp running config tftp is the source running config is the destination okay exit okay and before to do this and verify show running config now you have the banner okay a banner is configured on the running configuration on the switch and now copy from tftp to running copy copy copy from tftp column this is the source and destination is running config enter the ip address of the server 182.168.1.3 enter remember the file name of the file okay and case sensitive so go to the server as uppercase as one dash conf g okay go to the console on the switch on pc2 s1 conf g enter destination file name okay the running configuration okay is the destination running config enter okay okay success okay and now verify with show running config show running config and you you can see the banner okay and why the banner is still present notice that the banner message of the day command was added after the running configuration was copied to the tftp server it is still present after the running configuration was copied back from the tftp server if you do not erase the startup configuration the procedure merges the running config from the tftp server with the current running config in the switch or router if changes were made to the current running config the commands in the tftp copy are added if the same command is issued it updates the corresponding command in the current running config of the switch or router okay so that's why the banner is still present because the procedure merges the running config from the tftp server with the current running config in the switch or router use tftp to backup and restore the router running configuration backup and restore procedure from part two can also be performed with a router in part three the running configuration file will be backed up and restored using a tftp server transfer the running configuration from r1 to the tftp server open the terminal program on pc1 for r1 so you go to pc1 enter okay the password remember is cisco the console password cisco enabled the enable password is class okay from the privilege excel mode on r1 okay privilege excel mode copy running config to tftp remember running config is the source the ftp the destination copy running dash config tftp column enter provide the ip address 182.168.13 the address of the server 1818 168 and use the default file name okay this will be the file name r1.config enter and ok success restore the running configuration file to the router if you want to completely replace the current running config with the one from the tftp server you must erase the router store up config and reload the device you will then need to configure gigobit001 interface address so there is ipconnectivity between the tftp server and router erase startup config file on the router okay click on pc1 erase startup config enter enter okay erase of mb run complete reload the router reloads would you like to enter initial configuration dialogue no enter configure gigabit 001 interface on the router with an ip address okay use this ip configuration according the addressing table okay on pc1 enable configure terminal interface001 ip one address eight one one two fifty five to eighty five to eighty five zero no shut down exit wait until the spanning tree protocol converges on s1 okay and wait a moment and verify connectivity between the router and server okay exit from privilege exit mode into the server remember the ipl of the server is the number three okay success the exclamations are success copy command to transfer r1 dash conf file from the tftp server to the router use the running config is the destination copy the tftp column is the source and the destination is running config enter address of the remote host 182 16813 source file name remember the file name okay remember was this r1 dash com g k is sensitive r1 dash conf g or you can verify on the server to be sure and click on tftp now you can see r1.conf g so go to pc1 again and pc one jr1 dash conf g enter destination running config very good enter enter success and verify that the router has updated the running configuration the router prompt should be changed back to r1 [Music] okay on pc1 and before to restore the file the hostname was router and now the hostname is r1 so you can verify show running config okay the host name the password the the banner and the the configurations on lines backup and restore configurations using router flash memory current generation cisco routers do not have internal flash memory the flash memory for these routers uses compact flash memory the use of compact flash memory allows for more available flash memory and easier upgrades without the need to open the router case [Music] besides storing the necessary files such as ios images the compact flash memory can store other files such as a copy of the running configuration if the router does not use compact flash the router may not have enough flash memory for restoring the backup copy of running configuration file you should still read through the instructions and become familiar with the commands display the router file systems the show file systems commands display the available file systems on the router okay show file systems r1 show file systems okay in my case you can see the flash and mbram okay on real router you can see more more options the flash zero file system is the default file system on this router as indicated by the asterisks cyborg okay the asterisk symbol indicates that the flash is the default file system flash 05 system can also be referenced using the name flash the total size of flash is about 3 gigabytes with about two and a half gigabytes available okay total size is about three gigabytes and three available is about two and a half gigabytes current flash zero and mbram are the only available file systems and verify that there is at least one megabyte of free space you can determine the size of flash memory and space available using the show flash or dear flash commands where is the startup config file located it's located on the mbram copy the router running configuration to flash okay verify the free space the the free space is wide enough to support the [Music] the size of the running config so a file can be copied to flash by using the copy command at the privilege exit prompt the file is copied into flash because there is only one flash drive available as displayed in the previous step and it is also the default system the r1 dash running dash config backup file is used as the file name for the backup running configuration file okay so use the running config as the source flash as the destination copy from dash config to flash column enter do not use the default name use the following r1 touch running dash config touch backup r1 that's running dash config dash backup enter okay okay very nice so verify using deal flash or show flash show flash column you can see that the file or use deer flash this is the same okay this [Music] this is the file okay there are some differences between show flash and show deal but basically both are the same and for example um you can see here the ios image with being extension okay the ios image the ios image with being an extension use the more command to view the running config file in flash memory examine the file output and scroll the interface section notice the no shutdown command is not included with the gigabit 001 interface the interface is shut down when this file is used to update the running configuration on the router okay so use more to build the the file okay more space flash column the file r1 running config backup enter okay now you can see the hostname the password space okay and okay [Music] no shutdown command is not included okay not included here okay erase the startup configuration and reload the router erase the startup config erase start up dash config enter enter okay reloads reload and render and system configuration has been modified save no use no okay wait a moment would you like to enter initial configuration dialog no enter restore the running configuration from flash copy the saved running configuration file from flash to update the running config okay and use the flash as the source and running config is the destination enable okay verify show running config you don't have configurations no passwords no ip no passwords no no configuration so copy from flash column to running config running config is the destination enter the source file name remember the source file name okay r1 dash conf running dash config dash backup enter the destination is running config very nice enter and there now you can see the the hostname is now r1 verify show running config their password the gigabit 001 with ip address but is shut down is shut down okay so you can see okay the the indicator on gigabit zero zero one is off okay so go to pc1 space the banner the password is very nice and also you can use show ip interface brief show ip interface brief now you can see uv01 is down administratively down protocol down so uh reactivate the interface on gigabit zero zero one configure terminal interface with zero zero one no shutdown enter enter okay now you can see the indicator on the on the interface okay very nice so access pc1 access pc1 and now r1 is completely restored okay and completion 100 percent thank you thank you very much you
Info
Channel: Christian Augusto Romero Goyzueta
Views: 8,797
Rating: undefined out of 5
Keywords: ensa, enterprise networking, security, automation, ccna, version 7, ccna 7, physical mode, packet tracer, register, backup, tftp, flash, running-config, restore
Id: 8P3RXI8mlUc
Channel Id: undefined
Length: 44min 36sec (2676 seconds)
Published: Fri Jan 21 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.