Static routes with different metrices

S

Satish S. Joshi

Hi,

I am stuck with a peculiar problem and any help would be much appreciated.

I have a Windows 2000 Professional PC with IP address 192.168.1.25 /
255.255.255.0
There are two routers on the network, R1 (192.168.1.2) and R2 (192.168.1.3).
Both routers can independently reach network 192.168.100.0 / 255.255.255.0

I need to have two static routes to network 192.168.100.0 / 255.255.255.0
The preferred route with lower metric (1) should be via R1 and the second
route
with higher metric (say 3) should be via R2.

I have added the routes with 'route' command and they show up properly if I
do 'route print'.
However, if the gateway with lower metric (R1) is down, the second route is
not chosen at all
and the destination network (192.168.100.0) cannot be reached.

I cannot figure out why the second route is not taking effect.

Regards,
Satish S. Joshi
 
R

Roland Hall

in message
: Hi,
:
: I am stuck with a peculiar problem and any help would be much appreciated.
:
: I have a Windows 2000 Professional PC with IP address 192.168.1.25 /
: 255.255.255.0
: There are two routers on the network, R1 (192.168.1.2) and R2
(192.168.1.3).
: Both routers can independently reach network 192.168.100.0 / 255.255.255.0
:
: I need to have two static routes to network 192.168.100.0 / 255.255.255.0
: The preferred route with lower metric (1) should be via R1 and the second
: route
: with higher metric (say 3) should be via R2.
:
: I have added the routes with 'route' command and they show up properly if
I
: do 'route print'.
: However, if the gateway with lower metric (R1) is down, the second route
is
: not chosen at all
: and the destination network (192.168.100.0) cannot be reached.

Satish...

This sounds like you're trying to multihome your network in case of
failover. It is my understanding that the 'metric' you are referring to is
a hop, and not a weight. I believe what you want to use is BGP4 with
weighted entries so in case one fails the other takes over.

You might also be able to use OSPF as an alternative but I doubt setting
different metric values will make a difference and will actually be
incorrect if it is just 1 hop to the target LAN.

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Online Support for IT Professionals -
http://support.microsoft.com/servicedesks/technet/default.asp?fr=0&sd=tech
How-to: Windows 2000 DNS:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;308201
 
S

Satish S. Joshi

Ouch ! BGP4 and OSPF is pretty complicated stuff and not much to do with
Windows 2000 Professional anyway !

I am trying to find out how the Windows PC can sense that the first router
is down and switch to the second router.

Regards,
Satish S. Joshi
 
R

Roland Hall

in message
: Ouch ! BGP4 and OSPF is pretty complicated stuff and not much to do with
: Windows 2000 Professional anyway !
:
: I am trying to find out how the Windows PC can sense that the first router
: is down and switch to the second router.

complicated is relative. (O:=

You're right, I was referring to routers, not your client OS. I'm not aware
of a way to enable a client OS to think intelligently regarding routing
decisions. Also, I do not believe this is the proper way to determine if a
route is available. It is possible you could script it with WMI but now
you're talking about being complicated because you have to allow for
failover and what if you're in the middle of a transmission? Also,
modification at the client does not provide this functionality for the
subnet, as it would if it was handled at the routers.

Good luck.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Online Support for IT Professionals -
http://support.microsoft.com/servicedesks/technet/default.asp?fr=0&sd=tech
How-to: Windows 2000 DNS:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;308201
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top