Community discussions

MikroTik App
 
Beelze
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Tue Mar 04, 2014 12:21 pm

prevent OSPF dynamic routes / interfaces

Tue Jun 10, 2014 12:52 pm

Hello all,

I've been playing with the dynamic routing protocol OSPF on RouterOS for a while and I noticed that my OSPF routes and interfaces are listed as "dynamic".
Also I see that the interface used in these directories is "bridge-local". Why is this and how can I do something about it? See following outputs:

ospf interface:
[admin@MikroTik] /routing ospf interface> print
Flags: X - disabled, I - inactive, D - dynamic, P - passive 
 #    INTERFACE                 COST PRI NETWORK-TYPE   AUT... AUTHENTICATIO...
 0    ether2                      50   1 point-to-point none                   
 1    ether3                     100   1 point-to-point none                   
 2 D  bridge-local                10   1 broadcast      none                   
 3 D  bridge-local                10   1 broadcast      none   
I have created two more entries in the interface directory with interfaces ether2 and ether3 (the interfaces used to form adjacencies).
The settings used there is how it is configured on the adjacency routers (Juniper SRX).

ospf routes:
[admin@MikroTik] /routing ospf route> print
 # DST-ADDRESS        STATE          COST         GATEWAY         INTERFACE    
 0 10.10.10.0/30      intra-area     10           0.0.0.0         bridge-local 
 1 10.10.10.4/30      intra-area     10           0.0.0.0         bridge-local 
How can I prevent routerOS from adding the entries as listed above?
 
User avatar
tomaskir
Trainer
Trainer
Posts: 1162
Joined: Sat Sep 24, 2011 2:32 pm
Location: Slovakia

Re: prevent OSPF dynamic routes / interfaces

Tue Jun 10, 2014 1:26 pm

Interfaces are selected into the OSPF process based on network definitions in /routing ospf network.

So you define IP ranges that should run the OSPF process, and the router then dynamically runs OSPF on the interface which terminates an IP address inside that subnet.

So in your case, please post:
/routing ospf network print
/routing ospf interface print
/ip address print
 
Beelze
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Tue Mar 04, 2014 12:21 pm

Re: prevent OSPF dynamic routes / interfaces

Tue Jun 10, 2014 1:51 pm

[admin@MikroTik] /routing ospf network> print
Flags: X - disabled, I - invalid 
 #   NETWORK            AREA                                                   
 0   10.10.10.0/30      backbone                                               
 1   10.10.10.4/30      backbone                                               
 2   127.0.0.30/32      backbone       
[admin@MikroTik] /routing ospf interface> print
Flags: X - disabled, I - inactive, D - dynamic, P - passive 
 #    INTERFACE                 COST PRI NETWORK-TYPE   AUT... AUTHENTICATIO...
 0    ether2                      50   1 point-to-point none                   
 1    ether3                     100   1 point-to-point none                   
 2 DP loopback                    10   1 broadcast      none 
[admin@MikroTik] /ip address> print
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                              
 0   10.10.10.1/30      10.10.10.0      ether2                                 
 1   10.10.10.5/30      10.10.10.4      ether3                                 
 2   127.0.0.30/32      127.0.0.30      loopback                               
 3   192.168.10.1/24    192.168.10.0    ether4   
Btw, removing the entries in /interface bridge port - removed the Dynamic entries in /routing ospf interface as well. Before ether2 and ether3 were listed as slaves, but not anymore.

I adjusted several properties on the other sides of these interfaces, like cost/metric and hello/dead intervals. So the OSPF interface cannot be dynamic.
 
Beelze
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Tue Mar 04, 2014 12:21 pm

Re: prevent OSPF dynamic routes / interfaces

Tue Jun 10, 2014 2:14 pm

Oh and the routes show the correct interfaces and cost now:
[admin@MikroTik] /routing ospf route> print
 # DST-ADDRESS        STATE          COST         GATEWAY         INTERFACE    
 0 10.10.10.0/30      intra-area     50           0.0.0.0         ether2       
 1 10.10.10.4/30      intra-area     100          0.0.0.0         ether3       
 2 127.0.0.30/32      intra-area     10           0.0.0.0         loopback 
/routing ospf neighbour shows nothing yet.

You can't say that it only works when i add ether2 and ether3 to a bridge in /interface bridge port?
 
lambert
Long time Member
Long time Member
Posts: 548
Joined: Fri Jul 23, 2010 1:09 am

Re: prevent OSPF dynamic routes / interfaces

Thu Jun 12, 2014 12:49 am

You say you adjusted several properties, sigh.

We are going to need to see /routing ospf export.

What are the devices to which your MikroTik is supposed to speak OSPF? What OSPF configuration are they running?

Who is online

Users browsing this forum: No registered users and 18 guests