Lab 7
Lab 7
Addressing Table
Device Interface IP Address / Prefix Default Gateway
64.100.0.2 /30
G0/0/0
R1 N/A
G0/0/0 2001:db8:acad::2 /64
R1 N/A
G0/0/0
R1 fe80::2 N/A
R1
G0/0/1 192.168.1.1 /24 N/A
G0/0/1
R1 N/A
2001:db8:acad:1::1 /64
G0/0/1
R1 N/A
fe80::1
ISP
2001:db8:acad::1 /64
G0/0/0 N/A
ISP
fe80::1 N/A
ISP
G0/0/1
ISP
N/A
2001:db8:acad:200::225 /64
G0/0/1
fe80::225
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 9 www.netacad.com
Packet Tracer - Use Ping and Traceroute to Test Network Connectivity - Physical Mode
fe80::1
fe80::2
External NIC
2001:db8:acad:200::226 /64 fe80::225
Blank Line - no additional information
Objectives
Part 1: Use Ping Command for Basic Network Testing
Part 2: Use Tracert and Traceroute Commands for Basic Network Testing Part
3: Troubleshoot the Topology
Background / Scenario
Ping and traceroute are two tools that are critical when testing TCP/IP network connectivity. Ping is a network
administration utility that is used to test the reachability of a device on an IP network. This utility also
measures the time it takes for messages that are sent from the originating host to a destination host and back
again.
The traceroute utility is a network diagnostic tool for displaying the path or route of a packet, and for
measuring the transit delays of packets travelling over an IP network.
In this Packet Tracer Physical Mode (PTPM) activity, the ping and traceroute commands are examined, and
command options are explored to modify the command behavior. Cisco devices and PCs are used in this
activity for command exploration. The available options for the ping and tracert commands are limited in
Packet Tracer. The necessary Cisco device configurations are provided in this activity.
Instructions
Part 1: Use the Ping Command for Basic Network Testing
In this part of the activity, use the ping command to verify end-to-end connectivity. Ping operates by sending
Internet Control Message Protocol (ICMP) echo request packets to the target host and then waiting for an
ICMP response. It can record the round-trip time and any packet loss or routing loops.
IP packets have a limited lifetime on the network. IPv4 packets use an 8 bit Time to Live (TTL). IPv6 packets
use a Hop Limit header field value. The TTL and the Hop Limit specify the maximum number of Layer 3 hops
that can be traversed on the path to their destination. Each host on a network will set the 8 bit value with a
maximum value of 255.
Each time an IP packet arrives at a Layer 3 network device, this value is reduced by one before it is forwarded
to the destination. If this value eventually reaches zero before reaching the destination, the IP packet is
discarded.
You will examine the results of the ping command and the additional ping options that are available in Packet
Tracer PCs and Cisco devices.
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 9 www.netacad.com
Packet Tracer - Use Ping and Traceroute to Test Network Connectivity - Physical Mode
All the pings from PC-A to other devices in the topology should be successful. If they are not, check the
topology and the cabling, as well as the configuration of the Cisco devices and the PCs.
a. From PC-A, ping the default gateway using the IPv4 address (GigabitEthernet 0/0/1 interface of R1).
Open command prompt
In this example, four ICMP requests that have 32 bytes each, were sent. The responses were received in
less than one millisecond with no packet loss. The transmission and reply time can increase as the ICMP
requests and responses are processed by more devices during the journey to and from the destination.
This can also be done using the IPv6 address of the default gateway (GigabitEthernet 0/0/1 interface of
R1).
C:\> ping 2001:db8:acad:1::1
b. From PC-A, ping the addresses listed in the following table and record the average round trip time and IPv4
TTL, or IPv6 Hop Limit.
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 9 www.netacad.com
Packet Tracer - Use Ping and Traceroute to Test Network Connectivity - Physical Mode
blank
Part 2: Use Tracert and Traceroute Commands for Basic Network Testing
The commands for tracing routes can be found on PCs and network devices. For a Windows-based PC, the
tracert command uses ICMP messages to trace the path to the destination. The traceroute command uses
the User Datagram Protocol (UDP) datagrams for tracing routes to the destination for Cisco devices and other
Unix-like PCs.
In this part, you will examine the traceroute commands and determine the path that a packet travels to the
destination. You will use the tracert command from the PCs and the traceroute command from the Cisco
devices. You will also examine the options that are available for fine tuning the traceroute results.
1 * * 1 ms 192.168.1.1
2 * 0 ms 0 ms 64.100.0.1
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 9 www.netacad.com
Packet Tracer - Use Ping and Traceroute to Test Network Connectivity - Physical Mode
3 0
ms * 0 ms 64.100.0.1
4 * 11 ms * Request timed out.
5 0 ms * 0 ms 64.100.0.1
Control-C
^C
C:\>
209.165.200.226
Close configuration window
The traceroute command has additional options. You can use the ? or just press Enter after typing
traceroute at the to explore these options. Note: The available options are limited in Packet
Tracer.
The following link provides more information regarding the ping and traceroute commands for a Cisco
device:
http://www.cisco.com/en/US/products/sw/iosswrel/ps1831/products_tech_note09186a00800a6057.shtml
Part 3: Correct the network connectivity issue at ISP.
Step 1: Access the network location where the connectivity issue is occurring.
From the previous steps, you had determined that there is an issue at the ISP router using the ping and
traceroute commands. You have remote SSH access to all the network devices using username admin and
password class.
Open command prompt
a. From the terminal of S1, SSH into the ISP router using the G0/0/0 interface to correct the problem.
C:\> ssh -l admin 64.100.0.1
b. Use the show commands to examine the running configurations for the ISP router.
The outputs of the show run and show ip interface brief commands indicate that the GigabitEthernet
0/0/1 interface is up/up but that it is configured with an incorrect IP address.
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 9 www.netacad.com
Packet Tracer - Use Ping and Traceroute to Test Network Connectivity - Physical Mode
c. Correct the issues you found. From the command prompt on PC-A, copy and paste the following
configuration into the ISP router to correct the issue in the SSH session to the ISP router.
configure terminal interface g0/0/1 no ip
address 192.168.8.1 255.255.255.0 ip
address 209.165.200.225 255.255.255.224 no
ipv6 address 2001:db8:acad:201::225/64
ipv6 address 2001:db8:acad:200::225/64
ipv6 address fe80::225 link-local no
shutdown
d. Exit the SSH session when finished.
Close command prompt
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 9 www.netacad.com
Packet Tracer - Use Ping and Traceroute to Test Network Connectivity - Physical Mode
While the network is functioning correctly, the ping command can determine whether the destination
responded and how long it took to receive a reply from the destination. If a network connectivity problem
exists, the ping command displays an error message.
e. Re-enable the GigabitEthernet 0/0/1 interface on the ISP router (using the no shutdown command)
before moving onto the next step. After about 30 seconds, the ping should be successful again. f. Press
Ctrl+c to stop the ping command.
g. The above steps can be repeated for the IPv6 address to obtain an ICMP error message.
Question:
Step 2: Test network connectivity from the R1 network using Cisco devices.
The ping command is also available on Cisco devices. In this step, the ping command is examined using R1
and S1.
a. From R1, ping External on the external network using the IP address of 209.165.200.226.
Open configuration window
The exclamation point (!) indicates that the ping was successful from R1 to External. The round trip takes
an average of 1 ms with no packet loss, as indicated by a 100% success rate.
b. Because a local host table was configured on R1, you can ping Externalv4 on the external network using
the hostname configured from R1.
R1# ping Externalv4
Question:
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 9 www.netacad.com
Packet Tracer - Use Ping and Traceroute to Test Network Connectivity - Physical Mode
d. You can use an extended ping to observe where there is a network issue. Start the ping command to
209.165.200.226 with a repeat count of 50000. Then, shut down the GigabitEthernet 0/0/1 interface on
the ISP router.
From the SSH session to ISP on switch S1, disable the GigabitEthernet 0/0/1 interface on ISP.
e. From the SSH session, enable the GigabitEthernet 0/0/1 interface on ISP after the exclamation points (!)
have replaced by the letter U and periods (.). After about 30 seconds, the ping should be successful
again. Press Ctrl+Shift+6 to stop the ping command.
R1# ping
Protocol [ip]:
Target IP address: 209.165.200.226
Repeat count [5]: 50000 Datagram
size [100]:
Timeout in seconds [2]:
Extended commands [n]:
Sweep range of sizes [n]: Sending 500, 100-byte ICMP Echos to
209.165.200.226, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<output omitted>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.U.U.U.U.U.
U.U................!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! <output
omitted>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!
Success rate is 99 percent (9970/10000), round-trip min/avg/max = 1/1/10 ms
The letter U in the results indicates that a destination is unreachable. An error PDU was received by R1.
Each period (.) in the output indicates that the ping timed out while waiting for a reply from External. In
this example, 1% of the packets were lost during the simulated network outage.
Close configuration window
The ping command is extremely useful when troubleshooting network connectivity. However, ping cannot
indicate the location of a problem when a ping is not successful. The tracert (or traceroute) command
can display network latency and path information.
f. In the PT activity window, click Check Results to verify all the assessment items and connectivity tests are
correct.
Reflection Questions
1. What could prevent ping or traceroute responses from reaching the originating device beside network
connectivity issues?
- Firewall on the PCs, access list commands, routing issues, interface is down, network delay
Type your answers here.
2. If you ping a non-existent address on the remote network, such as 209.165.200.227, what is the message
displayed by the ping command? What does this mean? If you ping a valid host address and receive this
response, what should you check?
- Request timed out or periods (.). This means that there was no response in the default time period. Some
of the items you may check: router is down, destination host is down, return route to your device and latency
of the response is not more than the default time period
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 9 www.netacad.com
Packet Tracer - Use Ping and Traceroute to Test Network Connectivity - Physical Mode
Type
your answers here.
3. If you ping an address that does not exist in any network in your topology, such as 192.168.5.3, from a
Windows-based PC, what is the message displayed by the ping command? What does this message
indicate?
- Destination host unreachable. This message indicates that there is no route to the destination as the
network is not listed by the routing table.
Type your answers here.
end of document
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 9 www.netacad.com