Mail from ILUG-BOM list (Non-Digest Mode)
_______________________________________________
> trevor warren wrote:
> > Multiple default gateways is easy. Just add them
> > all:
> >
> > /sbin/route add default gw <ip-address-1>
> > /sbin/route add default gw <ip-address-2>
> [snip]
>
> The issue i was talkin abt is totally different,
> what abt a situation wherein there xists 2 different
> interfaces PPP0 & PPP1, then how does 1 change
> dynamically between these 2 interfaces.
I'm not a good programmer so i can't give the script but say this can b done
in following way :
Assuming dynamically means depending upong the connection speed :
You can write a shelll script which can determine which interface is giving
faster response.
if PPP0 is faster then
/sbin/route add default gw <ip-address> dev PPP0
else
/sbin/route add default gw <ip-address> dev PPP1
now coming back to ur question of determining which interface is faster
...:-)
i think kiran once given a shell script (was that regarding this)..
or philip may b able to provide that shell script which can determine the
connection speed between PPP0 and PPP1 from ping responces takin into the
consideration of no of packets loss and also avg time required to get the
packet back
hey don't know whether this is possible ........but this is my idea ...
can we do this??
ranjeet
_______________________________________________
Website: http://www.ilug-bom.org.in/
Linuxers mailing list
[EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers
CHAT: irc.ilug-bom.org.in