mikrotik ospf and quagga via openvpn

Hello!

I’m trying to set up ospf between mikrotik and linux quagga, but I got in mikrotik logs next message:

12:57:33 route,ospf,debug RECV: Hello ← 192.168.10.98 on (192.168.10.1)
12:57:33 route,ospf,info Discarding Hello packet: mismatch in network mask
12:57:33 route,ospf,info mine=255.255.255.255
12:57:33 route,ospf,info remote=0.0.0.0
12:57:33 route,ospf,info source=192.168.10.98

192.168.10.1 is mikrotik openvpn interface
192.168.10.98 is linux quagga


quagga config:

ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 1c:6f:65:ca:00:d7 brd ff:ff:ff:ff:ff:ff
inet 192.168.146.187/24 brd 192.168.146.255 scope global eth0
valid_lft forever preferred_lft forever
3: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
link/none
inet 192.168.10.98 peer 192.168.10.1/32 scope global tun0
valid_lft forever preferred_lft forever

cat ospfd.conf

!
! Zebra configuration saved from vty
!   2014/07/03 15:05:08
!
hostname ospfd
password ***
log file /var/log/ospf.log
debug ospf packet all detail
!
!
!
interface eth0
!
interface lo
!
interface tun0
!
router ospf
 ospf router-id 192.168.10.100
 network 192.168.146.0/24 area 0.0.0.0
 network 192.168.10.0/24 area 0.0.0.0
!
line vty
!

mikrotik:

/routing ospf instance
set [ find default=yes ] router-id=192.168.10.1
/routing ospf network
add area=backbone network=172.16.0.0/22
add area=backbone network=192.168.10.0/24



/ip address
add address=172.16.1.9/22 interface=LAN network=172.16.0.0
add address=xxxxx/30 interface=WAN network=xxxxxx

Please help, what’s wrong?

PS. quagga can see neighbor, but mikrotik can’t:

ospfd# show ip ospf neighbor d
Neighbor 192.168.10.1, interface address 192.168.10.1
In the area 0.0.0.0 via interface tun0
Neighbor priority is 1, State is Init, 1 state changes
Most recent state change statistics:
Progressive change 7m41s ago
DR is 192.168.10.1, BDR is 0.0.0.0
Options 0 |-|-|-|-|-|-|
Dead timer due in 38.209s
Database Summary List 0
Link State Request List 0
Link State Retransmission List 0
Thread Inactivity Timer on
Thread Database Description Retransmision off
Thread Link State Request Retransmission off
Thread Link State Update Retransmission off

12:57:33 route,ospf,info Discarding Hello packet: mismatch in network mask
12:57:33 route,ospf,info mine=255.255.255.255
12:57:33 route,ospf,info remote=0.0.0.0
12:57:33 route,ospf,info source=192.168.10.98

Please cek your address in for both router, Your end is a /32 while the remote end is a /0.

thank you for answer,
both have /32 mask:

[main-router] > ip address p
Flags: X - disabled, I - invalid, D - dynamic

ADDRESS NETWORK INTERFACE

0 172.16.1.9/22 172.16.0.0 LAN

2 D > 192.168.10.1/32 > 192.168.10.98



akam # ifconfig
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 192.168.10.98 > netmask 255.255.255.255 > destination 192.168.10.1
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 2854 bytes 182032 (177.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2737 bytes 183064 (178.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Try /30 on both ends.

i think this is related to Your tunnel setup.

Hi,

To solve this problem You should select point-to-point network type on the Mikortik’s ospf interface configuration.

Best regards,
Rod Barbosa