You are on page 1of 15

Hidaya Institute of

Science &
Technology
www.histpk.org
A Division of Hidaya Trust, Pakistan

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org


Network Test & Debug
Utilities

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org


M.L. Sario
Ping
• The ping command is used to test the availability of
the source computer to reach a specified destination
computer.
• The ping command is usually used as a simple way
verify that a computer can communicate over the
network with another computer or network device.
• Ping sends very small packets to an IP host who will
answer by sending packets back.
• The ICMP packets sent to the host are called echo-
request and the packets sent back echo-response.
• Example
• ping host-name 0R ip
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
M.L. Sario
Ping Error Messages
• Destination Host Unreachable
• The host that you are trying to ping is down or is not
operating on the network.
• A local or remote route does not exist for destination
host.
• Modify the local route table or notify the router
Administrator.

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org


Ping Error Messages
• Request Timed Out
• The ping command timed out because there was no reply
from the host.
• No Echo Reply messages were received due to network
traffic, failure of the ARP request packet filtering, or router
error.
• Increase the wait time using the ping -w switch.
• Default time out is 4000ms (4 Seconds)
• The option -w affects only timeout in absence of any
responses, otherwise ping waits for RTT.
5

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org


Ping Error Messages
• Unknown Host
• The IP Address or the Host Name does not exist in the
network or the destination host name cannot be resolved.
• Verify name and availability of DNS servers.

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org


Tracert
• In computing, traceroute is a computer network diagnostic
tool for displaying the route (path) from source host to
destination host.
• traceroute command used in Linux same as tracert.

• Syntax
• tracert www.histpk.org

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org


Tracert

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org


Tracert

• This message indicates that the router security settings


keep it from revealing its identity or the router and
connection are slow.

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org


Netstat
• The netstat command is used to display the TCP/IP
network protocol statistics and information.
• Netstat is a common command line TCP/IP networking
utility available in most versions of Windows, Linux, UNIX
and other operating systems.
• Netstat provides information and statistics about protocols
in use and current TCP/IP network connections.
• Displays protocol statistics and current TCP/IP network
connections.
• Example
• netstat
10

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org


netstat

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 11


M.L. Sario
nslookup
• The nslookup is a utility, that enables a user to look up an
IP address of a domain or host on a network.

• Example
• nslookup www.yahoo.com
• nslookup www.google.com

12

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org


nslookup

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 13


M.L. Sario
ipconfig
• ipconfig is a MS-DOS utility which can be used from MS-
DOS and a MS-DOS shell to display the network settings
currently assigned and given by a network.
• This command can be utilized to verify a network
connection as well as to verify your network settings.
• Ifconfig command is used in Linux OS same as ipconfig.
• Example
• ipconfig

14

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org


iTs oVeR

15

© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org

You might also like