Windows operating system provides some basic tools to troubleshoot network.
tracert is one of the most used tool.
tracertcommand simply trace route to the given IP address or remote host.
tracert mainly provides the route to the remote IP address.
Syntax of tracert command is like below.
tracert OPTIONS HOSTNAME
In this example we will simply trace the path to the remote host. We do not provide any option. Before command the hostname will be resolved as expected. In this example we will trace route to the
> tracert google.com
Do Not Resolve Hostname
tracert will resolve dns of all intermediate hops. This will caouse slowness of the operation. We can prevent
tracert to resolve the dns of intermediate hosts with
> tracert -d google.com
Some times if IPv6 is available it may be preferred automatically. We can prevent to trace the path with traceroute using IPv6. We will use
-4 option to force IPv4 address usage.
> tracert -4 google.com
if IPv4 is available it may be preferred automatically. We can prevent to trace the path with traceroute using IPv4. We will use
-6 option to force IPv6 address usage.
> tracert -6 google.com
Set Maximum Hop Count
As we know IP networks or internet consist of mesh like systems and stations that connects each other.
tracertwill send packets hop by hop. We can set maximum hop count with
-h . After specified number of hops
tracert will stop.
> tracert -h 4 google.com