Lab 1 Handout
Lab 1 Handout
Use this ping command option to specify the number of hops between your
computer and the target computer or device that you'd like to be recorded
and displayed. The maximum value for count is 9, so use the tracert
-r count command instead if you're interested in viewing all the hops between two
devices.
Use this option to report the time, in Internet Timestamp format, that each
echo request is received and echo reply is sent. The maximum value
for count is 4, meaning that only the first four hops can be time stamped.
-s count
Specifying a timeout value when executing the ping command adjusts the
- amount of time, in milliseconds, that ping waits for each reply. If you don't
w timeout use the -w option, the default timeout value of 4000 is used, which is 4
seconds.
-R This option tells the ping command to trace the round trip path.
-
Use this option to specify the source address.
S srcaddr
-p Use this switch to ping a Hyper-V Network Virtualization provider address.
This forces the ping command to use IPv4 only but is only necessary
-4
if target is a hostname and not an IP address.
This forces the ping command to use IPv6 only but as with the -4 option, is
-6
only necessary when pinging a hostname.
Target This is the destination you wish to ping, either an IP address or a hostname.
Use the help switch with the ping command to show detailed help about the
/?
command's several options.
To test a TCP/IP configuration by using the ping command:
Ping google.com
This command on cmd sends four 32 bytes by default from your source to host
google.com
The above command is also used to calculate latency of the network (average
round trip time in ms).
In this example, the ping command is used to ping the hostname google.com. The
-n option tells the ping command to send 5 ICMP Echo Requests instead of the
default of 4, and the -l option sets the packet size for each request to 1500 bytes
instead of the default of 32 bytes.
The result displayed in the Command Prompt window will look something like
this:
2. Tracert:
Tracert (Trace route) as the name indicates determines the path taken to a
destination by sending Internet Control Message Protocol (ICMP) Echo Request
messages to the destination with incrementally increasing Time to Live (TTL) field
values. The path displayed is the list of near-side router interfaces of the routers in
the path between a source host and a destination. The near-side interface is the
interface of the router that is closest to the sending host in the path.
tracert google.com
The above command displays all routes from source to destination along
with their hostnames and ip addresses.
tracert –d google.com
With this tracert command example, we are again requesting the path to a website
www.google.com, but now preventing tracert from resolving hostnames by using
the -d option. This speeds up the process and we get desired routes from source to
destination with relatively lesser time.
3. Ipconfig
Displays all current TCP/IP network configuration values and refreshes Dynamic
Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings.
This command is most useful on computers that are configured to obtain an IP
address automatically. This enables users to determine which TCP/IP configuration
values have been configured by DHCP, Automatic Private IP Addressing (APIPA),
or an alternate configuration.
4. Netstat