OSPF netmask mismatch

Gustavo Ponza g.ponza at tin.it
Mon Sep 14 18:05:31 CEST 2015


Hi Ondrej and all,

after a long time I need to setup a ppp tunnel between linux
machine and a MikroTik router and the linux ppp0 interface
results up and running as follows:

ppp0      Link encap:Point-to-Point Protocol
           inet addr:44.134.32.240  P-t-P:10.58.2.1 Mask:255.255.255.255
           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1450  Metric:1
           RX packets:442 errors:0 dropped:0 overruns:0 frame:0
           TX packets:359 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:3
           RX bytes:31271 (30.5 Kb)  TX bytes:23174 (22.6 Kb)

the ppp0 interface reported by BIRD is the following:

ppp0 up (index=23)
         PtP Multicast AdminUp LinkUp MTU=1450
     44.134.32.240/32 (Primary, opposite 10.58.2.1, scope univ)


as you can see the Mask value on the above linux interface is 
255.255.255.255.
Now running an OSPF session on both sides (linux BIRD OSPF and Mikrotik 
OSPF)
it happens that the BIRD on linux (ir0rm-7.ampr.org/44.134.32.240) transmits
the Hello packets with a Mask 0.0.0.0 and then the Mikrotik discards the 
BIRD
Hello packets due to mismatch in network mask (see the following tcpdump
on linux machine and Mikrotik log picture).
There is a continue Hello packets as below with no apparent OSPF routing
exchange.
I'm using the latest BIRD git version...
Something wrong on my side?

regards,
gus [i0ojj]

---------------------

16:57:41.140591 IP (tos 0xc0, ttl 1, id 54307, offset 0, flags [none], 
proto OSPF (89), length 64)
     ir0rm-7.ampr.org > ospf-all.mcast.net: OSPFv2, Hello, length 44
     Router-ID 10.58.1.1, Area 0.0.0.254, Authentication Type: none (0)
     Options [External]
       Hello Timer 10s, Dead Timer 40s, Mask 0.0.0.0, Priority 1
16:57:41.402749 IP (tos 0xc0, ttl 1, id 48993, offset 0, flags [none], 
proto OSPF (89), length 64)
     10.58.2.1 > ospf-all.mcast.net: OSPFv2, Hello, length 44
     Router-ID 10.58.1.1, Area 0.0.0.254, Authentication Type: none (0)
     Options [External]
       Hello Timer 10s, Dead Timer 40s, Mask 255.255.255.255, Priority 1
       Designated Router 10.58.2.1


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20150914/cf814f9c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mikrotik.png
Type: image/png
Size: 34469 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20150914/cf814f9c/attachment.png>


More information about the Bird-users mailing list