CN Lab1

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

National University of Technology

Computer Science Department


Semester Spring – 2024
LAB REPORT - 01
Course: CN Lab
Course Code: CS4016

Submitted To: Submitted By:


Name: Eng Syed Ahmad Raza Name: Abu-Bakar Zahid
Reg No: F21605023
Computer Science Department
Lab Tasks
Lab Task 1:
1.1 Network Configuration
Step 1. Connect to the Internet.
Step 2. Gather TCP/IP configuration information.
Step 3. Record the following TCP/IP information for this computer.
a. IPv4 address: 10.5.8.45
b. Subnet mask: 255.255.255.192
c. Default gateway: 10.5.8.1

Step 4. Compare this computer’s TCP/IP configuration to that of


others on the LAN. If this computer is on a LAN, compare the
information of several machines (Hosts).
a. Are there any similarities? Only subnet and gateway is same & IP is not same.
b. What is similar about the IP addresses? Only last 2 digits are different from
other’s IP.
c. What is similar about the default gateway? Whole address is same.
d. Record a couple of the IP addresses (of your nearby hosts)
1. 10.5.8.25
2. 10.5.8.47
3. 10.5.8.20

Step 5. Check additional TCP/IP configuration information.


c. In the LAN, compare your result with a few nearby computers.
What similarities do you see in the physical (MAC) address?
Last digits of MAC addresses are not same.
d. Write down the computer’s host name: CL4-L3-PC31
e. Write down the host names of a couple of other computer:
a. CL4-L3-PC30
b. CL4-L3-PC33
c. CL4-L3-PC29
d. CL4-L3-PC28

1.2 Using PING, TRACERT , PATHPING from a


Workstation (Attach Every command Screen Shot)
Step 2. Open the Command prompt. Ping the IP address of another
computer.
a. In the window, type ping, a space, and the IP address of a computer
recorded above.
b. Ask the IP address of the nearby computers and ping. Note the result.
(Screen Shot)

c. Ping the IP address of Default gateway and DNS servers. Was the result
successful? (Screen Shot)
No result is not successful.
d. Ping the computer’s loopback IP address. Type the following command:
(Screen Shot)

e. Was the ping successful for d.


Yes, the ping was successful.
f. Ping the hostname of the computer that you recorded in previous task.
(Screen Shot)

g. Ping the Microsoft website(www.microsoft.com) and record result. (Screen


Shot)
Step 3. Trace the route to the NUTECH university website (Screen
Shot):

Step 4. Close the window. Also see “pathping ip or host” command.


Which only shows path from source to destination. (Screen Shot)
Lab Task 02
Explore and run 10 cmd networking related commands. (Screen
Shot).
Netstat: This command displays active TCP/IP network connections, ports on which the
computer is listening, Ethernet statistics, the IP routing table, and protocol statistics1.

Nslookup: This command is used to query DNS to obtain domain name or IP address
mapping, or other DNS records1.
Arp: This command displays and modifies entries in the Address Resolution Protocol (ARP)
cache, which contains one or more tables used to store IP addresses and their resolved Ethernet
or Token Ring physical addresses1.

Route: This command is used to view and modify the IP routing table1.
Netsh: This is a command-line scripting utility that allows you to, either locally or remotely,
display or modify the network configuration of a computer that is currently running1.

Getmac: This command returns the media access control (MAC) address and list of network
protocols associated with each address for all network cards in each computer1.

Nbtstat: This command is used to troubleshoot NetBIOS name resolution problems1.

Telnet: This command is used to communicate with remote hosts using the Telnet protocol1.

Hostname: This command displays the host name of the current device1.
Netsh wlan show profiles: Displays a list of wireless network profiles stored on the
computer.

Lab Task 03
Create your cisco id (https://id.cisco.com/signin/register) (Screen
Shot)
Lab Task 04
Study of following Network Devices in Detail
1. Repeater: A repeater is a network device that operates at the physical layer.
Its job is to regenerate the signal over the same network before the signal
becomes too weak or corrupted, thus extending the length to which the signal
can be transmitted over the same network.

2. Hub: A hub is essentially a multi-port repeater. It connects multiple wires


coming from different branches. Hubs cannot filter data, so data packets are
sent to all connected devices. They do not have the intelligence to find out the
best path for data packets which leads to inefficiencies and wastage.

3. Switch: A switch is a network device that connects devices within a network


and forwards data packets to and from those devices. Unlike a router, a switch
only sends data to the single device it is intended for.

4. Bridge: A bridge is a network device that connects multiple LANs together


with a larger Local Area Network (LAN). The mechanism of network
aggregation is known as bridging. The bridge operates at the OSI model’s data
link layer and is also known as a layer of two switches.

5. Router: A router is a device that connects two or more packet-switched


networks or subnetworks. It serves two primary functions: managing traffic
between these networks by forwarding data packets to their intended IP
addresses, and allowing multiple devices to use the same Internet connection.

6. Gateway: A gateway is a network device that connects two networks using


different protocols together. It also acts as a “gate” between two networks. It
may be a router, firewall, server, or other devices that enable traffic to flow in
and out of the network.

You might also like