In our case we have two separate internet supplier, if one fails the other will run as backup.
Our customers have ppp connection to us, one on each internet access. So that they can reach us if one of the internet connections fails.
Under ppp/secrets we add the login data and the route to the customor. We would love that we also could edit the distance.
Because the two ppp connections to our customer have the same distance 1. And the traffic is then hard to handle if it should run only on one ppp and the other if the first fails.
Often the traffic sends on one link and receive on the other one.
Hi and thanks for the replay, but I’m afraid that you are wrong.
The Default Route has never been enabled. AND it is very important that the client runs internet traffic locally, not true the ppp connection and uses the internet at us.
On the client side I have two ppp connections.
In the route list i add for example:
172.29.80.0/24 via 10.10.1.1 ppp-connection-1 distance 10
172.29.80.0/24 via 10.10.2.1 ppp-connection-2 distance 11
The traffic on the client site will run via ppp-connection-1
BUT, in our end. When I set up the secret I also edit the route. So that the connections automatically adds the route to the client when connected.
It will shows like this.
172.30.1.0/24 via 10.10.1.254 ppp-connection-1 distance 1
172.30.1.0/24 via 10.10.2.254 ppp-connection-2 distance 1
The traffic will receive on ppp-connection1 but will sometimes send on the ppp-connection2.
To some it up, I would love to that mikrotik would add distance under Routes in Secrets. Otherwise I have to ad the route manually in our site as well.
May by someone at mikrotik could comment this, Normis?
From the manual:
“Routes that appear on the server when the client is connected. The route format is: dst-address gateway metric (for example, 10.1.0.0/ 24 10.0.0.1 1). Several routes may be specified separated with commas. This parameter will be ignored for OpenVPN.”
Dont really understand this.
How do i know the gateway adress? that one is dynamic if I don’t manually put it in there, under Remote Address. Otherwise it will take on of the pool.
Cant i Just write: 10.1.0.0/24 10
Where 10 is the distance?