From: Philip S Tellis <philip.tellis(a)iname.com>
On Thu, 13 Sep 2001, noel seq wrote:
Is it possible to use two gateways, one from a
fixed ip provider
on my eth1 and the other from dial-up (vsnl) on
my ppp0 (modem)
Use special domain routing.
For your mail server, add vsnl as a gateway, for everything else, set
hathway as a gateway.
route add -host ip_of_your_mail_server gw vsnl_gateway dev ppp0
Put this in your dial-up scrips to replace the global routing command in
Thanx, works beautifully. I could not locate the routing instructions made
by ppp when the modem got connected. So i thought of writing one myself. How
do i get the gateway from my ppp0. Ifconfig gives the entire details. There
was a thread sometime back to mail the ip address received from the modem,
but i could not locate it from the archives. If someone is using it please
post it on the list. Philip had written a script to this effect.
By the way, when is the next meet.
Gnu/Linux registered user #226476
Get your FREE download of MSN Explorer at