J
J
JoveLebedev2016-04-11 15:13:35
linux
JoveLebedev, 2016-04-11 15:13:35

How to configure PPoE reconnect with route rewriting?

Connected to vpn via pppd.
There is a bash script that, when launched, starts a connection and prescribes a route through the nth connection to a specific IP address.
Problem in what... Connection always falls. But even if you manually raise the connection again, the route does not work. Tell me, please, where and what to register

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Karabanov, 2016-04-11
@karabanov

Add to pppd config: persist #reconnect
on break
maxfail 100 #number of attempts to reconnect
holdoff 15 #interval between connections

D
DartAlex, 2016-04-11
@DartAlex

When pppd drops a route with an ip address pppd disappears from the routing table. But you can add a route add command to /etc/ppp/ip-up. Then, upon receiving the ip address, pppd will run the script and re-register the route.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question