>
> > I know that I can write a batch script to check every 30 or so second to
> > see if the a ppp0 connection is made, and if so, then if there is a
> > gateway to the connection, and if not, reestablish it. I would rather
> > have this done by pppd.
>
> See /etc/ppp/ip-up. It is called by pppd when the connection
> comes up with the arguments:
> ifname=$1 # interface name (e.g. ppp0)
> ttydevice=$2 # device name (e.g. (/dev/ttyS0)
> speed=$3 # speed (as reported by stty
> localip=$4 # local (your) ip
> remoteip=$5 # remote ip
>
> If you have multiple PPPs, it gets more complex, but in your
> case, I'd just have the "route add [mumble]" in this file, and not even
> check the args (you probably don't care).
Thank you all for for answering. Your info on using ip-up is useful, but it does
not address the problem.
Perhaps I am not wording this properly. I have absolutely no problem making a
connection with the server using pppd, and absolutely no problem with including
the route command in the bash script I use to connect to the server to initially
set the routing. The problem occurs if the connection is lost and pppd redials
automatically.
When dialing the server, one of my ppp options is "persist". This will force the
system to redial if the connection is lost. Note - pppd never exits - it just
redials. Unfortunately, the routing information IS lost, and I have to manualy
reenter after the system has redialed on its own.
My question is if there is a pppd option that will allow you to put the specific
routing information in either the options file or as one of the command line
entries that will be "remembered" so that if pppd automatically redials the
system, the routing information in the system routing table is updated so that
all packets going to the class C network go out through device ppp0.
Bob
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.