Solved

Lost route entry when ppp0 re-connect

Posted on 2002-04-01
3
213 Views
Last Modified: 2013-12-15
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.
0
Comment
Question by:akit
3 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 6912760
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.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 6914301
/etc/ppp/ip-up or /etc/ppp/ip-up.local is the place to do this
0
 

Expert Comment

by:lespaul007
ID: 6935585
Hope this link helps you:

http://www.linuxdoc.com/howto/ppp
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now