Managing routing from the command line

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Managing routing from the command line

In addition to using Routing and Remote Access, you can use command-line utilities to manage routing for users, computers, or services. By combining command-line utilities within a batch file, you can simplify and automate complicated daily, weekly, or monthly tasks on one or more servers.

For example, you can use the Pathping command to diagnose network latency or loss problems. The pathping command sends Internet Control Message Protocol (ICMP) Echo Request messages to each router between a source and a destination over a period of time. Results based on the packets returned from each router are then computed and displayed. The Tracert command can be used to determine and display a path to a destination IP address that you want to reach. Used for diagnostic purposes only, the Ping command verifies IP-level connectivity to another TCP/IP computer. You can use Netsh overview to perform more advanced management tasks, such as scripting.

For more information about managing routing with command-line utilities, see Routing Tools and Utilities. For information about other command-line utilities, see Command-line reference A-Z.