0% found this document useful (0 votes)
20 views

Computer Networkn Mid Prac File

The document describes how to configure an FTP server in Packet Tracer. It involves building a network topology with a laptop and server, configuring their IP addresses, using FTP commands to connect from the laptop to the server, and uploading a file from the laptop to the server FTP directory to verify the FTP configuration.

Uploaded by

JATIN
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Computer Networkn Mid Prac File

The document describes how to configure an FTP server in Packet Tracer. It involves building a network topology with a laptop and server, configuring their IP addresses, using FTP commands to connect from the laptop to the server, and uploading a file from the laptop to the server FTP directory to verify the FTP configuration.

Uploaded by

JATIN
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

SCHOOL OF COMPUTING

GRAPHIC ERA HILL UNIVERSITY, BHIMTAL CAMPUS


2023-24

A
Practical-Work
On
Computer Network Lab (OMC-102L)
Submitted in partial fulfillment of the requirement for the Ist
semester
M.C.A
By
Jatin B Awasthi
23711027

Faculty-in-Charge
Mr. Bhupesh Rawat
Associate Professor
SCHOOL OF COMPUTING
GRAPHIC ERA HILL UNIVERSITY, BHIMTAL CAMPUS
2023-2024
STUDENT’S DECLARATION

I Jatin B Awasthi hereby declare the work, which is being presented in the term-work,

entitled “Computer Network Lab” in partial fulfillment of the requirement for the

award of the degree M.C.A in the session 2023-2024, is an authentic record of my own

work carried out under the supervision of Mr. Bhupesh Rawat.

The matter embodied in this term-work has not been submitted by me for the award of any

other degree.

Date: …………

(Full signature of

student)
SCHOOL OF COMPUTING
GRAPHIC ERA HILL UNIVERSITY, BHIMTAL CAMPUS
2023-24

CERTIFICATE

The term-work entitled “Computer Network Lab” being submitted by Jatin B

Awasthi S/o Mr. Bhagirath Awasthi. Enrollment no. PV-23510019, roll no. 23711027 to

Graphic Era Hill University Bhimtal Campus for the award of bonafide work carried

out by his/ her. He / She has worked under my guidance and supervision and fulfilled

the requirement for the submission of report.

Mr. Bhupesh Rawat Dr. Sandeep Budhani

Faculty-in-Charge (HOD)
VARIOUS COMMANDS USE IN COMPUTER NETWORK-

IPCONFIG

ipconfig (Internet Protocol configuration) is among the most common


networking tools that allow you to query and show current TCP/IP
(Transmission Control Protocol/Internet Protocol) network
configuration. The command also includes options to perform different
actions, such as refreshing Dynamic Host Configuration Protocol (DHCP)
and Domain Name System (DNS) settings.

Display network configuration


To get started with ipconfig on Windows 10, use these steps:

1. Open Start.
2. Search for Command Prompt, right-click the top result, and
select the Run as administrator option.
3. Type the following command to view a summary of the
TCP/IP network configuration and press Enter: ipconfig
 Quick tip: In Command Prompt, you can use the CLS command to
clear the screen after you no longer need the information to
continue running commands without clutter.

Output-
nslookpu

The nslookup (Name Server Lookup) tool can show valuable details to
troubleshoot and resolve DNS-related issues. The tool includes an
interactive and non- interactive modes. However, you will be using the
non-interactive mode more often than not, which means you will type
the full command to obtain the necessary information.

You can use this command to display the default DNS name and address
of the local device and determine the domain name of an IP address or
the name servers for a specific node.

To get started with nslookup on Windows 10, use these steps:

1. Open Start.
2. Search for Command Prompt, right-click the top result, and
select the Run as administrator option.
Type the following command to look up the local DNS name and address and
press Enter: nslookup
Output:
Ping-
Ping is another essential networking tool because it allows you to send
ICMP (Internet Control Message Protocol) echo request messages to test
the IP connectivity with other devices, whether it is another computer in
the network or internet service.

Test device connectivity

To test the network connectivity with the ping command on Windows 10,
use these steps:
1. Open Start.
2. Search for Command Prompt, right-click the top result, and
select the Run as administrator option.
3. Type the following command to send ICMP echo requests to test
connectivity and press Enter: ping IP-OR-DOMAIN

