Solved

Lost route entry when ppp0 re-connect

Posted on 2002-04-01
3
212 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

708 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

13 Experts available now in Live!

Get 1:1 Help Now