# 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.

```
R(config)# tftp-server FILE-URL [alias ALIAS] [ACL]
! ALIAS - the server will respond to requests for the ALIAS name with the FILE-URL file
! ACL - used to limit TFTP clients
```

You can also configure the TFTP client using:

```
R(config)# ip tftp source-interface INTERFACE
```

### TFTP Client

You can use the router as a TFTP Client using a command like:

```
R# copy tftp://FILE-SRC DESTINATION-URI
R# more tftp://FILE-SRC
```

## FTP

### FTP Client

You can use the router as a FTP Client using a command like:

```
R# copy ftp://FILE-SRC DESTINATION-URI
R# more ftp://FILE-SRC
```

In contrast with TFTP, FTP offers more advanced features. This is why we can configure the FTP client even further:

```
! Specify USER and PASS:
R(config)# ip ftp username USER
R(config)# ip ftp password PASS
! Specify the source interface
R(config)# ip ftp source-interface INTERFACE
! Connect using Passive FTP
R(config)# ip ftp passive
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ccie.nyquist.eu/network-services/file-transfer-101-tftp-and-ftp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