Output:
Tracert
Windows 10 also includes tracert (Trace Route), a diagnostic tool to
determine the network path to a destination using a series of ICMP echo
requests. However, unlike the ping command, each request includes a TTL
(Time to Live) value that increases by one each time, allowing to display
of a list of the route the requests have taken and their duration.
To trace the route to a destination with Command Prompt on Windows
10, use these steps:
1. Open Start.
2. Search for Command Prompt, right-click the top result, and
select the Run as administrator option.
Type the following command to understand the path taken to the destination and
press Enter: tracert IP-OR-DOMAIN

Output:
Netstat-
The netstat (Network Statistics) tool displays statistics for all network
connections. It allows you to understand open and connected ports to
monitor and troubleshoot networking problems for Windows 10 and apps.

When using the netstat tool, you can list active network connections and
listening ports. You can view network adapter and protocol statistics.
You can even display the current routing table and much more.

To get started with netstat, use these steps:

1. Open Start.
2. Search for Command Prompt, right-click the top result, and
select the Run as administrator option.
3. Type the following command to show all active TCP
connections and press Enter: netstat

Output:
Program-1 Create a peer-to-peer computer network.

A peer-to-peer is a type of network in which two or more computers


connected to each other and each computer has the same level of network
usage.

Now let's get started. follow the instructions below.

1. open software packet tracer


2. click End Devices icon (lower left corner) or press CTRL + ALT + V
3. drag icon general (Personal Computer) and drop to worksheet

4. click Connections icon or press CTRL + ALT + 0, then click Automatically


Choose Connection Type.
5. click PC0 then click PC1
6. double click PC0.
7. Desktop tab, then click IP Configuration.
8. set IP Address for Subnet Mask. IP Address PC0 = 192.168.2.1 Subnet Mask
= 255.255.255.0

9. close window PC0


10. double click PC1
11. Desktop tab, then click IP Configuration.
12. set IP Address for Subnet Mask. IP Address PC0 = 192.168.2.2 Subnet Mask
=255.255.255.0
13. Desktop tab, then click Command Prompt
14. type ping 192.168.2.1 then enter
15. if it appears as shown below, it means PC0 and PC1 are connected and
successful
Program 2- How to configure an FTP server in Packet Tracer

The File Transfer Protocol (FTP) is a standard network protocol used for the
transfer of computer files between a client and server on a computer network.

FTP employs a client-server architecture whereby the client machine has an


FTP client installed and establishes a connection to an FTP server running on a
remote machine. After the connection has been established and the user is
successfully authenticated, the data transfer phase can begin.

Worth noting: Although FTP does support user authentication, all data is sent
in clear text, including usernames and passwords. For secure transmission that
protects the username and password, and encrypts the content, FTP is often
secured with SSL/TLS (FTPS) or replaced with SSH File Transfer Protocol (SFTP).

Let’s now do FTP configuration in Packet Tracer:


1.Build the network topology
2. Configure static IP addresses on the laptop and the server.
Laptop: IP address: 192.168.1.1 Subnet Mask: 255.255.255.0
Server: IP address: 192.168.1.2 Subnet Mask: 255.255.255.0
3. Now try using an FTP client built in the laptop to send files to an FTP server
configured in the Server. From the Laptop’s command prompt, FTP the server
using the server IP address by typing.
ftp 192.168.1.2
Provide the username(cisco) and password(cisco) [which are the defaults] for
ftp login.

You are now in the FTP prompt.


PC0 has an FTP client which can be used to read, write, delete and rename files
present in the FTP server.
The FTP server can be used to read and write configuration files as well as IOS
images. Additionally, the FTP server also supports file operations such rename,
delete and listing directory. With that in mind, we can do something extra.
So, let’s do this:
4. Create a file in the laptop then upload it to the server using FTP. To do this,
open the Text Editor in the Laptop, create a file and give it your name of
choice. Type any text in the editor then save your file. e.g., myFile.txt.
5. Now upload the file from the laptop to the server using FTP. (An FTP
connection has to be started first. But this is what we’ve done in step 3) So to
do an FTP upload, we’ll type.

6. Once file upload is successful, go to the Server FTP directory to verify if the
file sent has been received.
To do this, go to Server-> Services->FTP. Here look for MyFile.txt sent from the
laptop.

You might also like