I have a tricky pppd situation that I need a little help with.
I have a Linux server that has two ethernet cards. One of them is
configured for a small local network. The second is connected to the
WAN and is the default route for the vast majority of my internet
traffic. I also have the need to communicate via modem using a ppp
connection to a server that is completely isolated from the internet and
will continue to remain so (please - don't ask why). The ppp connection
connects me with a small class C network that I ftp to and from files.
I also have pppd configured to redial if the connection is lost.
As it stands right now, when I make a ppp connection with the server, I
run the "route" command to route all packets for that class C network.
Example:
ppp server is 192.168.1.190. The IP assigned to my Linux machine is
assigned by the server. Route command is:
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.190 dev
ppp0
This properly routes all packets for the small class C subnet to the
server. However, if I lose the connection, pppd reestablishes the
connection, but the route information is lost and I have to manualy
reinsert. I can't use defaultroute as one of the pppd options, as the
majority of traffic going through the Linux server routes through the
NIC connected to the WAN.
Question - is there a way in the pppd options file to set the route for
just a subnet that will be kept if the connection is lost and then
reestablished?
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.
Thanks in advance for any assistance.
Regards - Bob Kruger
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.