Subject: Re: Routing and PPP...
To: None <firstname.lastname@example.org>
From: Matthias Scheler <email@example.com>
Date: 10/03/1998 11:44:32
In article <199809291803.NAA03645@guild.plethora.net>,
> Because I can leave the netmask in a config file and forget about it,
As Perry said netmask are not relevenat for point to point interfaces.
> but the route has to get tweaked whenever the line comes up or down.
Yes, of course.
> I suppose I can just add a "route add foo" somewhere, ...
That's exactly what "ip-up" was invented for. On my remote router it
looks like this:
# called with
#ifname tty speed local remote
export ifname tty speed local remote
grep -v "^#" /etc/ppp/parameters |
(while read theip theroute themask
if [ $remote = $theip ]
if [ X$theroute != X ]
route add -net $theroute -netmask $themask $remote
And here is an example for "/etc/ppp/parameters":
# IP nettoroute netmask
22.214.171.124 126.96.36.199 255.255.255.248
Matthias Scheler http://home.owl.de/~tron/