Community discussions

MikroTik App
 
yogid
newbie
Topic Author
Posts: 27
Joined: Mon Dec 05, 2005 8:14 pm
Contact:

OSPF/routing problem

Tue Jan 31, 2006 1:30 pm

We have some problem with OSPF and/or routing mark.
The mine router look like:
/ip routing
DST-ADDRESS PREFSRC   G GATEWAY  DISTANCE INTERFACE ROUTING MARK
A S 0.0.0.0/0                          r 192.168.0.1             wan
A S 0.0.0.0/0                          r 192.168.0.2             wan     serv1
A S 0.0.0.0/0                          r 192.168.0.3             wan     serv2
/ip firewal mangle
chain=prerouting src-address=10.2.1.0/24 
action=mark-routing new-routing-mark=serv1 passthrough=yes 

chain=prerouting src-address=10.2.2.0/24
action=mark-routing new-routing-mark=serv2 passthrough=yes
[...]
Graph:
x--------x----------x
|                   |
|                   |
x-------main-------x
          |
        net
main - main router which have connection to internet (default gatheways)
x - other MT routers

All works fine to time when one of ours serwer is down (serv1 or serv2). Then we the others routers on MT (x on graph) lost the default route. This situations is wery often but not always. After restart main router all routing works fine (serv1 or serv2 still down or will up) other MT (x) get the default routes from OSPF all will refresh.
We can't find what is wrong, pleas help.