Troubleshooting with TCP/IP Utilities
After you have TCP/IP installed and configured and you have your TCP/IP network running, it is important to be able to troubleshoot the network. When problems arise on a Windows network, you can use some of the following commands to do your troubleshooting:
- IPCONFIG
- PING
- TRACERT
- NBTSTAT
- NETSTAT
- PATHPING
- NSLOOKUP
The following sections discuss these popular TCP/IP utilities that are used to troubleshoot TCP/IP connectivity.
IPCONFIG
If you are running Windows 2000 or Windows XP desktops, you can run the ipconfig (IP Configuration) utility, which shows you the current TCP/IP configuration of the Windows desktop, such as the IP address, the subnet mask, and the default gateway. If the computer is a DHCP client, ipconfig identifies the server that has given the IP address and also shows how long the IP address will be used by the client. Table below shows some of the switches supported by the utility ipconfig.exe.
IPCONFIG SwitchesSwitch | Description |
---|---|
/? | Shows a list of switches supported by ipconfig.exe and a brief description of each switch. |
/all | Shows all TCP/IP information - for example, DHCP lease period and the DNS server. |
/release | Releases the current IP address information assigned by the DHCP server. |
/renew | Requests new IP address information from the DHCP server. |
For example, to use the ipconfig utility and view just the basic TCP/IP settings, you type the following at a command prompt:
ipconfig
But to view all the TCP/IP settings, such as your MAC address or the IP address of your DNS server, DHCP server, and WINS server, use the ipconfig /all command. You may also view when your lease time is up for the address you have been assigned when you use the /all switch on ipconfig.
In this tutorial:
- Networking the Operating System
- Understanding Networking Components
- Installing a network adapter in Windows 2000/XP/2003
- Network client
- Protocols
- IPX/SPX
- Services
- The TCP/IP Protocol
- Subnet mask
- Default gateway
- Configuring TCP/IP en masse using DHCP
- Understanding Name Resolution
- WINS
- The LMHOSTS file
- The HOSTS file
- Troubleshooting with TCP/IP Utilities
- PING
- TRACERT
- NETSTAT
- Sharing File System Resources
- Enabling File and Printer Sharing in Windows 2000/XP/2003
- Sharing a folder in Windows XP
- Hidden shares
- Using a UNC path
- Sharing Printer Resources
- Understanding Windows Services
- Browser service