File Transfer 101 – TFTP & FTP

TFTP

TFTP Server

You can use a Cisco Router as a TFTP Server, usually used to serve IOS images to other routers.
1
R(config)# tftp-server FILE-URL [alias ALIAS] [ACL]
2
! ALIAS - the server will respond to requests for the ALIAS name with the FILE-URL file
3
! ACL - used to limit TFTP clients
Copied!
You can also configure the TFTP client using:
1
R(config)# ip tftp source-interface INTERFACE
Copied!

TFTP Client

You can use the router as a TFTP Client using a command like:
1
R# copy tftp://FILE-SRC DESTINATION-URI
2
R# more tftp://FILE-SRC
Copied!

FTP

FTP Client

You can use the router as a FTP Client using a command like:
1
R# copy ftp://FILE-SRC DESTINATION-URI
2
R# more ftp://FILE-SRC
Copied!
In contrast with TFTP, FTP offers more advanced features. This is why we can configure the FTP client even further:
1
! Specify USER and PASS:
2
R(config)# ip ftp username USER
3
R(config)# ip ftp password PASS
4
! Specify the source interface
5
R(config)# ip ftp source-interface INTERFACE
6
! Connect using Passive FTP
7
R(config)# ip ftp passive
Copied!
Last modified 24d ago