Discussion Locked

Route Command

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

What is the function of route command , when i say Route in Command prompt , i get a table what are those ?? could you explain ?

what is Metric ? am seeing this Metric 1 & Metric 2 ?

5 replies

by cportman

The route command is used to view your local routing table. You will see a number of entries that are there by default like an entry for 0.0.0.0 and 127.0.0.1 and your ip address. The 0.0.0.0 entry is your default gateway. You can add static routes by entering ROUTE ADD (IP ADDRESS OF DESTINATION NETWORK) (MASK) (GATEWAY TO THAT NETWORK) (METRIC)

Metrics are used to determine the best path to a destination network. The lower the number the better the route. All local networks that you are directly connected to will have a metric of 1. Metrics are usually associated with "hops" - a hop is when i go from one router to another. When you do a tracert it traces the route over a maximum of 30 hops. Try going to a command prompt and entering TRACERT www.novell.com this will show you all the hops it takes to get to Provo Utah. If you have routes that have a metric of two your computer is less likely to use those routes unless those are the only entries to a certain network.

Hope this helps
cp

by joshg

The first guy has good info. We use the ROUTE command for our WAN routes. The problem with ROUTE is if you use just the ROUTE add command then the route is added only for that session. I have a batch file set in startup that runs and adds the routes as the server is started. This can also be done using ROUTE ADD -P (makes route permanent) no need for a batch file at starup.

This discussion is closed to new replies.