two gateways

Hi, because my last post was without answer will try ask a bit simple :slight_smile:

I Have “router2” with two gateways

  1. dynamic from OSPF from “router 1”
  2. static on eth1 on “router 2”

when everything works dynamic gateway is used

DST-ADDRESS GATEWAY-STATE GATEWAY DISTANCE PACKETMARK

0 S 0.0.0.0/0 reachable 212.71.166.1 200
1 A S 0.0.0.0/0 reachable 212.71.166.1 150 BACKUP
2 ADo 0.0.0.0/0 reachable 192.168.30.1 110


when "router 1 " is down static gateway is correctly used (0 S 0.0.0.0/0) as default gateway in network , but when “router1” is up again, default route (2 ADo 0.0.0.0/0 )from it is not on “router 2” I must disable static routes on “router2” and then dynamic (2 ADo 0.0.0.0/0 ) is shown. then i can enable static default routes again .


Please is there anybody who knows how to make it work without enabling/disabling interface ?


Thanks a lot


Jonescz

what ROS version do you use?

hi.. i just try to help
maybe you can use metric …

metric 1 for the default route 1
and metric 2 for the default route 2…

basically its a priority routing..
lower metric is better…

Hi, 3.17. On 2.9.x it was ok :slight_smile:

Thanks for help