10.6.12 Lab - Use TFTP, Flash, and USB to Manage Configuration Files - Packet Tracer

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
ustftp flash and usb to manage configuration files topology use router 23 21 switch 2960 pca pca switch s1 r1 and connect using copper a straight through cable 0.05 to gigabit zero zero one further the net zero six to fast internet on pca router will be the ftp client switch tftp client and server pca will be dftp server addressing table are one gigabit interface ip address 1916811 similar mask 24 s1 vlog interface 192.168.11. subnet mask 24. default gateway 192.168.1.11 pca network interface card 192.168.3 mask 24 the photographer 192.168.11 cisco networking devices are often upgraded or swapped out for a number of reasons it is important to maintain backups of the latest device configuration 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 the backup copies of the files 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 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 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 tftp server software to backup the cisco device running configuration to the tftp server you can edit the file using a text editor and copy a new configuration back to a cisco device ensure that the routers and switches have been erased and have no startup configurations required resources one router 4221 in my case 4321 one switch 2960 one switch 2960 one pc pc console cables ethernet cables usb drive build the network and configure basic device settings cable the network as shown in the topology ready configure basic settings for the router okay make the console connection between pci and router r1 you can use a console cable this light blue cable console cable to connect rs2302 on pca to connect the console board on the router but you can use another option i will remove this you can use the usb cable usb this portable cable and connect from usb port to the usb console interface on the router i repeat usb console okay assign a device name okay go to pca and [Music] desktop terminal okay would you like to enter initial configuration dialog no enter this is a prompt okay hostname of enabled configure terminal hostname r1 disable dns lookup now ip domain lookup class is the privilege exact encrypted password enable secret class okay enable secret class cisco as the console password and enable login line 9 console 0 password cisco login cisco is the bty password and enable login line bty 0-15 password cisco login exit and encrypt plain text password service password dash encryption create a banner that warns anyone accessing the device that unauthorized access is prohibited by another message of the day on how to price access is raw he be that on how to write so configure interfaces okay this is the router and configure r1 gigabit zero zero one interface you go with zero zero one and set the ip address 192 168 one subnet mask 24 and now shutdown to enable the interface okay interface you can be seriously one change it state to up line protocol change it state to app save the running configuration to the server configuration and copy running config to startup coffee enter confirm enter very good okay configure basic settings for the switch assign a device name okay the switch does not have a usb console so i will use the light blue console cable from rs232 on pca to console port on s1 okay and remove this the console connection to the router okay and go to pca close the terminal open again terminal okay enter this is the prompt of the switch device name configure terminal hostname as well disable dns lookup no ip domain lookup assigned class is the privilege exact encrypted password enable secret class cisco as the console password and enable login line console zero password cisco logging cisco the pty password and enable login line bty 0 to 15 password cs go login encrypt plain text passwords and sorry configure terminal on global configuration mode service password dash encryption create banner banner message of the day on authorized access is prohibited enter shut down all induced interfaces i'm using interface [Music] interface i'm using interface six and uh interface number five six and five okay six and five so on terminal on pca shut down any other interfaces interface range fastener one two four comma first internet uh from zero one to four and from zero five and six in use from seven to twenty four and gigabit zero one and zero two shut down okay let's see configure interface with one okay this interface interface belong one ip address when i do 168 one eleven divided by quantity by zero and now shutdown to enable the interface and exit and don't forget the default gateway ip default gateway 182 16811 save the running configuration to the startup configuration file and copy running config to startup copy enter enter to confirm and okay very good verify connectivity from pca ping from pc8 to s1 okay and close terminal this is pca pca and use command prompt ping switch ping to the switch 182 168 111 okay request request timeout because you need to configure this pc this pc does not have ip address ipconfig no ip address and should be 180 160 a 1 3 and i do 168 1 3 subnet mass 24 the photo gateway 182 168 1 1 okay and command prompt and pick from pca to s1 pca ping to s1 s1 ip address is 11. success being from pca to r1 r1 is 192.168.1111 success if the pings are not successful troubleshoot usdftp to backup and restore the switch and running configuration verify the connectivity to switch s1 from pca okay success the tftp application uses the udp layer for transport protocol which is encapsulated in an ip bucket for the 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 tftp server the lan topology in this lab uses only ethernet at layers 1 and 2. however 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 ip connectivity between the client and server as demonstrated by ping the tftp transfer can take place if the pings are not successful to be shoot 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 start the tftp server and start the tftp program on pca pca does not have the tftp service a server choose a server and the server can make the [Music] and the server has the tftp service okay so this can be pc a tft okay the server has the tftp server the dftp service okay and the service is on by default is on and set an ip address to the tftp server connect this cable to faster.0 and set an ip address to the server go to desktop 182 168 one three it's blackmass24 and the foreground 182.168.11 okay and pca will be used only for console connections and this server for ethernet connection and tftp service explore the copy command on cisco device console into switch s1 okay console into switch s1 and from privilege exact mode prompt enter copy and question mark okay close the command prompt on pca and go to terminal okay enter this is the privilege exec mode copy question mark to display the options for source or from location and other available copy options you can specify flash or flash 0 as the source however if you simply provide a file name as the source flash 0 is assumed is the default note that the running is also an option for the source location okay the options are flash running startup config tftp scp ftp use the mark question to display the destination options after a source file location is chosen the flash file system from s1 is the source file system in this example okay copy flash the source and mark question to view the options for the destination copy from flash column and mark question okay and the options are the destination can be tftp running configuration sap startup configuration or tftp transfer the running config file from switch s1 to tftp server on pca from the privilege exiting mode on the switch enter the copy running config to tftp command provide the remote host address of the tftp server pca1816813 press enter to accept default destination file name s1.comg or provide your own file the exclamation marks indicate the transfer process is in progress and is successful okay use copy the source running config and the destination will be tftp column tftp server source is running config and destination tftp server and the address of the server of the remote host 182.168.13. destination file name use this is the default or provide your own file name for example i will use this as one dash run code okay i will use a custom name enter okay timeout okay try again copy from running config to tftp server address or name of the host 182.168.1.3 destination file name use your custom name as one run conf time out again review the ip address of the server 192.168.1.3 subnet mask 24. default gateway very good uncommon prompt ipconfig one eighty one sixty eight one three pick the switch 192 168 111 success okay from switch s1 ping the server 1816813 success and now transfer copy running config to tftp ipr1816813 destination file name as one run.conf enter okay success okay 1560 bytes copied okay this exclamation marks indicate the transfer process is in progress and is successful if you don't have permission to write to the current directory that is used by the dftp server the following error message displays a error opening permission denial check the directory on the tftp server usually the default directory for the tftp server software to verify that the file was transferred successfully your tftp server may have a dialog for this okay how to verify go to pca the tftp server to this server go to services and go to tftp and here you can see s1 run conf and this is the file s1 run conf on the tftp server directory create a modified switch running configuration file the save it running configuration file s1 run confirm this file as one run conf can also be restored to the switch by using copy command from the switch the original or modified version of the file can be copied to the flash file system of the switch navigate to the dftp directory on pca by using the file system of pca and then locate the s1 run conf file open this file using a text editor program such as wordpad with the file open locate a hostname as one and replace as one with switch one they let all the self generated crypto keys is necessary sample of the keys is displayed below these keys are not exportable and can cause errors while updating the running configuration these are the crypto keys this is the file on the server i cannot modify this file and go to desktop and go to command prompt then there to show the files and there is only one file okay and there is only one file same profile dot txt okay and go and close this and go to text editor and file open and there is only one file same part file okay i cannot modify this file but don't worry and save this file as a plain text file with a new file name okay skip this because i cannot do this and if your tftp software has the option use it to show the contents of its directory to verify that the file is present copy the modified running configuration file from the tftp server to switch as one from the privilege exec mode on the switch under the copy tftp running config command provide the remote host address of the tftp server 1816813 enter the new file name and the exclamation mark indicates that the transfer process is in progress and is successful okay copy from tftp the source to running configuration the destination okay as one the console connection enter and password is cisco enable password class copy from tftp server column to tftp is the source and running config the destination enter address of the remote host 182.68 16813 source file name review the source file name on the server s1 run conf okay case sensitive s1 dash wrong dot com and destination file name running config okay use the default enter okay very good exclamation mark success okay enter and the transfer has completed the prompt has changed from s1 to switch s1 okay okay before my hostname was s1 and now my hostname is still as one because i was not able to modify the file on the server okay i cannot modify this file okay and enter the show running config command to xml running configuration file show running config show running config okay the hostname interface vlan 1 ip address default gateway passwords online the enable secret password myp the main lookup when used interfaces down this 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 alternatively if the same command is issued it updates the corresponding comma in the switch or router current running configuration if you want to completely replace the current running config with the one from the tftp server you must erase the switch startup config and reload the device you will then need to configure the vlangong management address so there is ipconnectivity between the dftp server and the switch or router use tftp to backup and restore the router running configuration the backup and restore procedure from part 3 can also be performed with a router in part four the running configuration file will be backed up and restored using a tftp server verify connectivity to router r1 from pca if the pins are not successful to be shoot okay change the console to the router r1 console go to pca close the terminal and open again terminal okay enter password is cisco enable password class okay and you are on the prompt on router r1 but from pca desktop command prompt ping to the pin to the to the router is 180 168 111 success transfer the running configuration from the router r1 to tftp server on pca from privilege excellent mode on r1 enter copy running config tftp command provide the remote host address of the tftp server 1816813 and accept the default file name verify that the file has been transferred to the dftp server okay go to console on pca and copy running config to tftp column enter address or name of the remote host 1816813 this is the tftp server address destination file name use the default r1.comg enter okay exclamation marks success and okay okay verify go to the server and go to services okay and go to http and then go again to tftp and now you can see r1 config file on the server restore the running configuration file to the router erase the startup config file on the router okay go to the console on pca erase start up dash config enter confirm enter very good reload the router reload enter enter would you like to enter initial configuration dialog answer no enter press return enter okay first verify enable show running config okay the hostname is the phone only router no passwords gigabit interfaces no configurations shutdown shutdown no passwords online the device is erased and configured gigabit zero interface on the router with an ip address 182 160 a11 configure terminal interface 0.01 ip address 180 168 1 1 remember subnet mask 24 to divide 285 zero now shut down enter enter okay and verify connectivity between router and pca okay and ping the tftp server from browser r1 pick the tftp server with white here to green indicator the green triangle okay now is green and go to terminal and ping from router to tftp server tftp server is one three success use the copy command to transfer the running config file from the tftp server to the router use the running config as the destination okay copy from tftp server the source to the running dash config is the destination then running config on the router enter ip address of the server 182.168.1.3 enter source file name remember the file name is r1.comg case sensitive r1.js enter destination running config very good enter success okay very good verify show running dash config the host name is r1 enable secret password okay no ip domain lookup interface gigabit 001 configure it with ip address banner and passwords online very good backup and restore configurations using router flash memory current generation cisco routers do not have internal flash memory the flash memory for this router uses compact flash cf memory using the the use of complex flash memory allows for more available flash memory and easier upgrades without the need to open the router case 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 in part 5 you will create a backup copy of the running configuration file and save it on the usb memory on the router if the router does not use compact flash the router may not have enough flash memory for restoring the backup copy running configuration file display the router file systems the show file systems command displays the available file systems on the router the flash zero file system is the default file system on this router as indicated by the asterisk the flash 0 file system can also be referenced using the name flash the total size of the flash 0 is approximately seven gigabytes with about six gigabytes available current flash zero and mbram are the only available file systems okay so file systems there are two available file systems okay two flash and mbram two available file systems the first is the default the asterisk okay the asterix symbol is a default file system with about three gigabytes of size and free space about two gigabytes in its flash the another file system available is mbram with about 20 kilobytes of size and where is the startup config file located a startup config file is located on mbram non-volatile ram verify there is at least one megabyte of free space if there is not enough space in the flash memory please contact your instructor for further instructions you can determine the size of flash memory and space available using the show flash or deer flash command at the privilege exec pro okay now you can see here the size and the you can see here the size and the available free space copy the router running configuration to flash a file can be copied to a flash using the copy command at the privilege excel prompt in this example the file is copied to flash 0 because there is only one flash drive available as displayed in the previous step and it is also the default file system the r1 running config backup file is used as the file name for the backup running configuration file remember that file names are case sensitive in the ios file system copy the running configuration to flash memory copy running config to flash okay copy the source is running dash config and the destination is flash column enter the destination is by default running config but use this name this r1 running config backup r1 dash running dash config back up okay enter very good use their command to verify okay dear flash column enter okay this is the this is the file r1 running config backup this is the ios image and these are another files and use the more command to view the running config file in flash memory examine the file output and scroll to the interface section notice the no shutdown command is not included with the gigabit zero one the interface is shut down when this file is used to update the running configuration of the router okay use more commands to review the file click more on flash the file r1 running config backup r1 running config backup enter and you can see the the contents of the file hostname enable secret space might be the main lookup gigabit 001 configuration banner and passwords online okay erase the startup configuration and reload the router erase startup dash config dash enter enter and reload enter system configuration has been modified save no enter enter would you like to enter initial configuration dialog no enter enter verify enable show running touch config enter hostname by default router no passwords gigabit 001 down no ip address no passwords on lines very good device is erased copy the saved running configuration file from flash to update the running config copy the source is flash memory okay the source is the file on flash and the destination is running config first verify show flash column enter okay this is the file r1 running config backup the ios image and copy from flash column r r1 dash running dash config backup okay dash back up and the destination is running touch copy and now search file or directory okay and try the following copy copy the source is flash and destination is running config enter source file name use this this the file on flash r1 case sensitive r1 running dash destination file is running config very good enter enter okay and verify show running coffee house name is r1 enable cigarette this class gigabit 001 with ip address configured with is shutdown banner message of the day passwords online the show ip interface with command to view the status of the interfaces the interfacing with 001 was not enabled when the running configuration was updated because it is administratively down show ip interface brief show okay gigabit zero zero one ip adders administratively down protocol now the interface can be enabled using the no shutdown command in the interface configuration mode on the router configure configure terminal interface use hero 0 1 no shutdown enter another option is to add the not shutdown command for the gigabit 001 interface to the saved file before updating the router running configuration file this will be done in part 5 using a saved file on a usb flash drive okay now and show ip interface brief and gigabit 001 status up protocol up optional use a usb drive to backup and restore the running configuration okay this is not possible on packet racer because you cannot insert usb drive on routers okay go to r1 something this is the the physical view and this is the usb interface so you can connect here the usb drive but it's not possible on packet tracer but anyway insert the usb flash drive into usb port notice the message on the terminal when inserting the usb flash drive device usb 0 added verify usb is a new file system with you can see with show file systems commands copy the running of eurasian file to the usb flash drive copy running config to usb the source is running config the destination the usb and use this name running r1 running config backup dot txt this is the file on the usb flash drive the usb 0 and you will see the the file is this r1 running config backup.txt erase the startup config and reload the router modify the eraser startup config and reload the router and modify the saved file remove the usb from the router device usb0 remove it insert the usb into usb port of the pc modify the file using a text editor the not shutdown command is added to gwp001 interface save the file as a plain text file on the usb flash drive okay add the no shutdown command on interface geography001 remove the usb flash drive from the pc restore the running configuration file to the router they insert the usb flash drive into a usb port on the router the device usb0 added here to verify on usb r1 running config backup.txt copy the running configuration file to the router copy the source is usb and on usb this file r1 running config backup.txt and the destination is running config verify grb01 interface is enabled show ip interface brief gigabit01 status up protocol app the gigabit 01 interface is enabled because the modified running configuration included the no shutdown command reflection questions what comma do you use to copy a file from the flash to a usb drive you go to terminal and the command is copy from flash to usb0 or usb flash 0 what command you use to copy a file from usb flash drive to a tftp server okay in this case the source is copied from usb0 column to dftp server column source usb dftp the destination or usb flash 0 to tftp thank you you
Info
Channel: Christian Augusto Romero Goyzueta
Views: 2,604
Rating: undefined out of 5
Keywords: ensa, enterprise networking, security, automation, ccna, version 7, ccna 7, tera term, router, file, configuration, note pad, usb, flash, compact flash, tftp, running config, packet tracer
Id: SlL3jI667iY
Channel Id: undefined
Length: 49min 56sec (2996 seconds)
Published: Sun Nov 15 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.