5.6.7 Lab Network Troubleshooting Tools
5.6.7 Lab Network Troubleshooting Tools
Objectives
Part 1: Launch the DEVASC VM
Part 2: Explore the ifconfig Troubleshooting Tool
Part 3: Explore the ping Troubleshooting Tool
Part 4: Explore the traceroute Troubleshooting Tool
Part 5: Explore the nslookup Troubleshooting Tool
Background / Scenario
In the effort to fix network connection issues, it is important for a developer to understand how to use basic
network troubleshooting tools. These tools are used to determine what the connection problem might be.
Required Resources
• 1 PC with operating system of your choice
• Virtual Box or VMWare
• DEVASC Virtual Machine
Instructions
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 8 www.netacad.com
Lab - Network Troubleshooting Tools
[add <address>[/<prefixlen>]]
[del <address>[/<prefixlen>]]
[[-]broadcast [<address>]] [[-]pointopoint [<address>]]
[netmask <address>] [dstaddr <address>] [tunnel <address>]
[outfill <NN>] [keepalive <NN>]
[hw <HW> <address>] [mtu <NN>]
[[-]trailers] [[-]arp] [[-]allmulti]
[multicast] [[-]promisc]
[mem_start <NN>] [io_addr <NN>] [irq <NN>] [media <type>]
[txqueuelen <NN>]
[[-]dynamic]
[up|down] ...
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 8 www.netacad.com
Lab - Network Troubleshooting Tools
Usage
ping [options] <destination>
Options:
<destination> dns name or ip address
-a use audible ping
-A use adaptive ping
-B sticky source address
-c <count> stop after <count> replies
-D print timestamps
-d use SO_DEBUG socket option
-f flood ping
-h print help and exit
-I <interface> either interface name or address
-i <interval> seconds between sending each packet
-L suppress loopback of multicast packets
-l <preload> send <preload> number of packages while waiting replies
-m <mark> tag the packets going out
-M <pmtud opt> define mtu discovery, can be one of <do|dont|want>
-n no dns name resolution
-O report outstanding replies
-p <pattern> contents of padding byte
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 8 www.netacad.com
Lab - Network Troubleshooting Tools
-q quiet output
-Q <tclass> use quality of service <tclass> bits
-s <size> use <size> as number of data bytes to be sent
-S <size> use <size> as SO_SNDBUF socket option value
-t <ttl> define time to live
-U print user-to-user latency
-v verbose output
-V print version and exit
-w <deadline> reply wait <deadline> in seconds
-W <timeout> time to wait for response
IPv4 options:
-4 use IPv4
-b allow pinging broadcast
-R record route
-T <timestamp> define timestamp, can be one of <tsonly|tsandaddr|tsprespec>
IPv6 options:
-6 use IPv6
-F <flowlabel> define flow label, default is random
-N <nodeinfo opt> use icmp6 node info query, try <help> as argument
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 8 www.netacad.com
Lab - Network Troubleshooting Tools
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 8 www.netacad.com
Lab - Network Troubleshooting Tools
1 43 ms 38 ms 36 ms hsrp-2001-420-c0c8-1.cisco.com [2001:420:c0c8::1]
2 48 ms 54 ms 40 ms sjc05-sbb-gw1-twe1-0-13.cisco.com [2001:420:280:1aa::]
3 39 ms 37 ms 38 ms sjc05-rbb-gw1-por20.cisco.com [2001:420:41:116::]
4 37 ms 38 ms 38 ms sjc12-corp-gw1-ten1-3-0.cisco.com [2001:420:41:11c::1]
5 39 ms 39 ms 45 ms sjc12-dmzbb-gw1-vla777.cisco.com [2001:420:82:2::d]
6 51 ms 39 ms 37 ms sjc5-cbb-gw1-be92.cisco.com [2001:420:82:4e::]
7 39 ms 39 ms 38 ms sjc12-isp-gw2-ten0-0-0.cisco.com [2001:420:82:f::]
8 78 ms 57 ms 65 ms 2001:1890:c00:6c01::eee7:a12
9 44 ms 42 ms 47 ms sj2ca81crs.ipv6.att.net
[2001:1890:ff:ffff:12:122:110:62]
10 46 ms 46 ms 47 ms 2001:1890:ff:ffff:12:122:149:225
11 43 ms 41 ms 43 ms scaca401cts.ipv6.att.net
[2001:1890:ff:ffff:12:122:137:245]
12 43 ms 43 ms 44 ms 2001:1890:fff:2180:12:120:13:178
13 53 ms 54 ms 45 ms 2001:1890:1ff:2a80:12:120:183:64
14 52 ms 42 ms 42 ms g2600-1406-0022-0183-0000-0000-0000-
1e70.deploy.static.akamaitechnologies.com [2600:1406:22:183::1e70]
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 8 www.netacad.com
Lab - Network Troubleshooting Tools
Trace complete.
devasc@labvm:~$
The output shows that there are 14 hops along the path. Round trip times are also displayed.
Non-authoritative answer:
www.cisco.com canonical name = origin-www.cisco.com.
Name: origin-www.cisco.com
Address: 173.37.145.84
Name: origin-www.cisco.com
Address: 2001:420:1101:1::a
devasc@labvm:~$
The command returns the non-authoritative answer, and both the IPv4 and IPv6 name and address. The
non-authoritative answer means that the server does not contain the original records of the domain's
zone, rather, it is created from previous DNS lookups.
Note: Your output will most likely be different. However, you should see an IPv4 and IPv6 address.
devasc@labvm:~$
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 8 www.netacad.com
Lab - Network Troubleshooting Tools
Non-authoritative answer:
www.cisco.com canonical name = www.cisco.com.akadns.net.
www.cisco.com.akadns.net canonical name = wwwds.cisco.com.edgekey.net.
wwwds.cisco.com.edgekey.net canonical name =
wwwds.cisco.com.edgekey.net.globalredir.akadns.net.
wwwds.cisco.com.edgekey.net.globalredir.akadns.net canonical name =
e2867.dsca.akamaiedge.net.
Name: e2867.dsca.akamaiedge.net
Address: 23.205.37.210
Name: e2867.dsca.akamaiedge.net
Address: 2600:1406:22:182::b33
Name: e2867.dsca.akamaiedge.net
Address: 2600:1406:22:19c::b33
devasc@labvm:~$
Notice that by using this method, the server resolved the address to three different IP addresses, all
different from the previous DNS query. These servers have a different cache of DNS queries to
www.cisco.com.
End of document
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 8 www.netacad.com