Mail from ILUG-BOM list (Non-Digest Mode)
_______________________________________________
trevor warren wrote:
>
> Mail from ILUG-BOM list (Non-Digest Mode)
> _______________________________________________
>
> > >
> > > How do I setup multiple gateways on a Suse 6.4
> > system.
> [snip]
>
> U'll need to script for that. Kiran can help ya here.
>
> P.S:- Kiran i guess u hav done this before, or was it
> somethin like this. Nyway, do mail us the script.
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>
Linux will only use ip-address-2 though. The older entry is ignored
until the new one is deleted.
My script was primitive and useless for anything more than a
demonstration of the framework. All you need to do is bring your
preferred gateway to the top of the list. Existing connections won't be
broken as long as the gateway used to make the connection remains in the
routing table.
--
Kiran Jonnalagadda
http://lunateks.com
baby.sh: while true; do echo "^G^G^G^G^G"; sed -e 's/food/poop/';
sync; sync; sleep 15; done
_______________________________________________
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