Community discussions

MikroTik App
 
Wehmer
just joined
Topic Author
Posts: 7
Joined: Sun Oct 01, 2023 11:33 am

OSPF -> Static route not working

Sun Oct 01, 2023 9:16 pm

Hi

I have suddenly started to experience some issues with mye litt OSPF lab and default route/gateway

I have a OSPF ring based upon 4 CCR2004. And it works as it should. Routes perfectly inbetween each other etc etc
My default route is redistributed out of Unit4. And all of the other nodes see it and routes towards it.
But when it comes to Unit 4 it does not got anywhere and everything dies.

But if I got the other way around. From "internet" to one of the nodes. Routing works perfect.

Here is the config of unit4
[admin@Area0Unit4] > /export hide-sensitive
# oct/01/2023 10:42:40 by RouterOS 7.8
# software id = JBWK-JPLI
#
# model = CCR2004-16G-2S+
# serial number = HD5083A5RPK
/interface bridge
add name=loopback0
/interface ethernet
set [ find default-name=ether10 ] comment=L8-110
/interface list
add name=Route-Int
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/port
set 0 name=serial0
set 1 name=serial1
/routing ospf instance
add disabled=no name=backbone originate-default=if-installed redistribute=static router-id=10.10.240.4
/routing ospf area
add disabled=no instance=backbone name=default
add area-id=0.0.83.79 default-cost=1 disabled=no instance=backbone name=otherarea type=stub
/routing table
add name=route-table
/ip neighbor discovery-settings
set discover-interface-list=all
/ip settings
set send-redirects=no
/interface detect-internet
set detect-interface-list=all internet-interface-list=all lan-interface-list=all wan-interface-list=all
/interface list member
add interface=ether1 list=Route-Int
add interface=ether2 list=Route-Int
add interface=ether15 list=Route-Int
/ip address
add address=10.10.90.254/24 comment=defconf interface=ether15 network=10.10.90.0
add address=10.10.240.4 interface=loopback0 network=10.10.240.4
add address=10.88.85.2/30 interface=ether2 network=10.88.85.0
add address=10.88.88.2/30 interface=ether1 network=10.88.88.0
add address=10.111.111.2/30 interface=ether10 network=10.111.111.0
/ip dns
set servers=8.8.8.8
/ip route
add check-gateway=ping distance=1 dst-address=0.0.0.0/0 gateway=10.10.90.1 pref-src="" scope=30 suppress-hw-offload=no target-scope=10
/routing filter rule
add chain=ospf_out rule="if (dst in 0.0.0.0/0) {accept}"
/routing ospf interface-template
add area=default disabled=no interfaces=loopback0
add area=default disabled=no interfaces=ether1 type=ptp
add area=default auth-id=0 disabled=no interfaces=ether2 type=ptp
add area=otherarea disabled=no interfaces=ether10 type=ptp
/snmp
set enabled=yes
/system clock
set time-zone-name=Europe/Stockholm
/system identity
set name=Area0Unit4
/system logging
add topics=script
/system package update
set channel=testing
/tool romon
set enabled=yes
/tool traffic-monitor
add disabled=yes interface=ether15 name=tmon1 on-event="Log info \"Transmitted\"" threshold=0 trigger=always
add disabled=yes interface=ether15 name=tmon2 on-event="Log info \"Recieved\"" threshold=0 traffic=received trigger=always
[admin@Area0Unit4] >

I have tried filtering. but something is off. It has worked properly for a long time. but suddenly it stops working after updating to 7.11.2
Any idea? (btw. I downgraded to 7.8 to see if it started to work again. but no)
 
Wehmer
just joined
Topic Author
Posts: 7
Joined: Sun Oct 01, 2023 11:33 am

Re: OSPF -> Static route not working

Mon Oct 02, 2023 2:05 pm

Added picture for reference.
Traffic originating from "internet" (IP1) works and i can ping the mikrotik (IP2).
Traffic originating from Mikrotik (IP2) does not work and i can not ping the "internet" (IP1)
(ping says timeout )
image_2023-10-02_130302022.png
You do not have the required permissions to view the files attached to this post.
 
Wehmer
just joined
Topic Author
Posts: 7
Joined: Sun Oct 01, 2023 11:33 am

