The FTP experiment is a practical activity in the Computer Network Principles course. The purpose is to allow students to learn and understand the basic working principles and application scenarios of the FTP protocol through practical operation of FTP clients and servers. FTP is the abbreviation of File Transfer Protocol. It is a standard protocol on the Internet and is used for file transfer on the network.

The FTP experiment is a practical activity in the Computer Network Principles course. The purpose is to allow students to learn and understand the basic working principles and application scenarios of the FTP protocol through practical operation of FTP clients and servers. FTP is the abbreviation of File Transfer Protocol. It is a standard protocol on the Internet and is used for file transfer on the network.
01 Experiment purpose
"FTP experiment, observing active and passive modes"
Its main content is to test the working principle and performance of FTP active mode and passive mode by using FTP client software (such as FileZilla), and to understand their advantages and disadvantages, so as to provide basic knowledge for further understanding of computer network transmission protocols and network security.
In the experiment, you need to set up the FTP server and client, perform connection and file transfer through the command line or graphical interface, and observe and analyze performance indicators such as transmission speed and connection stability in different modes.
02 Topology diagram

[R1]ftp server enable //Enable ftp service
[R1]aaa
[R1-aaa]local-user test password cipher 123 privilege level 15 //Create a new user test to set the password and set the user level to 15
Info: Add a new user.
[R1-aaa]local-user test service-type ftp //This user is used for ftp
[R1-aaa]local-user test ftp-directory flash: //The ftp folder is the root directory
<R1>save test123.zip //Save the configuration file as test123.zip
<R1>dir
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 642 Jun 01 2023 01:25:10 test123.zip
1 drw- - Jun 01 2023 00:48:45 dhcp
2 -rw- 121,802 May 26 2014 09:20:58 portalpage.zip
3 -rw- 2,263 Jun 01 2023 00:48:41 statemach.efs
4 -rw- 828,482 May 26 2014 09:20:58 sslvpn.zip
5 -rw- 249 Jun 01 2023 01:25:10 private-data.txt
1,090,732 KB total (784,448 KB free)
03 Verification
<R2>ftp 192.168.0.1
Trying 192.168.0.1 ...
Press CTRL+K to abort
Connected to 192.168.0.1.
220 FTP service ready.
User(192.168.0.1:(none)):test
331 Password required for test.
Enter password:
230 User logged in.
[R2-ftp]dir
200 Port command okay.
150 Opening ASCII mode data connection for *.
-rwxrwxrwx 1 noone nogroup 642 Jun 01 01:25 test123.zip
drwxrwxrwx 1 noone nogroup 0 Jun 01 00:48 dhcp
-rwxrwxrwx 1 noone nogroup 121802 May 26 2014 portalpage.zip
-rwxrwxrwx 1 noone nogroup 2263 Jun 01 00:48 statemach.efs
-rwxrwxrwx 1 noone nogroup 828482 May 26 2014 sslvpn.zip
-rwxrwxrwx 1 noone nogroup 249 Jun 01 01:25 private-data.txt
drwxrwxrwx 1 noone nogroup 0 Jun 01 01:25 .
226 Transfer complete.
FTP: 468 byte(s) received in 0.110 second(s) 4.25Kbyte(s)/sec.
[R2-ftp]get test123.zip
200 Port command okay.
150 Opening ASCII mode data connection for test123.zip.
226 Transfer complete.
FTP: 642 byte(s) received in 0.220 second(s) 2.91Kbyte(s)/sec.
04 message
Active mode

passive mode
[R2-ftp]passive
Info: Succeeded in switching passive on.
[R2-ftp]get test123.zip
227 Entering Passive Mode (192,168,0,1,195,177).
125 ASCII mode data connection already open, transfer starting for test123.zip.
226 Transfer complete.
FTP: 642 byte(s) received in 0.200 second(s) 3.21Kbyte(s)/sec.
message

