AJAY KUMAR GARG ENGINEERING COLLEGE, GHAZIBAD
Department of CSE(AIML)
Roll No.- 2200271530059 Name- Kavya Singh Year- 3rd Semester- 6th
Subject- Computer Network Lab Batch- D
Program 9
Objective- Implement File Transfer Protocol (FTP) – GET and PUT.
Theory-
FTP (File Transfer Protocol) is a standard network protocol used to transfer files from one
host to another over a TCP-based network such as the Internet. It operates on the Application
Layer (Layer 7) of the OSI model and uses TCP ports 20 (data transfer) and 21 (control
commands).
Key Features of FTP:
• Client-Server Architecture: An FTP server stores files and clients can download (GET)
or upload (PUT) files.
• Authentication: Supports login using a username and password.
• Commands:
o GET: Download a file from the server.
o PUT: Upload a file to the server. o RENAME: Change
the name of a file. o DELETE: Remove a file from the
server.
Implementation-
1. Configure Server0 (FTP +
DNS) On Server0:
• Go to Config tab.
• Set:
o Display Name: Server0 o IP Address: 140.0.0.22 o Subnet Mask: 255.255.255.240
o DNS Server: 140.0.0.22
• Enable these services in Services tab:
o FTP Service → On
Add a user (example: user1 / pass1)
Upload a sample file (e.g.,
hello.txt)
Date --------------------- Signature of Faculty
…………………………………………
AJAY KUMAR GARG ENGINEERING COLLEGE, GHAZIBAD
Department of CSE(AIML)
Roll No.- 2200271530059 Name- Kavya Singh Year- 3rd Semester- 6th
Subject- Computer Network Lab Batch- D
o DNS Service → On
Add a record:
Name:
www.cn.com
Type: A
Address:
140.0.0.22 2. Configure a client
On PC5 (Lab 2):
• Go to Desktop > Ip Configuration: o IP: 140.0.0.17 o Subnet: 255.255.255.240 o
DNS: 140.0.0.22
• Open Command Prompt and test FTP
with: ftp www.cn.com
Login when prompted:
Username: user1
Password: pass1
After login:
PUT a file to the server:
put hello.txt
(Ensure hello.txt exists in PC's FTP client directory.)
GET a file from the server:
get sample.txt
Setup-
Date --------------------- Signature of Faculty
…………………………………………
AJAY KUMAR GARG ENGINEERING COLLEGE, GHAZIBAD
Department of CSE(AIML)
Roll No.- 2200271530059 Name- Kavya Singh Year- 3rd Semester- 6th
Subject- Computer Network Lab Batch- D
Output-
Login and FTP - PUT
Date --------------------- Signature of Faculty
…………………………………………
AJAY KUMAR GARG ENGINEERING COLLEGE, GHAZIBAD
Department of CSE(AIML)
Roll No.- 2200271530059 Name- Kavya Singh Year- 3rd Semester- 6th
Subject- Computer Network Lab Batch- D
Files in Server Directory-
FTP - GET
Date --------------------- Signature of Faculty
…………………………………………