Subject: Re: Routing and PPP...
To: None <email@example.com>
From: Matthias Scheler <firstname.lastname@example.org>
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
220.127.116.11 18.104.22.168 255.255.255.248
Matthias Scheler http://home.owl.de/~tron/