- [Instructor] In this section
we're going to discuss the configuration register,
backing up and restoring a Cisco configuration
for a router switch, as well as an iOS.
So, let's start off my looking at the Corp router,
and we're gonna do a show version.
Very good, very powerful command here.
The show version command shows us from the top
the iOS software, and its Advance Enterprise Version 15.1.
Come down a little bit, you'll see the ROM System Bootstrap.
Don't get that version confused with your iOS.
What's really nice about the show version command
is it tells me how long it's been up,
in this case, one day, four hours, and so on,
how it was last booted.
That says (unintelligible)
If someone asks you, "What command
would you type in to see how your
router switch was last booted?"
and the answer is show version.
System image file is now this is...
Flash: is not part of the name.
That says this iOS was loaded from flash,
so if I was to do something like the show flash,
actually this is my iOS,
what my iOS is by default in flash memory.
We can see the size and how we have a very large...
We have sixty-four megs of flash, it looks like,
or larger, actually.
We have sixty, about sixty-one and a half available
and sixty-seven used,
so I'd say 128 megs, but nonetheless,
the show flash would show me all of my iOSs.
So I could have multiple in here
if I had the room.
The show version, now, if we go
back up to the top of the screen
will show me which one was loaded.
So there is a difference between show flash
and show version here.
They both show an iOS.
This show version shows me which one is running.
I'm gonna run to my LAN, switch off my
San Francisco router, here.
Okay, so I'm out at my San Francisco LAN switch, alright?
And, so, I wanna copy the configuration to a TFTP server.
So I can do this, copy...
I'm gonna do a question mark here.
Notice I'm in privilege mode, not configuration.
Notice all the different things we can do:
erase, error, noverify.
Now, verify, the reason I'm showing you this,
is that /verify will show me that MD5 verification.
So we can do a /verify at the end,
so copy and then MD5 verification.
That's the CC objective.
The other thing is notice we can use ftp,
and we can do something called, down further,
scp, secure copy protocol.
Now, the reason we would use those over tftp,
and I'm just gonna use tftp in this example,
is because our iOS is larger,
and tftp doesn't really do large files that well, alright?
The last one I wanna mention before I copy this
is the xmodem down at the bottom.
This allows you to copy an iOS
from a console, zero port, of a PC, laptop,
across a console cable into the console port.
It's very slow, but it can be done.
That's what xmodem's used for.
So I'm copying to tftp to run,
so in this case here I don't want to start with tftp.
I'm gonna say what do I want to copy?
I wanna copy my running config to a tftp server.
Now, it's gonna ask me the name of the tftp server.
10.5, I believe is my server.
192.168.10.5, and then notice what it does.
It says, "Oh, okay, I'm gonna take your host name for you,
do you a favor, ad a -confg,
and then we're going to go ahead
and name that your file," which is fine.
Right? That's, "Oh, thanks, Mr. Cisco iOS."
Until I do this, say, "Oh my gosh,
I screwed up. I need to copy tftp to run."
Okay, it says name a re host.
My file's at 10.5.
My source filename, I know what it is.
It's sf_lan-config. Right?
I go back to running config.
It's accessing it.
It's gonna get the file it just created.
It's gonna say, "Nope, no such file directory"
which is gonna be difficult for you
in a stressful environment
because you can't see your tftp server
or list the directory from here.
But if you go back up in the screen
and notice the file name that I copied was sf_lan-confg,
alright, that's a feature, an annoying one at that,
but nonetheless a feature.
So be careful here, alright?
And I could have renamed that, alright,
instead of just hitting enter for those brackets.
Now, that's how you simply do a configuration
from a router or a switch into a thp server.
The other thing I can do
is copy flash, check it out, to a thp server, alright?
Now, I can't do this yet,
until I'm gonna do a show flash.
I need to get the iOS name.
Alright, so there it is on top, the c3560 on top.
I could also do show version and see this.
I'm gonna highlight this.
You don't wanna type the iOSs in.
Copy flash tftp,
so notice I went to flash,
found my file, copied it into the buffers,
then did the command.
Source filename.
Now I'm gonna do...
Once I put in my buffers, then I'm gonna
copy it back in here.
I don't wanna type all this out.
You're gonna make an error or a typo.
Ones and Ls look the same, or Is, ones, and Ls, whatever.
The address of the remote host where I'm gonna send it,
and the destination file name.
Okay, this is going to take a while,
so we're gonna let this run,
and so this is how you can
easily back up your running config
or your configurations of your router and switches
and your iOS for your...
And then restore them as well with a copy tftp flash.
Now that that has finished copying,
the way to put a file into flash memory
I'm not gonna let it run
'cause it'll take while to copy from a tftp server.
Again, look at your options here.
I can do it from a secure copy protocol or ftp server.
If you have all night, then xmodem sounds fun.
So, in this case I'm just gonna say
from my tftp server to my flash.
So address or name of remote host,
source file name, and I'd have to go out to my
default directory on my tftp server
and get the file,
make sure it's in my root directory
In this case, obviously it is.
Okay, and default name, destination file name is fine.
It says there's a file already in there.
It's gonna confirm, and I'm gonna just say
control + c out of that.
Alright, that is the very easy way
to back up your configurations, copy run tftp.
Copy start tftp would work.
And also to back up your iOS or restore your iOS
or upgrade your iOS into flash.