Professional Documents
Culture Documents
09networking Testing Utilities
09networking Testing Utilities
09networking Testing Utilities
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
Troubleshooting Commands
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
Troubleshooting Commands
Overview of Troubleshooting Commands
• Several software utility programs are available that can help identify network problems.
• Most of these utilities are provided by the operating system as command line interface (CLI)
commands.
• The syntax for the commands may vary between operating systems.
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
Troubleshooting Commands
The ipconfig Command
• When a device does not get an IP address, or has an incorrect IP configuration, it cannot
communicate on the network or access the internet.
• On Windows devices, you can view the IP configuration information with the ipconfig command at
the command prompt.
• The ipconfig command has several options that are helpful including /all, /release, and /renew.
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
Troubleshooting Commands
The ipconfig Command (Cont.)
• ipconfig /all
• Displays additional information including the MAC
address, IP addresses of the default gateway, and
the DNS servers.
In this activity, you will use the ipconfig command to identify incorrect configuration on a PC.
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
Troubleshooting Commands
The ping Command
• Most IP enabled devices support some form of the ping command to test if network devices are
reachable through the IP network.
• If the IP configuration appears to be correctly configured on the local host, next, test network
connectivity by using ping.
• The ping command can be followed by either an IP address or the name of a destination host.
• When a ping is sent to an IP address, a packet known as an echo request is sent across
the network to the IP address specified.
• If the destination host receives the echo request, it responds with a packet known as an echo reply.
• If the source receives the echo reply, connectivity is verified by the reply from the specific IP
address.
• The ping is not successful if a message such as 'request timed out' or 'general failure' appears.
• If a ping command is sent to a name, such as www.cisco.com, a packet is first sent to a
DNS server to resolve the name to an IP address.
• After the IP address is obtained, the echo request is forwarded to the IP address and the process
proceeds.
• If a ping to the IP address succeeds, but a ping to the name does not, there is most likely a
problem with DNS.
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
Troubleshooting Commands
The ping Command (Cont.)
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
Troubleshooting Commands
Ping Results
• If ping commands to both the name and IP address are successful, but the user is still unable to
access the application, then the problem most likely resides in the application on the destination
host.
• For example, it may be that the requested service is not running.
• If neither ping is successful, then network connectivity along the path to the destination is most
likely the problem.
• If this occurs, it is common practice to ping the default gateway.
• If the ping to the default gateway is successful, the problem is not local.
• If the ping to the default gateway fails, the problem resides on the local network.
• In some cases, the ping may fail but network connectivity is not the problem.
• A ping may fail due to the firewall on the sending or receiving device, or a router along the path
that is blocking the pings.
• The basic ping command usually issues four echoes and waits for the replies to each one.
• It can, however, be modified to increase its usefulness.
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
Troubleshooting Commands
Ping Results (Cont.)
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
Troubleshooting Commands
Packet Tracer - Use the ping Command
In this activity, you will use the ping command to identify an incorrect configuration on a PC.
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
Network Testing Utilities Summary
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
Network Testing Utilities Summary
What Did I Learn in this Module?
• Several software utility programs are available that can help identify network problems.
• Most of these utilities are provided by the operating system as CLI commands.
• Some of the available utilities include ipconfig, ping, netstat, tracert, and nslookup.
• The ipconfig command is used to display the current IP configuration information for a host.
• Issuing this command from the command prompt will display the basic configuration information including
IP address, subnet mask, and default gateway.
• The command ipconfig /all displays additional information including the MAC address, IP addresses of
the default gateway, and the DNS servers.
• It also indicates if DHCP is enabled, the DHCP server address, and lease information.
• If IP addressing information is assigned dynamically, the command ipconfig /release will release the
current DHCP bindings.
• ipconfig /renew will request fresh configuration information from the DHCP server.
• A host may contain faulty or outdated IP configuration information and a simple renewal of this information
is all that is required to regain connectivity.
• When a ping is sent to an IP address, a packet known as an echo request is sent across the network to the
IP address specified.
• If the destination host receives the echo request, it responds with a packet known as an echo reply.
• If the source receives the echo reply, connectivity is verified by the reply from the specific IP address.
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15