WEBVTT 0:00:07.140000 --> 0:00:11.520000 In this video, which is in section two of the Cisco Certified Technician 0:00:11.520000 --> 0:00:15.340000 series for routing and switching, we're going to talk about copying configuration 0:00:15.340000 --> 0:00:21.160000 files. My name is Keith Bogart and I will be your instructor for this 0:00:21.160000 --> 0:00:26.800000 video. In this video, the primary things I want to talk about are easily 0:00:26.800000 --> 0:00:31.420000 reverting to a default configuration file, how you can do that, how you 0:00:31.420000 --> 0:00:36.800000 can copy config files from your router or switch to your laptop, and just 0:00:36.800000 --> 0:00:39.860000 the opposite, how you take those files that were copied to your laptop 0:00:39.860000 --> 0:00:43.740000 and then copying them back to the router or the switch. 0:00:43.740000 --> 0:00:47.800000 So let's start by talking about easily reverting to a default configuration 0:00:47.800000 --> 0:00:53.140000 file. Now chances are in a production live environment, you're not going 0:00:53.140000 --> 0:00:56.700000 to be taking your routers or switches and very frequently setting them 0:00:56.700000 --> 0:00:59.340000 back to a factory default state. 0:00:59.340000 --> 0:01:02.940000 However, certainly if you're practicing for a certification exam like 0:01:02.940000 --> 0:01:07.720000 the CCT, the CCNA or anything on up, there's going to be plenty of times 0:01:07.720000 --> 0:01:12.160000 when you're done with a particular lab, you want to wipe out the configuration 0:01:12.160000 --> 0:01:16.800000 on that router or switch and bring it back to a factory default state 0:01:16.800000 --> 0:01:19.840000 so you can start building up another lab. 0:01:19.840000 --> 0:01:22.600000 Now normally, what would the process be to do that? 0:01:22.600000 --> 0:01:26.640000 Well on a router, the process would be simply to type in the command write 0:01:26.640000 --> 0:01:34.480000 erase. So for example, I'll go over here, go on to router and you just 0:01:34.480000 --> 0:01:38.640000 simply go into enable mode and there's actually two commands that do the 0:01:38.640000 --> 0:01:40.160000 exact same thing. 0:01:40.160000 --> 0:01:47.980000 You could type write erase or most people just shorten that to WR space 0:01:47.980000 --> 0:01:54.100000 erase. Then I'll ask you, do you wish to delete your NV RAM contents and 0:01:54.100000 --> 0:01:59.820000 you just hit enter and now the NV RAM contents have been erased. 0:01:59.820000 --> 0:02:02.960000 Another command that does the exact same thing that actually when you're 0:02:02.960000 --> 0:02:08.100000 pursuing your CCNA, they would prefer that this command is much longer, 0:02:08.100000 --> 0:02:14.560000 it's erase startup-config. 0:02:14.560000 --> 0:02:17.660000 That does the exact same thing. 0:02:17.660000 --> 0:02:20.920000 It erases the NV RAM file system. 0:02:20.920000 --> 0:02:24.000000 So write erase, NV RAM, but then you're not done. 0:02:24.000000 --> 0:02:27.920000 This thing still has the running config, it still has all of the stuff 0:02:27.920000 --> 0:02:30.700000 you just did in the lab you just completed. 0:02:30.700000 --> 0:02:35.260000 So now what you would have to do is type the reload command, which is 0:02:35.260000 --> 0:02:37.440000 like power cycling the device. 0:02:37.440000 --> 0:02:42.160000 It actually warns you it says, hey, this is iOS's way of saying I see 0:02:42.160000 --> 0:02:43.320000 a discrepancy here. 0:02:43.320000 --> 0:02:46.940000 Right now I have a running config that has a whole bunch of stuff in it. 0:02:46.940000 --> 0:02:51.840000 When I reload, I'm going to be loading my startup config, but I don't 0:02:51.840000 --> 0:02:54.380000 see a startup config, there's nothing here. 0:02:54.380000 --> 0:02:58.160000 So do you want me to save what's in the running config to the startup 0:02:58.160000 --> 0:03:03.360000 config? Well in this case, my answer would be no, because my whole objective 0:03:03.360000 --> 0:03:07.940000 is to reload this guy so it comes up with a clean slate where it's empty, 0:03:07.940000 --> 0:03:09.080000 it has nothing in it. 0:03:09.080000 --> 0:03:12.520000 So I would say no, I don't want to save it. 0:03:12.520000 --> 0:03:14.100000 Then it says do you wish to reload? 0:03:14.100000 --> 0:03:19.400000 Yes, I do. And now I'd have to sit back for about somewhere between three 0:03:19.400000 --> 0:03:22.540000 and five minutes and watch this thing reload. 0:03:22.540000 --> 0:03:25.840000 It takes quite a while depending on the platform that you're on for it 0:03:25.840000 --> 0:03:30.020000 to reload, but it'll be a minimum of two minutes, sometimes as much as 0:03:30.020000 --> 0:03:33.400000 five minutes. Is there a way to speed this up? 0:03:33.400000 --> 0:03:40.740000 Yes, there is. So let me go over to another device now. 0:03:40.740000 --> 0:03:44.060000 So here I'm on a device where I've already done that. 0:03:44.060000 --> 0:03:46.980000 So you can't avoid doing that once. 0:03:46.980000 --> 0:03:50.560000 That process that I went through of clearing the config with a right erase 0:03:50.560000 --> 0:03:54.740000 and then reload, you got to do that at least one time to set it back to 0:03:54.740000 --> 0:03:56.560000 a factory default state. 0:03:56.560000 --> 0:03:59.700000 Now on a switch, I didn't show you on a switch, let me show you the series 0:03:59.700000 --> 0:04:03.400000 of steps on a switch, it's almost identical. 0:04:03.400000 --> 0:04:08.140000 On a switch, you still have to get into privileged exec mode, type right 0:04:08.140000 --> 0:04:13.020000 erase, and yes hit enter. 0:04:13.020000 --> 0:04:16.360000 Okay, but there's one additional file in a switch that you have to delete 0:04:16.360000 --> 0:04:21.760000 as well. All of the VLAN and VTP information is stored in a separate file 0:04:21.760000 --> 0:04:24.480000 called the VLAN.dat file. 0:04:24.480000 --> 0:04:29.140000 And that file, if it's not erased, well, when you reload the box, the 0:04:29.140000 --> 0:04:33.460000 running config will be empty, but your VLANs and your VTP stuff will still 0:04:33.460000 --> 0:04:37.320000 be there. So if I truly want to start a switch from a factory default 0:04:37.320000 --> 0:04:41.240000 state, I have to also delete that VLAN.dat file. 0:04:41.240000 --> 0:04:48.240000 So to do that, you would say delete flash colon VLAN.dat. 0:04:48.240000 --> 0:04:53.360000 So I'm saying delete flash memory, that particular file in flash memory. 0:04:53.360000 --> 0:04:55.680000 Now be very careful with this command. 0:04:55.680000 --> 0:05:02.820000 Why? If I accidentally typed delete flash colon and then hit enter and 0:05:02.820000 --> 0:05:04.840000 then reload the box, guess what? 0:05:04.840000 --> 0:05:07.480000 Well, there's something very critical in flash memory. 0:05:07.480000 --> 0:05:12.520000 I don't want to delete my Cisco software image, my iOS software. 0:05:12.520000 --> 0:05:16.460000 And if I hit delete flash colon right now, that would be wiped out. 0:05:16.460000 --> 0:05:19.760000 And then I'd have to go through some disaster recovery process to put 0:05:19.760000 --> 0:05:23.780000 a new iOS image on this box, which would take a long time. 0:05:23.780000 --> 0:05:26.500000 So I don't want to delete everything in flash. 0:05:26.500000 --> 0:05:30.040000 I just want to delete my VLAN.dat file. 0:05:30.040000 --> 0:05:33.920000 That's it. And it'll say, OK, is that the name you want to delete? 0:05:33.920000 --> 0:05:36.340000 Yes, I'm going to hit my return key again. 0:05:36.340000 --> 0:05:38.380000 It confirms one more time. 0:05:38.380000 --> 0:05:42.460000 Are you sure? So it's really being serious here, yes. 0:05:42.460000 --> 0:05:47.120000 OK, and now I can reload the switch. 0:05:47.120000 --> 0:05:50.220000 It will ask me once again, do I want to save my config? 0:05:50.220000 --> 0:05:54.480000 No, I don't, because I want to set this guy back to factory defaults, 0:05:54.480000 --> 0:05:56.380000 proceed with reload. 0:05:56.380000 --> 0:05:58.800000 And once again, I'm going to have to sit back here for three or four minutes 0:05:58.800000 --> 0:06:00.920000 until it comes back up. 0:06:00.920000 --> 0:06:07.060000 Now, eventually when it comes back up, it will present me with the system 0:06:07.060000 --> 0:06:10.340000 configuration dialog or the initial configuration dialog. 0:06:10.340000 --> 0:06:14.280000 This is your proof that there was no startup configuration. 0:06:14.280000 --> 0:06:17.720000 If it had startup configuration, I wouldn't be seeing this. 0:06:17.720000 --> 0:06:18.920000 So this is great. 0:06:18.920000 --> 0:06:22.880000 So I had to do this at least once to truly get my device back to a factory 0:06:22.880000 --> 0:06:26.740000 default state. So I'm going to ignore the system configuration dialog. 0:06:26.740000 --> 0:06:27.760000 I don't want to do anything there. 0:06:27.760000 --> 0:06:29.460000 So I'm going to say, would you like to enter it? 0:06:29.460000 --> 0:06:31.780000 No, I don't want to enter it. 0:06:31.780000 --> 0:06:37.320000 And then on some devices, some routers, it might say, do you wish to terminate 0:06:37.320000 --> 0:06:41.120000 auto install? And yes, I would want to terminate auto install. 0:06:41.120000 --> 0:06:44.900000 It looks like this box probably is not going to prompt me for that. 0:06:44.900000 --> 0:06:47.880000 So let's just wait for a moment. 0:06:47.880000 --> 0:06:49.940000 Okay, so now it's back. 0:06:49.940000 --> 0:06:53.440000 So now this router is in a factory default state. 0:06:53.440000 --> 0:06:57.040000 I erased my envy ram that has my startup config. 0:06:57.040000 --> 0:07:00.100000 I reloaded it. It's in a factory default state. 0:07:00.100000 --> 0:07:05.320000 Now, before I do anything else, here is the trick. 0:07:05.320000 --> 0:07:07.480000 I will go into enable mode. 0:07:07.480000 --> 0:07:11.260000 Now right now my running, remember my startup config was empty. 0:07:11.260000 --> 0:07:13.560000 And so now my running config is the default. 0:07:13.560000 --> 0:07:17.620000 It has really nothing in it other than what it comes up with by default. 0:07:17.620000 --> 0:07:22.980000 So now what I'm going to do is I'm going to save my running config, copy 0:07:22.980000 --> 0:07:27.600000 run, but I'm not going to save it to my startup config. 0:07:27.600000 --> 0:07:31.820000 I'm going to say copy run and I want to save it to flash memory. 0:07:31.820000 --> 0:07:34.240000 And let's give it a unique name that I can remember. 0:07:34.240000 --> 0:07:38.420000 So in the future, when I want to convert this thing back to a default 0:07:38.420000 --> 0:07:41.640000 configuration, I'll remember that name. 0:07:41.640000 --> 0:07:47.160000 I typically like to use it's called clean slate, clean dash slate. 0:07:47.160000 --> 0:07:50.180000 So what this is doing here is I'm saying take my running configuration, 0:07:50.180000 --> 0:07:54.740000 which right now really has nothing in it, and save it to flash memory 0:07:54.740000 --> 0:07:58.200000 and rename it as clean slate. 0:07:58.200000 --> 0:08:03.880000 And this case is going to say there's already a file there because I've 0:08:03.880000 --> 0:08:05.420000 already done this in subsequent lab. 0:08:05.420000 --> 0:08:10.300000 So I'm just going to overwrite that. 0:08:10.300000 --> 0:08:16.820000 Okay, so now within my flash memory, I have this file called clean dash 0:08:16.820000 --> 0:08:19.960000 slate, which is very small. 0:08:19.960000 --> 0:08:21.760000 There really has nothing on it. 0:08:21.760000 --> 0:08:24.080000 It's just my default configuration. 0:08:24.080000 --> 0:08:27.140000 And that's it. So now I go along and I do my lab. 0:08:27.140000 --> 0:08:29.360000 Okay, I'll give it some new host name. 0:08:29.360000 --> 0:08:34.900000 Host name Keith. 0:08:34.900000 --> 0:08:38.700000 I'll configure rip version two. 0:08:38.700000 --> 0:08:44.160000 I'll put some interface in here with an IP address. 0:08:44.160000 --> 0:08:48.460000 Okay, and I'm done. 0:08:48.460000 --> 0:08:50.220000 I'm done with my lab. 0:08:50.220000 --> 0:08:54.760000 And now I want to once again revert this back to a default configuration. 0:08:54.760000 --> 0:08:58.880000 Now instead of doing the writer race and reload and sitting around and 0:08:58.880000 --> 0:09:01.500000 grabbing a cup of coffee for four or five minutes while it goes to the 0:09:01.500000 --> 0:09:06.400000 reload process, I can do it much more quickly because now I have still 0:09:06.400000 --> 0:09:11.000000 within my flash memory, this file called clean slate. 0:09:11.000000 --> 0:09:16.780000 And I can revert to that with the config replace command. 0:09:16.780000 --> 0:09:20.240000 The config replace command says, look, I'm going to specify a configuration 0:09:20.240000 --> 0:09:24.680000 somewhere in flash memory, maybe on a TFTP server. 0:09:24.680000 --> 0:09:29.040000 What I want you to do is this file I'm specifying, I want you to swap 0:09:29.040000 --> 0:09:32.140000 it with my existing running config. 0:09:32.140000 --> 0:09:38.420000 So when I say config replace flash colon clean dash slate, as soon as 0:09:38.420000 --> 0:09:42.200000 I hit enter, what's going to happen is it's going to take my running config, 0:09:42.200000 --> 0:09:48.500000 completely destroy it and swap it for my clean slate config, which has 0:09:48.500000 --> 0:09:50.120000 absolutely nothing on it. 0:09:50.120000 --> 0:09:51.940000 Now it's going to warn me. 0:09:51.940000 --> 0:09:54.080000 It's going to say, are you sure you wish to do this? 0:09:54.080000 --> 0:09:56.920000 Yes, I am sure I do want to do it. 0:09:56.920000 --> 0:10:02.080000 Now sometimes also what you will see is if Cisco iOS software recognizes, 0:10:02.080000 --> 0:10:07.500000 huh, the running config is this big and the configuration you want to 0:10:07.500000 --> 0:10:11.000000 swap it for is like less than 50% of that. 0:10:11.000000 --> 0:10:12.440000 It'll actually tell you that. 0:10:12.440000 --> 0:10:15.820000 It'll say the config you want to replace is 50% less. 0:10:15.820000 --> 0:10:17.820000 Are you sure you want to do this? 0:10:17.820000 --> 0:10:20.100000 In this particular case, I didn't see that. 0:10:20.100000 --> 0:10:24.520000 And now you can see my host name changed because I'm back to my clean 0:10:24.520000 --> 0:10:28.820000 slate config. So I just saved myself four or five minutes of time of having 0:10:28.820000 --> 0:10:33.180000 to reload this box because I had already saved the default config and 0:10:33.180000 --> 0:10:38.360000 now I can revert back to it as many times as I want with my config replace 0:10:38.360000 --> 0:10:43.140000 command. So hopefully they'll save you a lot of times and labs and things 0:10:43.140000 --> 0:10:46.760000 like that if you ever want to revert back to a default configuration. 0:10:46.760000 --> 0:10:49.440000 You can also do that on a switch as well. 0:10:49.440000 --> 0:10:52.520000 Now one thing to remember though about the switch is when you use the 0:10:52.520000 --> 0:10:56.720000 config replace command, all you're doing is you're swapping your current 0:10:56.720000 --> 0:11:01.620000 running config for the configure replacing it with does not affect your 0:11:01.620000 --> 0:11:05.740000 VTP file. So it will not affect your current VLANs. 0:11:05.740000 --> 0:11:09.140000 It will not affect your VTP configuration. 0:11:09.140000 --> 0:11:13.320000 So you're not truly going back to a default configuration on a switch 0:11:13.320000 --> 0:11:17.160000 whereas you are doing it on a router. 0:11:17.160000 --> 0:11:19.300000 Now let's move on to the next section. 0:11:19.300000 --> 0:11:24.600000 How do I save a configuration from a router to my laptop? 0:11:24.600000 --> 0:11:26.320000 So that's real easy. 0:11:26.320000 --> 0:11:30.740000 So first thing you want to do normally when we issue the show run command, 0:11:30.740000 --> 0:11:34.180000 if your configuration is any more than about 30 lines which it probably 0:11:34.180000 --> 0:11:47.860000 will be, you will get something like to hit space bar and then do it again, 0:11:47.860000 --> 0:11:51.700000 space bar and then hit again until you get all the way down to the bottom. 0:11:51.700000 --> 0:11:58.720000 Well if I currently, if I copied this to a text file on my computer it 0:11:58.720000 --> 0:12:03.500000 would include these hyphen, hyphen, more hyphen, hyphen in the config 0:12:03.500000 --> 0:12:06.660000 file. I probably don't want that. 0:12:06.660000 --> 0:12:10.540000 So a couple of things you can do which are real quick. 0:12:10.540000 --> 0:12:14.600000 So number one, one easy way you can do it is you can open up your text 0:12:14.600000 --> 0:12:17.480000 editor, whatever that happens to be. 0:12:17.480000 --> 0:12:20.740000 Let me go ahead and get to my text editor here. 0:12:20.740000 --> 0:12:27.040000 So I'm going to bring up notepad and what I can do is I can say, oh well 0:12:27.040000 --> 0:12:33.420000 you know all I want to copy is this portion of my EIGRP. 0:12:33.420000 --> 0:12:35.260000 So I can just highlight it. 0:12:35.260000 --> 0:12:39.100000 Now this really depends on the terminal emulation program you're working 0:12:39.100000 --> 0:12:43.100000 with. I'm working with secure CRT and a lot of the other ones are like 0:12:43.100000 --> 0:12:48.580000 that as well. With secure CRT when you copy something by default, it's 0:12:48.580000 --> 0:12:52.840000 when I should say when you highlight something it's also copying it by 0:12:52.840000 --> 0:12:56.800000 default. So this is already copied into the memory buffer of my laptop. 0:12:56.800000 --> 0:13:01.480000 So now if I go to notepad and notepad I just right click I can hit paste 0:13:01.480000 --> 0:13:03.600000 and there it is. 0:13:03.600000 --> 0:13:06.380000 Now I can just save that portion as a text file. 0:13:06.380000 --> 0:13:10.360000 So just highlighting something copies it automatically. 0:13:10.360000 --> 0:13:14.360000 I don't have to do control C or right click and do cousin. 0:13:14.360000 --> 0:13:18.320000 Matter of fact if I do right click right now when I do this it's going 0:13:18.320000 --> 0:13:21.520000 to try to paste this back into secure CRT. 0:13:21.520000 --> 0:13:23.280000 I don't want to do that. 0:13:23.280000 --> 0:13:26.400000 So that's one way you can copy portions of your config. 0:13:26.400000 --> 0:13:30.480000 Just highlight it and then go to your text editor and paste it in. 0:13:30.480000 --> 0:13:36.960000 Now there's another way you can do it. 0:13:36.960000 --> 0:13:41.800000 Let's say I want to capture the whole running config from start to finish 0:13:41.800000 --> 0:13:46.880000 without it occasionally pausing and hitting more. 0:13:46.880000 --> 0:13:52.440000 Well I could just type the command terminal monitor or the short end of 0:13:52.440000 --> 0:13:54.880000 that is just term mon. 0:13:54.880000 --> 0:14:00.420000 And term mon says and now I'm going to type a number like 10 or 15 or 0:14:00.420000 --> 0:14:05.080000 50. Whatever number that is that's going to tell the system how many lines 0:14:05.080000 --> 0:14:09.660000 of output it should show me before it pauses and says more. 0:14:09.660000 --> 0:14:19.020000 So for example if I say term mon 5 term mon maybe 5 is too little. 0:14:19.020000 --> 0:14:24.280000 Terminal monitor 10. 0:14:24.280000 --> 0:14:26.980000 Apparently it has something. 0:14:26.980000 --> 0:14:31.240000 I'm sorry. It's not terminal monitor my bad. 0:14:31.240000 --> 0:14:32.800000 It's terminal length. 0:14:32.800000 --> 0:14:38.900000 Term length 5. Terminal length 5. 0:14:38.900000 --> 0:14:44.120000 So now when I do show run look at that it only shows me 5 lines of output 0:14:44.120000 --> 0:14:45.880000 before it hits more. 0:14:45.880000 --> 0:14:50.440000 I'm going to be hitting the space bar forever or I could type term length 0:14:50.440000 --> 0:14:57.160000 50 and now when I do show run it shows me a lot more output before hitting 0:14:57.160000 --> 0:14:59.880000 more. What's my objective here? 0:14:59.880000 --> 0:15:05.060000 My objective is I want to hit a command like show run and have the whole 0:15:05.060000 --> 0:15:09.240000 thing scroll from start to finish without pausing at all. 0:15:09.240000 --> 0:15:13.120000 I don't want to see this more stuff in here so I can get my whole configuration 0:15:13.120000 --> 0:15:17.260000 and then copy and paste that into a text file. 0:15:17.260000 --> 0:15:22.940000 So to accomplish that that's the terminal length 0 command. 0:15:22.940000 --> 0:15:24.880000 That means don't pause at all. 0:15:24.880000 --> 0:15:28.300000 Whatever command I issue now it will show me the whole thing from start 0:15:28.300000 --> 0:15:32.800000 to beginning. Start to end so show run and now it's just going to keep 0:15:32.800000 --> 0:15:37.500000 going and going and going until it hits the very end. 0:15:37.500000 --> 0:15:45.220000 Now it makes it a lot easier for me to scroll up to the top and I'll probably 0:15:45.220000 --> 0:15:48.260000 want to start right about here. 0:15:48.260000 --> 0:15:53.120000 Highlight the whole thing remember as I'm highlighting it it's copying 0:15:53.120000 --> 0:15:59.320000 it and now I can go over to my notepad right click and do paste and it 0:15:59.320000 --> 0:16:00.680000 copies the whole thing. 0:16:00.680000 --> 0:16:05.400000 Now I've got my whole configuration file that I can save externally. 0:16:05.400000 --> 0:16:08.900000 So that's another way you can do it. 0:16:08.900000 --> 0:16:12.360000 Now there's a third way that's even easier than that save yourself some 0:16:12.360000 --> 0:16:19.260000 time. So do this start out with terminal length 0 you're going to want 0:16:19.260000 --> 0:16:24.240000 to do that type show run but don't hit the enter key yet just get it all 0:16:24.240000 --> 0:16:26.720000 set up in advance show run. 0:16:26.720000 --> 0:16:31.400000 Now this will depend on the terminal application program that you're running 0:16:31.400000 --> 0:16:35.940000 with secure CRT and a lot of other ones you would go up to where it says 0:16:35.940000 --> 0:16:39.080000 transfer. Let me zoom in on that a little bit if you can see that where 0:16:39.080000 --> 0:16:47.020000 it says transfer and I'm going to hit transfer receive ASCII and now it's 0:16:47.020000 --> 0:16:49.360000 going to ask me okay where do I want to store that file. 0:16:49.360000 --> 0:16:53.300000 Well let's just store it in my particular case to the desktop in a folder 0:16:53.300000 --> 0:16:58.660000 called config files and I'm going to give it some descriptive name I'll 0:16:58.660000 --> 0:17:02.640000 say sample config. 0:17:02.640000 --> 0:17:05.940000 Now I'm going to hit receive. 0:17:05.940000 --> 0:17:10.500000 Let me go ahead and scroll out here. 0:17:10.500000 --> 0:17:16.940000 Now as soon as I hit receive from that moment anything that is shown on 0:17:16.940000 --> 0:17:20.340000 my monitor will be captured as a text file. 0:17:20.340000 --> 0:17:24.360000 Now notice I've already got it set up to show run so the moment I go back 0:17:24.360000 --> 0:17:28.560000 and I just hit enter it'll automatically scroll through the entire running 0:17:28.560000 --> 0:17:39.560000 config so I'm going to hit file right now. 0:17:39.560000 --> 0:17:43.960000 Now I'm done so I'm going to go back to transfer. 0:17:43.960000 --> 0:17:47.720000 Notice that receive ASCII is checked I'm going to click it to uncheck 0:17:47.720000 --> 0:17:53.820000 that and now I've got that whole thing stored on my desktop. 0:17:53.820000 --> 0:17:57.740000 Let me show you where that is. 0:17:57.740000 --> 0:18:05.820000 So here's my config files if I double click that and there it is there's 0:18:05.820000 --> 0:18:13.520000 sample config. Now notice the file type is file that's not a big deal 0:18:13.520000 --> 0:18:18.220000 now if I want to read it if I double click that it's going to say okay 0:18:18.220000 --> 0:18:20.280000 well what do you want me to use to open file. 0:18:20.280000 --> 0:18:27.020000 I'll just open up notepad and there it is there's the whole thing. 0:18:27.020000 --> 0:18:32.100000 So now I have saved that to my laptop for future use. 0:18:32.100000 --> 0:18:33.680000 So now let's talk about the last part. 0:18:33.680000 --> 0:18:38.940000 What if I want to take a file like this and put it back onto my router 0:18:38.940000 --> 0:18:42.300000 or switch. Well there's a couple of ways to do that. 0:18:42.300000 --> 0:18:44.840000 Number one I could copy and paste this. 0:18:44.840000 --> 0:18:48.160000 So I'll probably start right here where it says version. 0:18:48.160000 --> 0:18:55.920000 Just copy the whole thing all the way down right click copy. 0:18:55.920000 --> 0:18:58.760000 Now I'll go to my router. 0:18:58.760000 --> 0:19:05.520000 I'll type config T because what if I just right clicked and copied it 0:19:05.520000 --> 0:19:09.320000 right now. Well for right clicked and copied all this stuff right now 0:19:09.320000 --> 0:19:12.200000 I'm not in configuration mode. 0:19:12.200000 --> 0:19:16.180000 It'll try to paste this all in at privileged exec level and I'll get nothing 0:19:16.180000 --> 0:19:18.240000 but a whole slew of error messages. 0:19:18.240000 --> 0:19:23.020000 So I first need to put myself in the correct level which is global configuration 0:19:23.020000 --> 0:19:29.640000 mode and now I can right click and paste all that stuff in. 0:19:29.640000 --> 0:19:33.980000 So that's one way I can do it. 0:19:33.980000 --> 0:19:38.800000 Okay what's another way I could do it. 0:19:38.800000 --> 0:19:40.440000 Well let's do this. 0:19:40.440000 --> 0:19:46.380000 Config replace flash colon. 0:19:46.380000 --> 0:19:51.420000 Clean dash slate let's get this thing back to a default state. 0:19:51.420000 --> 0:20:00.120000 Okay so there's nothing on here anymore so I went back to a default state 0:20:00.120000 --> 0:20:04.000000 like I showed you just a few minutes ago in the video and there's nothing. 0:20:04.000000 --> 0:20:10.620000 No IP addresses pretty much nothing on here. 0:20:10.620000 --> 0:20:16.920000 Okay another way I could do this from the transfer menu instead of doing 0:20:16.920000 --> 0:20:22.540000 receive ASCII I could do send ASCII which means I'm going to take some 0:20:22.540000 --> 0:20:26.380000 ASCII I have on my laptop which is that file and I'm going to send it 0:20:26.380000 --> 0:20:30.680000 to my router. Send ASCII. 0:20:30.680000 --> 0:20:34.200000 So let's select the file. 0:20:34.200000 --> 0:20:36.220000 It's under here. 0:20:36.220000 --> 0:20:38.340000 Now right now it's just looking for text files. 0:20:38.340000 --> 0:20:42.400000 Hey where is it where's that file well when I saved it it didn't have 0:20:42.400000 --> 0:20:47.720000 a .txt extension so from text files I'm going to select here all files 0:20:47.720000 --> 0:20:51.640000 and there it is sample config. 0:20:51.640000 --> 0:20:55.900000 Now as soon as I hit send it's going to try to send it. 0:20:55.900000 --> 0:20:58.080000 Let's see if it works. 0:20:58.080000 --> 0:21:05.480000 Send. Oh my gosh look at this I'm getting all this invalid input detected. 0:21:05.480000 --> 0:21:07.920000 It's for the exact same reason. 0:21:07.920000 --> 0:21:14.280000 It's taking this file that we saw right here and trying to copy it in 0:21:14.280000 --> 0:21:19.740000 but notice where was I when I did this command I was at privilege exec 0:21:19.740000 --> 0:21:24.520000 level. You can't copy and paste this thing in from privilege exec level. 0:21:24.520000 --> 0:21:27.980000 So to make life easier for me in the future what I should probably do 0:21:27.980000 --> 0:21:32.980000 is take my text file get rid of all this junk here at the beginning and 0:21:32.980000 --> 0:21:41.760000 type enable I'll put a put a exclamation point there just to make it a 0:21:41.760000 --> 0:21:49.580000 little bit easier and then type config T enter and then save it that way. 0:21:49.580000 --> 0:21:51.220000 So now let me just save my file. 0:21:51.220000 --> 0:21:55.680000 So now my file my text file actually starts out with enable and config 0:21:55.680000 --> 0:22:00.700000 T so no matter what level I'm in now when I try to put this into my router 0:22:00.700000 --> 0:22:03.340000 it should work without any problems. 0:22:03.340000 --> 0:22:07.780000 So let me just close this down and let's try that again. 0:22:07.780000 --> 0:22:11.200000 Transfer. Send ASCII. 0:22:11.200000 --> 0:22:15.000000 All files. There it is. 0:22:15.000000 --> 0:22:20.120000 Send. And now because enable and config T are the first initial commands 0:22:20.120000 --> 0:22:24.080000 of the file it puts it in just fine. 0:22:24.080000 --> 0:22:28.800000 So those are some nice and easy ways for copying files from the router 0:22:28.800000 --> 0:22:33.420000 to your laptop and then vice versa from taking those files from the laptop 0:22:33.420000 --> 0:22:36.820000 and copying them back onto the router or the switch.