Re: OSPF -> Static route not working

Mon Oct 02, 2023 6:55 pm

Screenshot 2023-10-02 at 17.55.04.png
You do not have the required permissions to view the files attached to this post.
 
Wehmer
just joined
Topic Author
Posts: 7
Joined: Sun Oct 01, 2023 11:33 am

Re: OSPF -> Static route not working

Mon Oct 02, 2023 7:01 pm

From Unit 4
Screenshot 2023-10-02 at 18.00.37.png
From unit 3
Screenshot 2023-10-02 at 18.01.26.png
You do not have the required permissions to view the files attached to this post.
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1739
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: OSPF -> Static route not working

Mon Oct 02, 2023 7:23 pm

The loopback 10.10.240.0/32 is duplicated on R3 and R4. It shows as a connected route on both.
 
Wehmer
just joined
Topic Author
Posts: 7
Joined: Sun Oct 01, 2023 11:33 am

Re: OSPF -> Static route not working

Mon Oct 02, 2023 7:44 pm

Hi. I fixed that issue.
Traffic still arrives at Unit 4. (it now looks like this)
[admin@unit4] /routing/filter/rule> /export 
# 2023-10-02 18:41:30 by RouterOS 7.11.2
# software id = JBWK-JPLI
#
# model = CCR2004-16G-2S+
# serial number = HD5083A5RPK
/interface bridge
add name=loopback0
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/port
set 0 name=serial0
set 1 name=serial1
/routing id
add disabled=no id=10.10.240.4 name=Ospf select-dynamic-id=""
/routing ospf instance
add disabled=no name=backbone originate-default=always router-id=10.10.240.4 routing-table=main
/routing ospf area
add disabled=no instance=backbone name=default
/ip neighbor discovery-settings
set discover-interface-list=none
/ip address
add address=10.10.90.254/24 interface=ether15 network=10.10.90.0
add address=10.88.88.2/30 interface=ether1 network=10.88.88.0
add address=10.88.85.2/30 interface=ether2 network=10.88.85.0
add address=10.10.240.4 interface=loopback0 network=10.10.240.4
/ip dns
set servers=8.8.8.8
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.10.90.1 pref-src="" routing-table=main scope=10 suppress-hw-offload=no target-scope=11
/routing ospf interface-template
add area=default disabled=no interfaces=ether1,ether2 type=ptp
add area=default disabled=no interfaces=loopback0
/system clock
set time-zone-name=Europe/Stockholm
/system identity
set name=unit4
/system note
set show-at-login=no
/tool romon
set enabled=yes
route like this
[admin@unit4] /routing/filter/rule> /routing/route/print
Flags: A - ACTIVE; c - CONNECT, s - STATIC, o - OSPF; H - HW-OFFLOADED
Columns: DST-ADDRESS, GATEWAY, AFI, DISTANCE, SCOPE, TARGET-SCOPE, IMMEDIATE-GW
    DST-ADDRESS          GATEWAY            AFI   DISTANCE  SCOPE  TARGET-SCOPE  IMMEDIATE-GW      
