principle:
FTP (File Transfer Protocol, File Transfer Protocol) is a TCP / IP network and the Internet Protocol's first use of -., Is an application layer protocol in the TCP / IP protocol suite is the Internet standard file transfer. Its main function is to transfer files between local and remote hosts, especially when version upgrade, log download and configuration saving operation. FTP using C / S (Client / Server) structure. FTP Server provides remote client access and manipulate the function, the user can log in via FTP client program on the host computer or other device to the server, upload, download files and directory access operations.
example:
The experimental simulation of the corporate network. PC-1 for FTP CPE, need access to FTP Server, download or upload files from the server. For security point of view, in order to prevent the server from being infected files, it does not allow end users to directly upload files Server. The network administrator on the R1. Set a limit, so that employees can not upload files to the Server, but you can download a file from the Server. R1 also need to download a client from Server update files, configure R1 as an FTP server, employees can upload files to the R1, have been tested by the administrator R1 then uploaded to the FTP Server.
Topology:
Addressing Configuration
Basic configurations
Configured by the configuration corresponding to the above basic topology configuration and addressing. to ping
2. configure the router for the FTP Client
First, we want to build a folder, the folder inside to build a name for the Config folder inside the Config put in a test file text.txt
Set FTP server to find the file we just built, starting after the service (right-click FTP and click Settings to enter)
After the setup is complete, start the FTP Server.
FTP server ftp connection command on R1. When you need to enter the default login user name and password, since no user name and password on the server, equivalent to create the user name and password each time you enter on the R1, this user name qiyuan, password 123
Has entered ftp server, we look at the state of the folder, you can see there is a Config folder
Cd to the folder
Download test.txt to the local router
Test.txt uploaded to an FTP server, named new.txt
3. Configure router to an FTP server
Here router has the freedom to download and upload stuff, and then we will configure the router from the server to server allows users to upload and download files
Open the ftp service functions R1
Create a user named ftp account password is 123, set the folder directory flash :, configure FTP user can access the directory flash :, user priority of 15, service type ftp
After the completion of our clients come to right-click to open the configuration, we must first log in, and then transfer a file
So we uploaded a success
R1 to take a look and found success