Lost route entry when ppp0 re-connect
Posted on 2002-04-01
I have a linux dial-in server (mgetty & pppd) at head office which allow a linux box (mgetty & pppd) of remote site to dial-in via PSTN. The remote site is a network 172.22.13.0/24 and the linux box is act as a gateway (172.22.13.5) to head office.
When the connection is established, the head office server automatically has the route entry for 172.22.13.5, but require manually to add a route entry for 172.22.13.0/24.
The manually added route entry will be lost when the phone line is disconnected.
How to make the 172.22.13.0/24 route entry will not be lost or tell linux box to add it automatically when connected?