Community discussions

MikroTik App
 
Aerowinder
newbie
Topic Author
Posts: 27
Joined: Fri Jan 31, 2020 4:09 pm

3 routers, OSPF not working on 1 of them

Wed Apr 29, 2020 3:27 pm

Greetings,

I have (3) CCR1036-8G-2S+ for testing. I'd like to replace my present network gear (L2) with these CCR units, and utilize OSPF for a cleaner L3 setup. All 3 routers were started from a clean slate. Presently using ROS 6.46.6 and firmware 6.46.6 firmware on all 3 routers.

Their configuration is the following:

:::::R1-160:::::
/interface bridge
add name=loopback

/ip address
add address=10.39.255.1/30 interface=sfp-sfpplus1
add address=10.39.255.9/30 interface=sfp-sfpplus2
add address=10.255.255.160/32 interface=loopback

/routing ospf network
add network=10.39.255.0/24 area=backbone

/routing ospf instance
set 0 router-id=10.255.255.160

:::::R2-161:::::
/interface bridge
add name=loopback

/ip address
add address=10.39.255.4/30 interface=sfp-sfpplus1
add address=10.39.255.2/30 interface=sfp-sfpplus2
add address=10.255.255.161/32 interface=loopback

/routing ospf network
add network=10.39.255.0/24 area=backbone

/routing ospf instance
set 0 router-id=10.255.255.161

:::::R3-157:::::
/interface bridge
add name=loopback

/ip address
add address=10.39.255.8/30 interface=sfp-sfpplus1
add address=10.39.255.5/30 interface=sfp-sfpplus2
add address=10.255.255.157/32 interface=loopback

/routing ospf network
add network=10.39.255.0/24 area=backbone

/routing ospf instance
set 0 router-id=10.255.255.157
The only other modification I've made to the configs, is that I put a DHCP client on Eth1, so that I may access these devices from my live network using WinBox.


The 3 routers are connected to each other via the SFP+ ports using 10G 1310nm 10km SM transceivers, and 0.5M SM patch cables. All link lights are solid green, and all activity lights are solid green. Below is how the routers are connected to each other.
R1-160 SFP1 > R2-161 SFP2
R1-160 SFP2 > R3-157 SFP1

R2-161 SFP1 > R3-157 SFP2
R2-161 SFP2 > R1-160 SFP1

R3-157 SFP1 > R1-160 SFP2
R3-157 SFP2 > R2-161 SFP1

The problem:
Using the WinBox ping tool, I am unable to ping R3-157 from R1-160 or R2-161. I am also unable to ping either router from R3-157. I am, however, able to ping R2-161 from R1-160, as well as R1-160 from R2-161. R1-160, and R2-161 seem to work, but R3-157 is not. R3-157 shows one OSPF neighbor, R1-160 (yet, I am unable to ping said neighbor). I posted the configs above, and there are no firewall rules to stop the traffic.

R1-160 route print
[admin@MikroTik] > /ip route print
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADS  0.0.0.0/0                          172.26.1.1                1
 1  Do  0.0.0.0/0                          10.39.255.2             110
 2 ADC  10.39.255.0/30     10.39.255.1     sfp-sfpplus1              0
 3 ADo  10.39.255.4/30                     10.39.255.2             110
 4 ADC  10.39.255.8/30     10.39.255.9     sfp-sfpplus2              0
 5 ADC  10.255.255.160/32  10.255.255.160  loopback                  0
 6 ADo  10.255.255.161/32                  10.39.255.2             110
 7 ADC  172.26.0.0/20      172.26.1.160    ether1                    0
 8  Do  172.26.0.0/20                      10.39.255.2             110
 9 ADC  192.168.88.0/24    192.168.88.1    ether1                    0
10  Do  192.168.88.0/24                    10.39.255.2             110

R2-161 route print
[admin@MikroTik] > /ip route print
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADS  0.0.0.0/0                          172.26.1.1                1
 1 ADC  10.39.255.0/30     10.39.255.2     sfp-sfpplus2              0
 2 ADC  10.39.255.4/30     10.39.255.4     sfp-sfpplus1              0
 3 ADo  10.39.255.8/30                     10.39.255.1             110
 4 ADo  10.255.255.160/32                  10.39.255.1             110
 5 ADC  10.255.255.161/32  10.255.255.161  loopback                  0
 6 ADC  172.26.0.0/20      172.26.1.161    ether1                    0
 7 ADC  192.168.88.0/24    192.168.88.1    ether1                    0


R3-157 route print
[admin@MikroTik] > /ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADS  0.0.0.0/0                          172.26.1.1                1
 1 ADC  10.39.255.4/30     10.39.255.5     sfp-sfpplus2              0
 2 ADC  10.39.255.8/30     10.39.255.8     sfp-sfpplus1              0
 3 ADC  10.255.255.157/32  10.255.255.157  loopback                  0
 4 ADC  172.26.0.0/20      172.26.1.157    ether1                    0

No OSFP routes on R3-157, when there should be. Why? What am I missing? I also did a netinstall on R3-157, but it didn't change anything. I've also tried swapping transceivers and cables.
 
elbob2002
Member Candidate
Member Candidate
Posts: 252
Joined: Tue May 15, 2018 8:15 pm
Location: Ireland

Re: 3 routers, OSPF not working on 1 of them  [SOLVED]

Wed Apr 29, 2020 5:45 pm

Isn't there an incorrect IP address?

If you're using /30 that gives you a maximum of 2 hosts.

On R2-161 you have 10.39.255.4/30 and 10.39.255.2/30

10.39.255.2/30 is fine because your network is 10.39.255.0 and broadcast is 10.39.255.3
10.39.255.4/30 is wrong because your network should be 10.39.255.4, first host 10.39.255.5 and broadcast 10.39.255.7

So you have a clash on R2-161 The IP address 10.39.255.2/30 and 10.39.255.4/30 are the same network but on two interfaces.
 
Aerowinder
newbie
Topic Author
Posts: 27
Joined: Fri Jan 31, 2020 4:09 pm

Re: 3 routers, OSPF not working on 1 of them

Wed Apr 29, 2020 7:19 pm

Isn't there an incorrect IP address?

If you're using /30 that gives you a maximum of 2 hosts.

On R2-161 you have 10.39.255.4/30 and 10.39.255.2/30

10.39.255.2/30 is fine because your network is 10.39.255.0 and broadcast is 10.39.255.3
10.39.255.4/30 is wrong because your network should be 10.39.255.4, first host 10.39.255.5 and broadcast 10.39.255.7

So you have a clash on R2-161 The IP address 10.39.255.2/30 and 10.39.255.4/30 are the same network but on two interfaces.
I'm not sure how I missed that for 3 days. Wow. Really appreciate the assist!
 
elbob2002
Member Candidate
Member Candidate
Posts: 252
Joined: Tue May 15, 2018 8:15 pm
Location: Ireland

Re: 3 routers, OSPF not working on 1 of them

Thu Apr 30, 2020 4:40 pm

We've all been there. Sometimes it's easy to go blind and oversee the obvious.

Who is online

Users browsing this forum: No registered users and 12 guests