Save the current configuration —The Interface Dump subcommand saves your current network configuration and generates a script that you can use to regenerate the configuration. Restore network configuration —The Netsh Exec command runs a Netsh script file. Change almost any network configuration setting with this powerful tool. Hide comments. More information about text formats.
Text format Comments Plain text. Web page addresses and e-mail addresses turn into links automatically. Lines and paragraphs break automatically.
Leave this field blank. To use ping as an example:. To help you choose the tool you need to diagnose your problem, this handy chart outlines some of the potential problems and which tool will help you diagnose where the problem is. Ping is probably one of the most used Command Line tools and for good reason. It is usually the first tool most network administrator use when faced with any kind of problem.
You can use results from other actions to carry out further actions in Ping to discovered where the problem may be.
To use ping, simply open a command prompt and enter ping then the name of the host that you want to check, without the http, ftp etc or any directories, slashes or other information. Getting the "Request timed out" doesn't always mean that the host you are pinging is actually down.
Some sites will block the "ping packets" from being returned as a security measure, so they will never respond to a ping. There are other tests that you can do to verify whether the host is alive or not, using Telnet. With an additional command you can ask your machine to keep pinging a machine until you end it.
This is useful if you are moving a cable that you think is a problem or you have an intermittent fault. To continuously ping a host, add the command "-t" to the end after the host. For example:. Path ping is a new tool introduced by Microsoft which combines ping and Trace Route.
It analyzes the route in the same way that trace route does, but sends multiple pings to each hop on the way. It then collects statistics on this route to tell you whether one particular hop is being very slow, indicating a problem. This does make it a slower tool than ping, but can provide more information useful for diagnosis. Using pathping is very similar to the standard ping application. In a command prompt enter the command "pathping" then the host or Ip address that you want to check.
After pressing enter you will get one of two results. Either "unable to resolve target" which means that the name doesn't exist or the pathping will begin, only to end with a successful or failure result code. Refer to the tracert results table below for information on these result codes. You can also ping through the Netshell interface, allowing you to ping certain servers and settings that are configured on your machine.
See the netsh section below for more information on this powerful application. When you browse the Internet, your machine doesn't not connect directly to the other site, it goes through many hops. This can be as few as one or two if you are connecting to the web servers internally or at your internet service provider, to as many as 30 if you are browsing to a web site hosted on the other side of the world.
In most cases you don't need to worry about how many hops you go through.
What Trace Route does is show you the route that it is taking. If you are getting a problem where you cannot connect to a certain site, trace route can help you diagnose whether it is a local problem, an ISP problem or a wider issue. The trace route command is "tracert" and as with ping, you can trace to either an name or an IP address.
In an open command prompt windows, enter the command tracert followed by the host you want to connect to. After pressing enter, the trace will either fail immediately, or you will get one of the following result codes:. Waiting for the timeout to complete is a waste of time. If it occurs after three or four hops then it is probably outside of your control.
DOS and Windows IP Commands - Windows and DOS IP commands including ipconfig, trace route, Release All IP Address Connections: ipconfig /release. Using Command Prompt commands, you can locate the router's default gateway and the IP address assigned to your computer. If you are not using a router, the.
If the problem is a hop outside of your ISP, there is very little that you can do. Hopefully the problem will be resolved or routers will find an alternative route around the problematic machine. Net Stat is a tool that tells you what your machine is connected to at the moment the command is run.
This makes it a very useful tool to see if your machine is connecting to servers that you don't know about - possibly via the so called "Spy Ware" or "Ad Ware". By adjusting the switches after the command you can change the way the information is presented. This tool can display information about the active connections, as well as whether the machine is listening for connections - i.
If you have any of the following in a listening state on your machine and don't knowing know about running those type of applications then you may have an application on your system that is waiting for a third party to connect. This lists the most common port usage but is reliant on application providers registering the port use.
You could also do a search on Google for the word "port" and then the number to see if anyone else has reported it or can tell you what it is. This makes resolving problems with it a little more complex than before. Microsoft introduced with Windows a new utility that runs from the command line to allow you to adjust and diagnose the IP settings.
Drupal Email Glossary search. The command offers additional options: For example, you can activate debugging with -d. The program searches data carriers for errors. The infamous blue screen of death usually shows up without any warning. The check is disabled in the standard settings. You may notice that you get non authoritative answers.
This new command is called netsh net shell. It takes preset commands, looks at what is configured in the operating system for those settings then uses them. Therefore you are testing the network settings as the operating system sees them. If you going to be running lots of commands or want to look at the help files for subcommands, then method 2 is the better choice. Below are some of the commands that you can run in a Netsh session and what they do. There are lots of commands available and these are just a sample of what is available.
DNS is core to the operation of most networks and the Internet. It stands for Domain Name Service and the best way to think of it is like a big phone book. Every machine on the Internet has a unique IP address. DNS maps those addresses to friendly names. For example www. If you are getting errors when browsing about hosts not being found, especially of they are popular sites like Microsoft, Yahoo or the BBC then your DNS could be at fault.
The first thing you should do is flush your DNS cache.