Community discussions

MikroTik App
 
dg3feh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Mon Jan 30, 2017 10:52 am

Two PPPoE WAN Interfaces and static routes

Sun Feb 13, 2022 8:59 am

Hello!
I have two PPPoE WAN Interfaces running. In general all clients have to use PPPoE_1 and if it is down PPPoE_2. That works fine with distances 5 and 10. So far so good. I have one IP (or Interface on MT side), that have to use PPPeE_2 in anycase. How can i setup a static route for that? All clients are on the same network 192.168.10.0/24.

Thx for ur help!


Holger
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: Two PPPoE WAN Interfaces and static routes

Sun Feb 13, 2022 10:18 pm

Create a default route for the WAN you want to route that host from and Assign a Routing Mark e.g.:
ip route add gateway=x.y.z.w routing-mark=Test
Then Using policy Routing Rules, define the host's source address e.g.:
 ip route rule add src-address=src-address action=lookup-only-in-table table=Test
If Table Test is unreachable, that host will not be routed to the Internet..

Ofcorse the same can be done using the Mangles Facility...