All right.
In this video on these two twin elevens
we're going to do a TFTP transfer of files.
So there's a few things we need.
Let's take a look at the chalkboard.
We'll set up a plan.
And then we'll implement and verify that it works.
So for TFTP, we first of all need a file.
Then we have the file that we want to share.
I have a file sitting on the flash of this twin 11.
It's called image.bin.
So it's fairly small.
It's not a full iOS image because I
didn't want to wait for the whole thing to copy.
So it's fairly small.
But it serves the purpose. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
But it serves the purpose.
So between these devices, if this is going to be the server,
we need to do some commands to make this guy a server.
And that would involve the pan TFTP/server.
So we'll set it up and we'll tell it
that it's going to serve up that image.bin.
We'd also want to make sure we have connectivity
between the client the device that's
going to reach out and grab that file.
And third, we'd also want make sure we have room on the flash.
So if we don't have enough room on the flash,
one of the options is we can just erase the destination file
system.
So that it'll copy and erase. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So that it'll copy and erase.
But ideally, we'd want to copy it over and make
sure we have room and then make sure everything's all settled.
The file made it over safely.
And then we could delete or rename or move off
the file system the old image that we no longer want to use.
All right.
So with that in mind, let's go ahead and bring up the console.
So this is the 2911.
And let's go to the-- this is the router one.
Let's go to router two.
And at router two, let's just do a verification
we can reach router one.
Let's do a ping 10.0.0.1. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Let's do a ping 10.0.0.1.
That's fantastic.
Also let's do a DIR.
And it has a lot of free room.
All right.
So it has plenty of room for this little image
that we're going to send.
And let's go up to the router one and make it a TFTP server.
So you could use just software based TFTP server.
I'm just using this as convenience and also handy.
If you have three or four routers that are the same
and you know you need to move the same image over,
you could very easily stand up a TFTP server WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
you could very easily stand up a TFTP server
on one of those routers and you're halfway there.
Let's do a DIR.
And this is the image right here called image.bin
that we're going to share.
And the syntax in configuration mode is TFTP/server.
And then we'll say flash.
And then we'll do a question mark and we want image.bin.
Ta da.
It's now a TFTP server.
Those listening on UDP port 69, that's what TFTP uses.
So let's go to 10.0.0.2. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So let's go to 10.0.0.2.
And let's do a copy.
So TFTP, there is no authentication required.
Super easy that way.
Oh, also, there's also the options
for IP TFTP configuration mode.
IP TFTP.
And we can specify things like the block size and the source
interface if we need to.
In this topology, I don't need to specify source interface.
I only have one active IP address.
But making a larger block size could make it go faster.
In this case, I'm not going to-- going to use the defaults.
So we'll do a copy, space, and a question mark. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So we'll do a copy, space, and a question mark.
And you see there's several options here
that we can use during the copy.
So we have options for erase, no verify, verify.
We also have options for many different protocols
that we can use to copy with.
So we're focusing here on TFTP.
So we'll do a copy TFTP:.
Copy TFTP:// the source, the server is at 10.0.0.1.
And the file name is image.bin.
And the destination is going to be flash:image.bin. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And the destination is going to be flash:image.bin.
Again, if we didn't want to put all those details
interactively, we could just press Enter
and it would prompt us for what it needs.
So it's still confirming the destination name.
That's fine.
And it's accessing TFTP.
And boom.
46 and change k copied.
And again, that file is fairly small.
Now if we do a DIR, there it is.
So by using a small file, we don't
have to wait as long to see it.
All right, so that's an example of doing a TFTP image WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
All right, so that's an example of doing a TFTP image
copy from a TFTP server, where there's a Cisco router that we
now set up or some other device in the local file
system on this TFTP client.
Oh, and while we're at it, while we're talking about FTPR,
TFTP, let me also show you how we can do it with FTP.
With FTP, if we had an FTP server
setup that was serving up the same file, we could do this.
We could do copy FTP:// and we could include the information.
Assume we have a username of Bob that was set up. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Assume we have a username of Bob that was set up.
And we a colon here and then the password.
So let's imagine that that is the username colon
password at, and then the IP address of the FTP server,
which is 10.0.0.1.
Our server isn't set up as an FTP server.
But assuming it was, and we do slash and image.bin space,
and then flash: and it could prompt us and say,
hey, this file is already there.
And we won't complete because we don't have FTP services running WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And we won't complete because we don't have FTP services running
over on R1.
But that's how you can embed, if you'd like to, the username
and the password with the username:password and then @
then following with the URL if you want to embed it.
Now if you didn't want to string out that line,
I'll do a Control C here.
If he didn't want to actually include it all right there,
you could do the copy FTP:flash, it would prompt you.
But here's yet another way.
You could also do this.
On the client, we could do IP FTP WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
On the client, we could do IP FTP
and username Bob and IP FTP password, Cisco123 or whatever
the password happens to be.
And then you can do the copy FTP, the flash,
and it will use this username and password in combination
with that.
So it's a handy tip in the event you're doing a lot of them
and you don't have to put in that username password
every single time.
All right.
So thanks for joining me in this video on TFTP and FTP.
And in the next video, we'll take a look
at doing copies via HTTP.
I'll see you there in just a moment.
Meanwhile, I hope this has been informative for you WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Meanwhile, I hope this has been informative for you
and I'd like to thank you for viewing.