CCN Lab 1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Riphah International University, Islamabad

Faculty of Computing

Riphah International University, Islamabad

Faculty of Computing

Fall 2020

Computer Communications and Network Lab

LAB - 1

Course Computer Communications and Network Lab


Course Instructor Ms. Warda Rasul Malik
Credit Hour 1
Lab No. 1
Lab Subject Computer Network Configuration Commands
Lab Objective 1. Introduction to IP addressing
2. Identify tools used for discovering a computer’s network
configuration with various operating systems.
3. Gather information, including the connection, host name, MAC
(Layer 2 ) Address, and TCP/IP Network (layer 3)
4. Compare the network information to that of other PCs on the
network.
5. Learn to use the TCP/IP packet Internet groper (ping ) command
from a workstation.
6. Learn to use the trace route (tracert) command froma a
workstation.
7. Observe name-resolution occurrences using WINS and DNS
servers.
Tools PC/Laptop, Lab Manual

Background

This lab assumes that you are using Windows NT/2000/XP or Windows 10. This is
nondestructive lab that you can perform on any host without changing the system’s
configuration.

Ideally, you perform this lab in a LAN environment that connects to the Internet. You can use a
single remote connection via a dialup modem or DSL. You will need the IP address information
which the instructor should provide.

1
Riphah International University, Islamabad
Faculty of Computing

Network Configuration

Part A Using ipconfig command

Step 1: Connect to the Internet

Establish and verify connectivity to the Internet. This step ensures the computer has an IP
address.

Step 2: Gather TCP/IP configuration information

a. Windows NT/2000/XP: Use the start menu to open the command prompt
(Start/Programs/Accessories/Command Prompt or Start/Programs/Command Prompt)

Windows 10: Press Window+R to open Run box. Then click ok to run a regular
command prompt.

b. Type ipconfig and press Enter key.

c. The screen shows the ip address, subnet mask and the default gateway. The ip address
and the default gateway should be in the same network or subnet. Otherwise the host
wouldn’t be able to communicate outside the network.

2
Riphah International University, Islamabad
Faculty of Computing

Step 3: Record the following TCP/IP information for this computer

a. IP address: ______________________________________________________________

b. Subnet mask: ____________________________________________________________

c. Default Gateway: _________________________________________________________

Step 4: Compare this computer’s TCP/IP configuration to that of others on the LAN

If this computer is on LAN, compare the information of several machines (Hosts).

a. Are there any similarities? ________________________________

b. What is similar about the IP address? ________________________

c. What is similar about the default gateway? _____________________

d. Is there anything similar in subnet mask? _______________________

e. Record a couple of the IP addresses (of your nearby hosts)

1. ___________________________________________________________

2. ___________________________________________________________

3. ____________________________________________________________

Step 5: Check Additional TCP/IP configuration information

a. To see more information, type ipconfig/all and press Enter key. The next figure shows the

detailed IP configuration of this computer on the screen.

3
Riphah International University, Islamabad
Faculty of Computing

b. You should see the following information:

a. The host name

b. The physical address of this machine

c. IP address

d. Subnet mask

e. Default gateway

f. DNS servers

c. In the LAN, compare your results with a few nearby computers. What similarities do you

see in the physical (MAC) address?

__________________________________________________________

4
Riphah International University, Islamabad
Faculty of Computing

d. Write down the computer’s host name:

e. Write down the host name of couple of other computers.

I. ____________________________________

II. ____________________________________

III. ____________________________________

IV. ____________________________________

Step 6: Close the screen when finished.

Part B Using PING TRACERT from a workstation

Establish and verify connectivity to the internet. This step ensures that the computer has

an IP address.

Step 1:

a. Open the command prompt.


b. Type ping, give space and type the IP address of a computer recorded in the previous lab.

Ping uses the Internet Control Message Protocol (ICMP) echo-request and echo-reply feature to

test physical connectivity. Because ping report on four attempts, it gives an indication of the

5
Riphah International University, Islamabad
Faculty of Computing

reliability of the connection. Look over the result and verify that the ping was successful. Was

the ping successful? If not, report to the instructor.

c. Ask the IP address of the nearby computers and ping. Note the result.

___________________________________________________________

d. Ping the IP address of default gateway and DNS server. Were the results successful?

___________________________________________________________

e. Ping the Loop back ip address. Type the following address.

Ping 127.0.0.1

If loop back testing is successful then the TCP/IP is properly installed and functioning on

this computer.

Is it successful? ____________

f. Ping the host name of the computer that you recorded in previous part.

g. Ping the Microsoft website www.microsoft.com

Step 3: Trace the route to Riphah International University’s Website

Type tracert www.riphah.edu.pk and press Enter key

The result shows the complete route to the website and the number of hops in the path.

Trace a local host name or IP address in your local area network (LAN).

6
Riphah International University, Islamabad
Faculty of Computing

Record the output and interpret.

Step 4: Last Practice

Also see “pathping ip or host” command. Which only shows path from source to destination.

The  PathPing  command is a command-line network utility supplied in Windows 2000 and

beyond that combines the functionality of ping with that of tracert. It is used to locate spots that

have network latency and network loss.

Close the window.

You might also like