> hello All,
>
> We have 2 routers on the newtork going to two different networks.  Is
> there a way to set the priority of one default route over the other?  The
> inside ips of the routers are on the came network 192.168.0.1 & .2 and it
> really does not matter where they go.  One of them is more reliable and I
> would like to set it as a higher preference.  Any input on this would be
> nice!
>
>
> Thanks
> David

If both routers on in the same Linux box you can use the "metric" flag in
the Linux route table.  The lower the flag IIRC the higher the prefence.
Something like this on the linux box (sytnax is probably wrong, doing this
from memory)

route add default gw route1 0
route add default gw route2 1

If the routers are on to seprate machines, you will probably have to
configure it on the client side, in linux it would be pretty much the same

route add default gw route1 0
route add default gw route2 1

On a Windows (95/98 not sure about NT) it would
Settings->Control Panel->Network
TCP/IP Proptries -> Gateway

then add the more reliable gateway first, then add the second route after
it.

If you do this, I think it will ONLY try routing out the second path if the
first path is down.  So most of the time IIRC the second route won't get
used much if any unless your first one is dead.

This won't "load balnce" the connections.  One cheap trick you could do is
set the default route for "low priority" clients to the second route so they
don't hog up the main bandwidth.  And set the "high priority"
clients/servers on the more reliable route.

Hope this helps,
Jack




-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to