OSPF doesn't work!

Hi guys, i am newbie and i’m not english. I try to explain me better that i can.

I’ve 4 RouterBOARD:
the 1st, called R1, is a 433. Then there are a 411 with a mini PCI adapter ( wireless 5GHz ) called R3 and two 711-5Hn-MMCX ( with 5GHz integrated card ) called respectively R2 and R4.
I want to make a network like this. 2 areas ( backbone and area1 ): R1 and R2 in backbone, R1, R3 and R4 in area1.

Here are what i typed in terminal:
On R1

system identity set name=R1
ip address add address=192.168.0.1/24 interface=ether2
ip address add address=192.168.1.1/24 interface=ether1 #previously i wrote 192.168.0.1/24... it was wrong, sry!#
routing ospf area add name=area1 area-id=0.0.0.1
routing ospf network add area=backbone network=192.168.0.0/24
routing ospf network add area=area1 network=192.168.1.0/24

On R2

system identity set name=R2
ip address add address=192.168.0.2/24 interface=ether1
routing ospf network add area=backbone network=192.168.0.0/24

On R3

system identity set name=R3
interface wireless set wlan1 disabled=no country=italy mode=bridge ssid=area1
ip address add interface=ether1 address=192.168.1.2/24
ip address add interface=wlan1 address=192.168.1.3/24
routing ospf area name=area1 area-id=0.0.0.1
routing ospf network add area=area1 network=192.168.1.0/24

On R4

system identity set name=R4
interface wireless set wlan1 disabled=no country=italy mode=station-pseudobridge ssid=area1
ip address add interface=wlan1 address=192.168.1.4/24
routing ospf area name=area1 area-id=0.0.0.1
routing ospf network add area=area1 network=192.168.1.0/24

I check ospf neighbors on all devices and I see that one ospf status in R1 is “Ex-Start” for 4 minuts, then it become “Full” but each devices can’t see all of them.

On R1:

[admin@R1] > routing ospf
[admin@R1] /routing ospf > route print
# DST-ADDRESS        STATE          COST         GATEWAY         INTERFACE     
0 192.168.0.0/24     intra-area     10           0.0.0.0         ether2       
1 192.168.1.0/24     intra-area     10           0.0.0.0         ether1
[admin@R1] /routing ospf > neighbor print
0 instance=default router-id=10.10.10.2 address=192.168.0.2 interface=ether2
   priority=1 dr-address=192.168.0.2 backup-dr-address=192.168.0.1
   state="Full" state-changes=5 ls-retransmits=0 ls-requests=0 db-summaries=0
   adjacency=2m29s

1 instance=default router-id=10.10.10.3 address=192.168.1.2 interface=ether1
   priority=1 dr-address=192.168.1.2 backup-dr-address=192.168.1.1
   state="ExStart" state-changes=9 ls-retransmits=0 ls-requests=0
   db-summaries=0

On R2

[admin@R2] > routing ospf
[admin@R2] /routing ospf> route print
# DST-ADDRESS        STATE          COST         GATEWAY         INTERFACE   
0 192.168.0.0/24     intra-area     10           0.0.0.0         ether1       
1 192.168.1.0/24     inter-area     30           192.168.0.1     ether1       
[admin@R2] /routing ospf> neighbor print
0 instance=default router-id=10.10.10.1 address=192.168.0.1 interface=ether1
   priority=1 dr-address=192.168.0.2 backup-dr-address=192.168.0.1
   state="Full" state-changes=5 ls-retransmits=0 ls-requests=0 db-summaries=0
   adjacency=5m43s

On R3

[admin@R3] > routing ospf
[admin@R3] /routing ospf> route print
# DST-ADDRESS        STATE          COST         GATEWAY         INTERFACE   
0 192.168.0.0/24     inter-area     20           192.168.1.1     ether1       
1 192.168.1.0/24     intra-area     10           0.0.0.0         wlan1       
[admin@R3] /routing ospf> neighbor print
0 instance=default router-id=10.10.10.4 address=192.168.1.4 interface=wlan1
   priority=1 dr-address=192.168.1.4 backup-dr-address=192.168.1.3
   state="Full" state-changes=50 ls-retransmits=0 ls-requests=0
   db-summaries=0 adjacency=4m39s

1 instance=default router-id=10.10.10.1 address=192.168.1.1 interface=ether1
   priority=1 dr-address=192.168.1.2 backup-dr-address=192.168.1.1
   state="Full" state-changes=19 ls-retransmits=0 ls-requests=0
   db-summaries=0 adjacency=2m46s

On R4

[admin@R4] > routing ospf
[admin@R4] /routing ospf> route print
# DST-ADDRESS        STATE          COST         GATEWAY         INTERFACE   
0 192.168.0.0/24     inter-area     30           192.168.1.3     wlan1       
1 192.168.1.0/24     intra-area     10           0.0.0.0         wlan1       
[admin@R4] /routing ospf> neighbor print
0 instance=default router-id=10.10.10.3 address=192.168.1.3 interface=wlan1
   priority=1 dr-address=192.168.1.4 backup-dr-address=192.168.1.3
   state="Full" state-changes=11 ls-retransmits=0 ls-requests=0
   db-summaries=0 adjacency=9m50s

Finally I show you in a Table what devices see.

Sorry for the long post and I hope that you can understand me and help me :slight_smile:

R1 and R3 has Ip addresses from the same subnet on two different interfaces. Set addresses as in your diagram and OSPF should start to work.

@mrz: sry, i wrote it wrong, on ether1 in R1 it already was 192.168.1.1/24 ( EDITED in previous post now )

If you see R3 neighbors, there is a R1 neighbor with address 192.168.1.1/24.
Sry for my fault :frowning:
It still doesn’t work

R1 R3 R4 has the same /24 network on wireless and ethernets. Are those interfaces bridged? If not you need different subnet for each link.

You’re right.
I setted the same /24 network because I wanted connect two network, 192.168.1.0/24 and 192.168.0.0/24.
Is it wrong? I wanted do it as easy as possible so i setted less address possible. ( translated with google :confused: )

Routing is not going to work if addresses from the same subnet is set on different broadcast domains. From your diagram it looks like all links are point to point, so best way is to use /30 subnet for every link.

Thank you mrz, i see now.
I setted like you told and it works!

I post now what i wrote in terminal for users who have the same problem.

On R1

system identity set name=R1
ip address add address=192.168.0.1/30 interface=ether2
ip address add address=192.168.1.1/30 interface=ether1
routing ospf area add name=area1 area-id=0.0.0.1
routing ospf network add area=backbone network=192.168.0.0/24
routing ospf network add area=area1 network=192.168.1.0/24

On R2

system identity set name=R2
ip address add address=192.168.0.2/30 interface=ether1
routing ospf network add area=backbone network=192.168.0.0/24

On R3

system identity set name=R3
interface wireless set wlan1 disabled=no country=italy mode=bridge ssid=area1
ip address add interface=ether1 address=192.168.1.2/30
ip address add interface=wlan1 address=192.168.1.5/30
routing ospf area name=area1 area-id=0.0.0.1
routing ospf network add area=area1 network=192.168.1.0/24

On R4

system identity set name=R4
interface wireless set wlan1 disabled=no country=italy mode=station-pseudobridge ssid=area1
ip address add interface=wlan1 address=192.168.1.6/30
routing ospf area name=area1 area-id=0.0.0.1
routing ospf network add area=area1 network=192.168.1.0/24