Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Command-Line Tools > Answers to Review Questions

17.17. Answers to Review Questions

  1. C. The program Packet Internet Groper (ping) is used to find out if a host has the IP stack initialized.

  2. A. The ARP utility is used to display the contents of the ARP cache, which tracks the resolution of IP addresses to physical (MAC) addresses and will produce the displayed output.

  3. A. The nbt in nbtstat stands for "NetBIOS over TCP/IP." The purpose of nbtstat is to display the NetBIOS over TCP/IP statistics for a computer running both protocols.

  4. B. The purpose of the ping utility is to test the communications channel between two IP hosts as well as how long it takes the packets to get from one host to another.

  5. C. The ipconfig /all utility will display current configuration of TCP/IP on a given workstation—including the current IP address, DNS configuration, WINS configuration, and default gateway.

  6. B, D. The address 127.0.0.1 is the special IP address designated for the local TCP/IP interface. The host name localhost is the host name given to the local interface. Therefore, pinging either the IP address or the host name for the local interface will tell you whether the local interface is working.

  7. A. The command nbtstat –r displays all the name resolutions performed by the local client as well as their associated IP addresses. The –R switch will reload the cache.

  8. C. The arp utility will show you the resolved MAC to IP address of all hosts on your network segment. Remember, this will only work for local hosts, not remote hosts.

  9. B. To purge and reload the remote NetBIOS name cache, you must use nbtstat –R. Remember that the R must be uppercase and that it will not work correctly without the hyphen before it.

  10. C. If you start seeing repeated addreses, and TTL timeouts, you have a network loop, meaning layer 3.

  11. B. The tracert utility will give you that output. The tracert command (or trace for short) traces the route from the source IP host to the destination host.

  12. C. The tracert utility will tell you which router is having the performance problem and how long it takes to move between each host. tracert can be used to locate problem areas in a network.

  13. A. The ipconfig /all switch will display the most complete listing of TCP/IP configuration information also displaying the MAC address, DHCP lease times, and the DNS addresses.

  14. C. The tracert utility returns all router names and addresses through which a packet passes on its way to a destination host.

  15. E. The telnet utility can be used to test if a particular IP host is responding on a particular TCP port.

  16. C. The arp /a command will display the current contents of the ARP cache on the local workstation.

  17. C. Dig is an old unix command that will show you DNS server information.

  18. A, D. The arp utility's –a and –g switches perform the same function. They both show the current ARP cache.

  19. B, E, F. Nslookup, ipconfig, and ifconfig will show you the DNS servers that a computer is configured to use.

  20. C. nbtstat –s will display pre-protocol statistics for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint