0% found this document useful (0 votes)
5 views6 pages

Assignment 4

The document outlines various command line utilities used for network diagnostics, including ping, tracert, pathping, and ipconfig, along with their usage and options. It includes exercises for using these commands to gather information about network interfaces, test connectivity to websites, and analyze routing paths. Additionally, it discusses differences observed when using specific options with tracert and pathping commands.

Uploaded by

kmandhal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views6 pages

Assignment 4

The document outlines various command line utilities used for network diagnostics, including ping, tracert, pathping, and ipconfig, along with their usage and options. It includes exercises for using these commands to gather information about network interfaces, test connectivity to websites, and analyze routing paths. Additionally, it discusses differences observed when using specific options with tracert and pathping commands.

Uploaded by

kmandhal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

M.

KEERTHI
2023002211

ASSIGNMENT-4
Command Line Utilities:

There are several command line utilities (slightly different for each
operating system). Some of these are:
1. ping: Used to test if two hosts can communicate with each
other. Usage: ping [options] target name
Some Options:
-t ping till stopped -a resolve host addresses to names
-i TTL set time to live .
2. tracert (traceroute on Linux) Used to trace the route to the
target host
Usage: tracert [options] target_name
Some Options:
• -h maximum number of hops to host
• -d use ip addresses
• -w timeout in ms for each hop
3.pathping (mtr on Linux) Gives route with statistics latency a
loss statistics

4.ipconfig (ifconfig on Linux) Used to get information about the


current host’s network connections and configure them.

Usage: ipconfig [options]


M.KEERTHI
2023002211

2.1 Exercise

1. Use the ipconfig /all command and note the number of


network interfaces your computer has and their hardware and
IP addresses.
M.KEERTHI
2023002211

2.Use the ping command to test if the website www.google.com is


reach- able. Note the following: the IP address of www.google.com
and the aver- age round-trip-time to this host
M.KEERTHI
2023002211

3. Use the ping command with the -i option to get the number of
hops to www.gitam.edu. Report the steps you followed to do this.

(a) Use the tracert command to find the route to find the route to
www.gitam.edu. Note the route.

(b) Now use tracert with the option-d to find the route to
www.gitam.edu. Do you observe anything different now? If yes,
what is it?
M.KEERTHI
2023002211

Differences Observed:
✔ The hostnames are missing (only IP addresses are shown).
✔ The command runs faster because it doesn’t need to resolve domain names.

2. Find out about two possible options for the pathping


command. Use this command to find the link with maximum
packet loss.

Ans. Here are two possible options for the pathping command:
-n (Do not resolve addresses to hostnames)-This option prevents pathping
from performing a DNS lookup on IP addresses, which can speed up the process.
-h <maximum_hops> (Set maximum number of hops)-Specifies the
maximum number of hops the command will trace before stopping.
M.KEERTHI
2023002211

You might also like