13-15Lesson 1 Configuring and Troubleshooting TCP/IP
F13us08
Figure 13-7 Use the Ipconfig /all command to display a complete TCP/IP configuration.Note You must run Ipconfig from a command prompt. If you try to execute it by using the Run command on the Start menu, the command window will close before you have a chance to read the information that is displayed.
Additional Ipconfig options include the following:
/release Releases DHCP-supplied configuration information
/renew Renews DHCP-supplied configuration information
/flushdns Purges the local DNS cache (the area of memory that stores recently
resolved names so that the client does not have to contact the DNS server each
time)
/registerdns Renews DHCP-supplied configuration information and registers the
DNS name to IP address information with DNS
/displaydns Displays the contents of the local DNS cache
/setclassid Provides for the configuration of DHCP user classes, which can control
the way IP addresses are assigned
!
Exam Tip Understand the various options available with the Ipconfig command. In particu-lar, you should remember what /renew, /release, and /flushdns do.
Using Net View
The Net View command is another command that you can use to test TCP/IP connec-
tions. To use the command, log on with the proper credentials that are required to
view shares on a remote or local computer, open a command prompt, and type net
view \\ComputerName or net view \\IP Address. The resulting report lists the file
and print shares on the computer. If there are no file or print shares on the computer,
you see the message There Are No Entries In The List.
If the Net View command fails, check the following:
■
The computer name in the System Properties dialog box
■
The gateway or router address in the TCP/IP Properties dialog box
■
The gateway or router status
■
The remote computer is running the File And Printer Sharing For Microsoft Net-
works Service (this service can be added in the TCP/IP Properties dialog box)
Using Tracert
When a route breaks down on the way from the destination computer to its target com-
puter, communication fails. The Tracert command-line utility can help you figure out
exactly where along the route the breakdown happened. Sometimes the connection
breaks down at the gateway on the local network and sometimes at a router on an
external network.
To use Tracert, at the command prompt type tracert followed by the IP address of the
remote computer. The resulting report shows where the packets were lost. You can use
this information to uncover the source of the problem.
Using Pathping
The Ping command is used to test communication between one computer and another;
Tracert is used to follow a particular route from one computer to another. The Path-
ping command is a combination of both Ping and Tracert, displaying information
about packet loss at every router between the host computer and the remote one. The
Pathping command provides information about data loss between the source and the
destination, allowing you to determine which particular router or subnet might be hav-
ing network problems. To use the Pathping command, at the command prompt, type
pathping followed by the target name or IP address.
Note The Windows Help And Support Center offers a list of all of the commands that you can perform by using the command line. Search for Command-Line Reference A–Z. Each com-mand reference includes a description of the command and how to use it.