1827448 Members
4558 Online
109965 Solutions
New Discussion

routing and pppd

 
SOLVED
Go to solution
Tim Rotunda
Frequent Advisor

routing and pppd

This is for all the networking/pppd folks out there.

I would like to add a route to my /etc/rc.config.d/netconf file for a network with a gateway on the other side of a dialup ppp link, only this box isn?t the one dialing so I am fearful that the route won?t get added when the system is restarted as the dialup link won?t be there.

Here is a little background. I have a Remote Access Server and I am setting up framed routes so that I can establish an on-demand connection to some 50 remote HP-UX 11.0 boxes scattered around the country that have a pppd waiting for a connection. The route back to the dialing network has to be there already as I don?t know of a way to establish a route while the link is being made. It would be nice if pppd had the ability to add a route, besides itself, when the link comes up.

Any idea?

Thank you for any ideas.

Tim Rotunda
2 REPLIES 2
Paula J Frazer-Campbell
Honored Contributor

Re: routing and pppd

Hi Tim

Try adding the route to only the RAS server at each site.

Paula
If you can spell SysAdmin then you is one - anon
Juan González
Trusted Contributor
Solution

Re: routing and pppd

Hi Tim,
to add a route when a ppp link comes up and delete it when it come down you can use the exec option of pppd:

From pppd(1)
exec exec-cmd
Run `exec-cmd up addr args' when the link comes up, and `exec-cmd down addr args' when it goes down. Addr is the IP address of the peer, and args is the list of arguments given to pppd.

You could do a simple script to add a route when it comes up and to delete the route when it comes down.

Best regards
Juan Gonzalez