Ok so, i have 3 pppoe connections, 1 with a dynamic ip and 2 with a static one. My setup is something like this
mark routing 192.168.80.0/24 for 1 pppoe static ip, 192.168.90.0/24 for the second one with another static ip and all others subnets for the dynamic ip without any mark routing since this i want to be my main internet connection, all my router trafic and all others subnets trafic must go through it. Now for this i have a default route from my dynamic pppoe connection - add default route is checked, i have also made a static one for this since this dynamic pppoe connection i want to be as a main connection. All others pppoe connections with the static ip does not have the option ‘add default route’ checked since has some marked routes entered manually. Ok so far so good, BUT if a pppoe connection with a static ip is reset then the default route is i don’t know how automatically modified with the one from the reset connection and all trafic goes through it.. why is this?
Here is my routes setup, rds_acc50_228 and rds_acc50_229 are the pppoe connections with the static ip
[admin@MikroTik_Node1] > /ip route print detail
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
0 A S dst-address=0.0.0.0/0 gateway=rds_acc50_228
gateway-status=rds_acc50_228 reachable distance=2 scope=30
target-scope=10 routing-mark=routing_mark_acc50_228
1 A S dst-address=0.0.0.0/0 gateway=rds_acc50_229
gateway-status=rds_acc50_229 reachable distance=3 scope=30
target-scope=10 routing-mark=routing_mark_acc50_229
2 A S ;;; Default route RDS (main route)
dst-address=0.0.0.0/0 gateway=10.0.0.1
gateway-status=10.0.0.1 reachable via rds_fb100 distance=1 scope=30
target-scope=10
3 DS dst-address=0.0.0.0/0 gateway=10.0.0.1
gateway-status=10.0.0.1 reachable via rds_fb100 distance=1 scope=30
target-scope=10
4 ADC dst-address=10.0.0.1/32 pref-src=86.122.51.229
gateway=rds_acc50_229,rds_acc50_228,rds_fb100
gateway-status=rds_acc50_229 reachable,rds_acc50_228 reachable,
rds_fb100 reachable
distance=0 scope=10
and pppoe connections
/interface pppoe-client
add comment="Pppoe static IP - x.228" disabled=no interface=\
ether2_WAN_rds_acc50 mrru=1600 name=rds_acc50_228 password=xxx \
user=xxx
add comment="Pppoe static IP - y.229" disabled=no interface=\
ether2_WAN_rds_acc50 mrru=1600 name=rds_acc50_229 password=yyy \
user=yyy
add add-default-route=yes comment="Pppoe dynamic IP" disabled=no interface=\
ether1_WAN_rds_fb100 name=rds_fb100 password=zzz use-peer-dns=yes \
user=zzz
Now if one connection from those .228 or .229 is reset then this
2 A S ;;; Default route RDS (main route)
dst-address=0.0.0.0/0 gateway=10.0.0.1
gateway-status=10.0.0.1 reachable via rds_fb100 distance=1 scope=30
target-scope=10
3 DS dst-address=0.0.0.0/0 gateway=10.0.0.1
gateway-status=10.0.0.1 reachable via rds_fb100 distance=1 scope=30
target-scope=10
will automatically become this
2 A S ;;; Default route RDS (main route)
dst-address=0.0.0.0/0 gateway=10.0.0.1
gateway-status=10.0.0.1 reachable via rds_acc228 or rds_acc229 depending on which one was reset distance=1 scope=30
target-scope=10
3 DS dst-address=0.0.0.0/0 gateway=10.0.0.1
gateway-status=10.0.0.1 reachable via rds_acc228 or rds_acc229 depending on which one was reset distance=1 scope=30
target-scope=10