As  0.0.0.0/0            10.10.90.1         ip4          1     10            11  10.10.90.1%ether15
Ao  10.0.6.0/30          10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.0.7.0/30          10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.10.7.0/30         10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ac  10.10.90.0/24        ether15            ip4          0     10                ether15           
Ao  10.10.220.109/32     10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.10.220.110/32     10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.10.221.102/32     10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.221.103/32     10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.221.104/32     10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.221.105/32     10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.221.107/32     10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.240.2/32       10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.240.3/32       10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ac  10.10.240.4/32       loopback0          ip4          0     10                loopback0         
Ao  10.10.240.5/32       10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ac  10.88.85.0/30        ether2             ip4          0     10                ether2            
Ao  10.88.86.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.88.87.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ac  10.88.88.0/30        ether1             ip4          0     10                ether1            
Ao  10.99.12.0/30        10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.102.1.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.103.3.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.104.3.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.105.3.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.105.5.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.106.3.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.107.3.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.111.111.0/30      10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.193.193.0/29      10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.222.222.0/30      10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.223.223.0/30      10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ac  fe80::%ether1/64     ether1             ip6          0     10                ether1            
Ac  fe80::%ether2/64     ether2             ip6          0     10                ether2            
Ac  fe80::%ether10/64    ether10            ip6          0     10                ether10           
Ac  fe80::%ether15/64    ether15            ip6          0     10                ether15           
Ac  fe80::%loopback0/64  loopback0          ip6          0     10                loopback0         
A H ether1                                  link         0                                         
A H ether2                                  link         0                                         
A H ether10                                 link         0                                         
A H ether15                                 link         0                                         
A H loopback0                               link         0     
If I traceroute directly
Columns: ADDRESS, LOSS, SENT, LAST, AVG, BEST, WORST, STD-DEV
#  ADDRESS         LOSS  SENT  LAST   AVG  BEST  WORST  STD-DEV
1  10.10.90.1      0%       8  0.1ms  0.1  0.1   0.1    0      
2  82.183.39.xxx   0%       8  0.6ms  1.7  0.4   10.5   3.3    
3  89.253.100.240  0%       8  0.9ms  0.7  0.5   0.9    0.1    
4  148.122.8.241   0%       8  0.8ms  0.8  0.6   0.9    0.1    
5  148.122.10.194  0%       8  5.5ms  4    1.6   8.5    2.5    
6  1.1.1.1         0%       8  1ms    1.1  1     1.2    0.1    
if I trace route from loopback
[admin@unit4] /routing/filter/rule> /routing/route/print
Flags: A - ACTIVE; c - CONNECT, s - STATIC, o - OSPF; H - HW-OFFLOADED
Columns: DST-ADDRESS, GATEWAY, AFI, DISTANCE, SCOPE, TARGET-SCOPE, IMMEDIATE-GW
    DST-ADDRESS          GATEWAY            AFI   DISTANCE  SCOPE  TARGET-SCOPE  IMMEDIATE-GW      
As  0.0.0.0/0            10.10.90.1         ip4          1     10            11  10.10.90.1%ether15
Ao  10.0.6.0/30          10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.0.7.0/30          10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.10.7.0/30         10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ac  10.10.90.0/24        ether15            ip4          0     10                ether15           
Ao  10.10.220.109/32     10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.10.220.110/32     10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.10.221.102/32     10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.221.103/32     10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.221.104/32     10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.221.105/32     10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.221.107/32     10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.240.2/32       10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.10.240.3/32       10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ac  10.10.240.4/32       loopback0          ip4          0     10                loopback0         
Ao  10.10.240.5/32       10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ac  10.88.85.0/30        ether2             ip4          0     10                ether2            
Ao  10.88.86.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.88.87.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ac  10.88.88.0/30        ether1             ip4          0     10                ether1            
Ao  10.99.12.0/30        10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.102.1.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.103.3.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.104.3.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.105.3.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.105.5.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.106.3.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.107.3.0/30        10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.111.111.0/30      10.88.88.1%ether1  ip4        110     20            10  10.88.88.1%ether1 
Ao  10.193.193.0/29      10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.222.222.0/30      10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ao  10.223.223.0/30      10.88.85.1%ether2  ip4        110     20            10  10.88.85.1%ether2 
Ac  fe80::%ether1/64     ether1             ip6          0     10                ether1            
Ac  fe80::%ether2/64     ether2             ip6          0     10                ether2            
Ac  fe80::%ether10/64    ether10            ip6          0     10                ether10           
Ac  fe80::%ether15/64    ether15            ip6          0     10                ether15           
Ac  fe80::%loopback0/64  loopback0          ip6          0     10                loopback0         
A H ether1                                  link         0                                         
A H ether2                                  link         0                                         
A H ether10                                 link         0                                         
A H ether15                                 link         0                                         
A H loopback0                               link         0     
 
Wehmer
just joined
Topic Author
Posts: 7
Joined: Sun Oct 01, 2023 11:33 am

Re: OSPF -> Static route not working

Mon Oct 02, 2023 8:42 pm

Seems like traffic is not sent from loopback0 / Router-ID IP but from the ether1 and ether2 adresses
image_2023-10-02_194154447.png
Any idea??
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 9 guests