I have multiple pppoe-clients running on my device, one of them is set as default and would provide internet connection to devices connected to LAN, the other clients have `add-default-route=no` and i have prerouting rules to mark the traffic from a specifc LAN segment to the corresponding pppoe-client but the problem is if the corresponding pppoe-client is disconnected the router is automatically routing the traffic through the default route which i don't want
the pppoe clients
Code: Select all
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether5 name=home-pppoe user=user123
add disabled=no interface=eth3 max-mtu=1460 name=pppoe1 user=user1234
add disabled=no interface=eth3 name=pppoe1 user=user12345
Code: Select all
/routing table
add fib name=pppoe1
add fib name=pppoe2
Code: Select all
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=pppoe1 passthrough=yes src-address=192.168.10.0/24
add action=mark-routing chain=prerouting new-routing-mark=pppoe2 passthrough=yes src-address=192.168.20.0/2
Code: Select all
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe1 pref-src="" routing-table=pppoe1 scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe2 pref-src="" routing-table=pppoe2 scope=30 suppress-hw-offload=no target-scope=10
note that all the pppoe clients use the same gateway (10.10.10.1) which might be of importance in this problem
Regards