Community discussions

MikroTik App
 
jonescz
just joined
Topic Author
Posts: 16
Joined: Mon Nov 28, 2005 2:21 pm

two gateways

Fri Dec 12, 2008 12:05 am

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

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
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: two gateways

Fri Dec 12, 2008 1:04 am

what ROS version do you use?
 
princenux
just joined
Posts: 5
Joined: Thu Dec 11, 2008 8:37 am

Re: two gateways

Fri Dec 12, 2008 10:19 am

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...
 
jonescz
just joined
Topic Author
Posts: 16
Joined: Mon Nov 28, 2005 2:21 pm

Re: two gateways

Fri Dec 12, 2008 11:49 am

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

Thanks for help

what ROS version do you use?

Who is online

Users browsing this forum: yhfung and 17 guests