Professional Documents
Culture Documents
Lab 2 CCN
Lab 2 CCN
LAB # 02
DIAGNOSTIC UTILITIES OF NETWORKS
OBJECTIVE
To learn about and practice some of the Diagnostic Utilities for use with computer networks.
THEORY
Ping Objective
Verify connections to a remote computer or computers
Theory
The ping command verifies connections to remote computer or computers, by sending ICMP echo
packets to the computer and listening for echo reply packets. Ping waits for up to 1 second for each
packet sent and prints the number of packets transmitted and received. Each received packet is
validated against the transmitted message. By default, four echo packets containing 64 bytes of data
(a periodic uppercase sequence of alphabetic characters) are transmitted.
You can use the ping utility to test both the computer name and the IP address of the computer. If
the IP address is verified but the computer name is not, you may have a name resolution problem.
In this case, be sure that the computer name you are querying is in either the local HOSTS file or in
the DNS database. The Ping stands for Packet Internet Groper.
Computer Communication & Networks (SWE-306) SSUET/QR/114
LAB TASK:
C:\Users\se20-045>
C:\Users\se20-045>clear
C:\Users\se20-045>ls clear
C:\Users\se20-045>ipconfig
Windows IP Configuration
Default Gateway . . . . . . . . . :
Media State . . . . . . . . . . . :
of data:
C:\Users\se20-045>ping 172.16.16.1
C:\Users\se20-045>ping aurangzeb
C:\Users\se20-045>ping aurangzeb - t
Bad option -.
Computer Communication & Networks (SWE-306) SSUET/QR/114
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
Options:
Header).
Per RFC 5095 the use of this routing header has been
C:\Users\se20-045>ipconfig/all
Windows IP Configuration
IP Routing Enabled. . . . . . . . : No
192.168.1.7
192.168.1.13
DHCP Enabled. . . . . . . . . . . : No
Default Gateway . . . . . . . . . :
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
C:\Users\se20-045>hostname
DESKTOP-442SJSA
C:\Users\se20-045>netstat
Active Connections
C:\Users\se20-045>tracert www.google.com
1 1 ms 2 ms 2 ms 172.16.16.1
3 ^C
C:\Users\se20-045>nslookup aurangzeb
Server: liaquat.ssuet.edu.pk
Computer Communication & Networks (SWE-306) SSUET/QR/114
Address: 192.168.1.3
Name: aurangzeb.ssuet.edu.pk
Address: 192.168.1.5
C:\Users\se20-045>
C:\Users\se20-045>
Computer Communication & Networks (SWE-306) SSUET/QR/114
HOME ASSIGNMENT
Q1: What is the basic purpose of using Networking Troubleshooting Tool?
In simple terms, network troubleshooting tools are standalone or integrated solutions that help
network administrators identify the root cause of a network issue in order to fix it.
Q2: How can we assign IP to our system statically using Command Prompt?
If you want to set a static IP address, run this command: netsh interface ip set address name=
"Network Interface Name" static [IP address] [Subnet Mask] [Gateway]. Replace [IP address]
[Subnet Mask] [Gateway] with the ones that match your network configuration.
The main difference is that ping shows ICMP availability of the end point, which consist of the
availability of hops in the middle and health of the endpoint. While pathping shows you health of
the entire route. Show activity on this post. Ping shows the time it takes to get from you to the
destination.
Q5: What is the difference between DNS and DHCP ip address .Explain the role of default
gateway in network topology?
DHCP (Dynamic Host Configuration Protocol) and DNS (Domain Name System) both work across
the client-server architecture though they are different terms. While DNS maps the name of the
domain to the IP address, DHCP is a protocol that assigns the IP address to the host in a network
either dynamically or statically.
A default gateway makes it possible for devices in one network to communicate with devices in another
network. If a computer, for example, requests a web page, the request goes through the default gateway
before exiting the local network (LAN) to reach the internet
The default gateway is the path used to pass information when the device doesn't know where the destination
is. More directly, a default gateway is a router that connects your host to remote network segments. It's the
exit point for all the packets in your network that have destinations outside your network.
Traceroute – The traceroute command is used to determine the path between two connections. Often a
connection to another device will have to go through multiple routers.
The traceroute command will return the names or IP addresses of all the routers between two devices. This
also allows you to see where a packet may be misguided.