Share this Page URL

Chapter 5. Networking > Troubleshooting Network Connections with netsh, netstat... - Pg. 191

Troubleshooting Network Connections with netsh, netstat, and ipconfig More command-line tools for tracking down problems with your network con- nection. In addition to well-known command-line network utilities such as ping , tracert , and pathping , there are several other all-purpose utilities that can help you troubleshoot network connections: netsh , netstat , and ipconfig . Use netsh to Troubleshoot Network and Internet Connections is a wide-ranging command-line diagnostic tool that has an exceedingly large number of commands available. (For a complete list of available commands, use Win- dows XP Help and Support and search for netsh .) Here you'll learn the most interesting. netsh Perhaps the most useful of the netsh commands are the netsh diag commands. Use them to find out information about your PC's network setup, such as finding the IP address of its mail server, newsgroup server, DNS server, and similar resources. There are two ways to use netsh : directly from the command line with all its switches, or first getting to the netsh console by typing netsh at the command line and then typing the command from the netsh> prompt that appears. For example, you could type netsh diag show adapter at the command line, which lists every network adapter on your PC,