Link to home
Start Free TrialLog in
Avatar of akit
akit

asked on

Lost route entry when ppp0 re-connect

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?

Thanks.
Avatar of jlevie
jlevie

I believe you can arrainge for the route to be created in the  /etc/ppp/ip-up script on the dial-in server. It's been entirely too long since I needed to do this and I don't remember the exact details.
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial