Bird not installing OSPF learned routes into routing tables

Alexander V. Chernikov melifaro at FreeBSD.org
Mon Oct 28 12:37:16 CET 2013


On 28.10.2013 14:44, Lex van Roon wrote:
> Hi Alexander,
>
> I can confirm that bird will install the OSPF learned routes into the
> routing table after applying the patch in your email:
Okay. So your configuration works as expected now?

I'll add (modified version of) this fix to FreeBSD port at the end of 
the week.
>
> bird> show ospf lsadb
>
> Area 0.0.0.0
>
>   Type   LS ID           Router           Age  Sequence  Checksum
>   0001  10.42.0.1       10.42.0.1         103  8000525d    e2b2
>   0001  10.42.0.2       10.42.0.2         101  800000d1    1a0f
>   0001  10.42.0.3       10.42.0.3         110  8000146a    3e82
>   0001  10.42.0.4       10.42.0.4         965  8000044e    105a
> bird> show ospf neighbors
> as65342_igp:
> Router ID       Pri      State      DTime   Interface  Router IP
> 10.42.0.1     1     full/ptp    00:14   gre0       10.42.4.1
> 10.42.0.3     1     full/ptp    00:13   gre1       10.42.8.2
> bird> show route table routers
> 10.42.0.123/32     via 10.42.4.1 on gre0 [as65342_igp 11:41] * I (150/10) [10.42.0.1]
> 10.42.0.1/32       via 10.42.4.1 on gre0 [as65342_igp 11:41] * I (150/10) [10.42.0.1]
> 10.42.0.2/32       dev disc0 [as65342_igp 11:41] * I (150/0) [10.42.0.2]
> 10.42.0.3/32       via 10.42.8.2 on gre1 [as65342_igp 11:41] * I (150/11) [10.42.0.3]
> 10.42.0.4/32       via 10.42.4.1 on gre0 [as65342_igp 11:41] * I (150/20) [10.42.0.4]
>
> Regards, Lex
>
> On 10/26/2013 23:53, Alexander V. Chernikov wrote:
>> On 25.10.2013 18:28, Lex van Roon wrote:
>>
>> It seems that previous patch is actually not enough.
>> Can you try re-building port with the following patch?
>>
>>
>> 2 Ondrej:
>> Hi, i'm a bit stuck:
>>
>> For p2p interfaces, like gifX the following happens:
>>
>> ifconfig gif0 inet 10.10.0.1/30 10.10.0.2
>>
>> bird: (FIN) IF gre0 flags: 60000188 ip: 10.10.0.1 opposite:
>> 10.10.0.2 brd: 10.10.0.2
>> ^^^^^
>> Kernel sets broadcast address to the peer address for given p2p
>> interface even with non/32 masks.
>> This seems "reasonable".
>>
>> if_connected() uses the following logic:
>> is peer? (IA_PEER) -> opposite ? OK!
>> not peer? -> not network addr ? not broadcast ? then OK!
>>
>> Currently such interfaces are treated by nest as non-multiaccess,
>> but IA_PEER is not set.
>>
>> As a result, peer address is not treated as directly connected, so
>> neigh_find2() returns NULL, so all LSA behind given router has their
>> gw zeroed, so..
>>
>> What is better: ignore kernel-supplied broadcast address or set
>> IA_PEER for non-/32 masks and non-multiaccess media?
>>
>>> On 10/25/2013 18:12, Alexander V. Chernikov wrote:
>>>> On 25.10.2013 18:03, Lex van Roon wrote:
>>>>> Hi All,
>>>> Hello!
>>>>> Recently I've migrated one of my Debian Squeeze / bird 1.3.8 route
>>>>> reflectors to FreeBSD 10-BETA1 / bird 1.3.11. This reflector has
>>>>> multiple gre-based links, over which I advertise loopback addresses
>>>>> using OSPF, which are in turn used to establish iBGP sessions. The
>>>>> problem is that it seems that Bird is not installing OSPF learned routes
>>>>> into the routing table, and I'm not quite sure how to proceed with this.
>>>>> Please see the output below:
>>>>>
>>>>> I've got two OSPF neighbors, which successfully initialize:
>>>>>
>>>>> bird> show ospf neighbors
>>>>> as65342_igp:
>>>>> Router ID       Pri      State      DTime   Interface  Router IP
>>>>> 10.42.0.1     1     full/ptp    00:15   gre0       10.42.4.1
>>>>> 10.42.0.3     1     full/ptp    00:10   gre1       10.42.8.2
>>>> [...]
>>>>
>>>>> ==> OSPF related debugging output:
>>>>> neutralino [~]# /usr/local/sbin/bird -d 2>&1 | grep as65342_igp
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Initializing
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Starting
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Adding area 0.0.0.0
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Connected to table routers
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: State changed to feed
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < interface lo0 goes up
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < primary address 127.0.0.0/8 on interface lo0 added
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < interface xn0 goes up
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < primary address x.x.x.0/24 on interface xn0 added
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < interface xn1 created
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < interface gre0 goes up
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < primary address 10.42.4.0/30 on interface gre0 added
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Adding interface gre0 (10.42.4.0/30) to area 0.0.0.0
>>>> ^^^^
>>>> Can you show 'show interfaces' output (and compare it with real
>>>> addresses on interface?
>>>>
>>>> If addresses are different, you're probably hitting the following:
>>>> https://gitlab.labs.nic.cz/labs/bird/commit/f515e22924591542a909db0deb8545386aaa576e
>>>>
>>>> This fix is already merged to net/bird port (1.3.11_2) so you try to
>>>> upgrade and see if this resolves your issue.
>>> I was already using version 1.3.11_2 from ports :) Plus, I dont think
>>> this is the issue:
>>>
>>> neutralino [~]# ifconfig gre0
>>> gre0: flags=9051<UP,POINTOPOINT,RUNNING,LINK0,MULTICAST> metric 0 mtu 1476
>>>      description: neutralino-ran
>>>      tunnel inet x.x.x.90 --> y.y.y.24
>>>      inet6 fe80::216:3eff:fe5d:327b%gre0 prefixlen 64 tentative scopeid 0x4
>>>      inet 10.42.4.2 --> 10.42.4.1 netmask 0xfffffffc
>>>      nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>>> neutralino [~]# ifconfig gre1
>>> gre1: flags=9051<UP,POINTOPOINT,RUNNING,LINK0,MULTICAST> metric 0 mtu 1280
>>>      description: neutralino-c877
>>>      tunnel inet x.x.x.90 --> z.z.z.221
>>>      inet6 fe80::216:3eff:fe5d:327b%gre1 prefixlen 64 scopeid 0x7
>>>      inet 10.42.8.1 --> 10.42.8.2 netmask 0xfffffffc
>>>      nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>>>
>>> neutralino [~]# birdc show interfaces
>>> BIRD 1.3.11 ready.
>>> [snip]
>>> gre0 up (index=4)
>>>      PtP Multicast AdminUp LinkUp MTU=1476
>>>      10.42.4.2/30 (Primary, opposite 10.42.4.1, scope site)
>>> gre1 up (index=7)
>>>      PtP Multicast AdminUp LinkUp MTU=1280
>>>      10.42.8.1/30 (Primary, opposite 10.42.8.2, scope site)
>>>
>>>
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < interface disc0 goes up
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < primary address 10.42.0.2/32 on interface disc0 added
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Adding interface disc0 (10.42.0.2/32) to area 0.0.0.0
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < interface disc1 goes up
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < primary address 192.0.2.1/32 on interface disc1 added
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < interface gre1 goes up
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp < primary address 10.42.8.0/30 on interface gre1 added
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Adding interface gre1 (10.42.8.0/30) to area 0.0.0.0
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: State changed to up
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Changing state of iface gre1 from down to ptp
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Scheduling router-LSA origination for area 0.0.0.0
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: HELLO packet sent via gre1
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Changing state of iface disc0 from down to waiting
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Scheduling router-LSA origination for area 0.0.0.0
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Changing state of iface gre0 from down to ptp
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Scheduling router-LSA origination for area 0.0.0.0
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: HELLO packet sent via gre0
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: HELLO packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: New neighbor found: 10.42.8.2 on gre1
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Neighbor 10.42.8.2 changes state from "    down" to "    init".
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Neighbor 10.42.8.2 changes state from "    init" to "    2way".
>>>>> 25-10-2013 15:59:51 <TRACE> as65342_igp: Neighbor 10.42.8.2 changes state from "    2way" to " exstart".
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Originating router-LSA for area 0.0.0.0
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Scheduling routing table calculation
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: DBDES packet sent to 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     length   32
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     imms     MS M I
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     ddseq    2002210460
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Starting routing table calculation
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Starting routing table calculation for area 0.0.0.0
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Starting routing table calculation for inter-area (area 0.0.0.0)
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Starting routing table calculation for ext routes
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Starting routing table synchronisation
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp > filtered out 10.42.4.0/30 dev gre0
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp > added [best] 10.42.0.2/32 dev disc0
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp < rejected by protocol 10.42.0.2/32 dev disc0
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp > filtered out 10.42.8.0/30 dev gre1
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: DBDES packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     length   32
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     router   10.42.0.3
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     imms     MS M I
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     ddseq    8873
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: I'm slave to 10.42.8.2.
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Neighbor 10.42.8.2 changes state from " exstart" to "exchange".
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: DBDES packet sent to 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     length   52
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     imms
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     ddseq    8873
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 0, Seq: 80000001, Sum: ba53
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: DBDES packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     length   112
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     router   10.42.0.3
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     imms     MS
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     ddseq    8874
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.1, Rt: 10.42.0.1, Age: 2, Seq: 800051d0, Sum: 3971
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 47, Seq: 80000042, Sum: 397f
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 0, Seq: 800013eb, Sum: ab03
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.4, Rt: 10.42.0.4, Age: 309, Seq: 800003c5, Sum: 24cf
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: DBDES packet sent to 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     length   32
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     imms
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp:     ddseq    8874
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Neighbor 10.42.8.2 changes state from "exchange" to " loading".
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: HELLO packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: New neighbor found: 10.42.4.1 on gre0
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Neighbor 10.42.4.1 changes state from "    down" to "    init".
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Neighbor 10.42.4.1 changes state from "    init" to "    2way".
>>>>> 25-10-2013 15:59:52 <TRACE> as65342_igp: Neighbor 10.42.4.1 changes state from "    2way" to " exstart".
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: DBDES packet sent to 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     length   32
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     imms     MS M I
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     ddseq    43533694
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: LSREQ packet sent to 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     length   72
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSR      Type: 0001, Id: 10.42.0.1, Rt: 10.42.0.1
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSR      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSR      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSR      Type: 0001, Id: 10.42.0.4, Rt: 10.42.0.4
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: DBDES packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     length   112
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     router   10.42.0.1
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     imms
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     ddseq    43533694
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.4, Rt: 10.42.0.4, Age: 309, Seq: 800003c5, Sum: 24cf
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 49, Seq: 80000042, Sum: 397f
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.1, Rt: 10.42.0.1, Age: 1, Seq: 800051d0, Sum: 3971
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 4, Seq: 800013eb, Sum: ab03
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: I'm master to 10.42.4.1.
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: Neighbor 10.42.4.1 changes state from " exstart" to "exchange".
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: DBDES packet sent to 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     length   52
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     imms     MS
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     ddseq    43533695
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 1, Seq: 80000001, Sum: ba53
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: DBDES packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     length   32
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     router   10.42.0.1
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     imms
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     ddseq    43533695
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: Neighbor 10.42.4.1 changes state from "exchange" to " loading".
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: LSUPD packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     length   352
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     router   10.42.0.3
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.1, Rt: 10.42.0.1, Age: 5, Seq: 800051d0, Sum: 3971
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 50, Seq: 80000042, Sum: 397f
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 4, Seq: 800013eb, Sum: ab03
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.4, Rt: 10.42.0.4, Age: 312, Seq: 800003c5, Sum: 24cf
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: Scheduling routing table calculation
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: Received old self-originated LSA (Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2)
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: Reflooding new self-originated LSA with newer sequence number
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: LSUPD packet flooded via gre0
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     length   88
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 1, Seq: 80000043, Sum: 3695
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: LSUPD packet flooded via gre1
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     length   88
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 1, Seq: 80000043, Sum: 3695
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: Neighbor 10.42.4.1 changes state from " loading" to "    full".
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: Scheduling router-LSA origination for area 0.0.0.0
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: Scheduling network-LSA origination for iface gre0
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: Neighbor 10.42.8.2 changes state from " loading" to "    full".
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: Scheduling router-LSA origination for area 0.0.0.0
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: Scheduling network-LSA origination for iface gre1
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: LSACK packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     length   44
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     router   10.42.0.3
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 1, Seq: 80000043, Sum: 3695
>>>>> 25-10-2013 15:59:53 <TRACE> as65342_igp: HELLO packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp: Starting routing table calculation
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp: Starting routing table calculation for area 0.0.0.0
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp: Starting routing table calculation for inter-area (area 0.0.0.0)
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp: Starting routing table calculation for ext routes
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp: Starting routing table synchronisation
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp: LSUPD packet sent to 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp:     length   88
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 1, Seq: 80000043, Sum: 3695
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp: LSACK packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp:     length   44
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp:     router   10.42.0.1
>>>>> 25-10-2013 15:59:54 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 1, Seq: 80000043, Sum: 3695
>>>>> 25-10-2013 15:59:56 <TRACE> as65342_igp: HELLO packet sent via gre0
>>>>> 25-10-2013 15:59:56 <TRACE> as65342_igp: HELLO packet sent via gre1
>>>>> 25-10-2013 15:59:56 <TRACE> as65342_igp: LSUPD packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:56 <TRACE> as65342_igp:     length   112
>>>>> 25-10-2013 15:59:56 <TRACE> as65342_igp:     router   10.42.0.3
>>>>> 25-10-2013 15:59:56 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 3, Seq: 800013ec, Sum: 3c03
>>>>> 25-10-2013 15:59:56 <TRACE> as65342_igp: LSUPD packet flooded via gre0
>>>>> 25-10-2013 15:59:56 <TRACE> as65342_igp:     length   112
>>>>> 25-10-2013 15:59:56 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:56 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 4, Seq: 800013ec, Sum: 3c03
>>>>> 25-10-2013 15:59:56 <TRACE> as65342_igp: Scheduling routing table calculation
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: LSUPD packet sent to 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     length   112
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 3, Seq: 800013ec, Sum: 3c03
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: Starting routing table calculation
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: Starting routing table calculation for area 0.0.0.0
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: Starting routing table calculation for inter-area (area 0.0.0.0)
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: Starting routing table calculation for ext routes
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: Starting routing table synchronisation
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: LSUPD packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     length   112
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     router   10.42.0.1
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 4, Seq: 800013ec, Sum: 3c03
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: LSUPD packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     length   148
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     router   10.42.0.1
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.1, Rt: 10.42.0.1, Age: 1, Seq: 800051d1, Sum: fc25
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: LSUPD packet flooded via gre1
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     length   148
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.1, Rt: 10.42.0.1, Age: 2, Seq: 800051d1, Sum: fc25
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: Scheduling routing table calculation
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: LSUPD packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     length   232
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     router   10.42.0.1
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 4, Seq: 800013ec, Sum: 3c03
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.1, Rt: 10.42.0.1, Age: 0, Seq: 800051d1, Sum: fc25
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: LSACK packet sent via gre0
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     length   64
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 4, Seq: 800013ec, Sum: 3c03
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.1, Rt: 10.42.0.1, Age: 0, Seq: 800051d1, Sum: fc25
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: LSACK packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     length   44
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     router   10.42.0.1
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 3, Seq: 800013ec, Sum: 3c03
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: LSUPD packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     length   148
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     router   10.42.0.3
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.1, Rt: 10.42.0.1, Age: 4, Seq: 800051d1, Sum: fc25
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: HELLO packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: LSUPD packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     length   112
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     router   10.42.0.3
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 4, Seq: 800013ec, Sum: 3c03
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp: LSACK packet sent via gre1
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     length   44
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:57 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.3, Rt: 10.42.0.3, Age: 4, Seq: 800013ec, Sum: 3c03
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: Originating router-LSA for area 0.0.0.0
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: LSUPD packet flooded via gre0
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     length   112
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 1, Seq: 80000044, Sum: 3581
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: LSUPD packet flooded via gre1
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     length   112
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 1, Seq: 80000044, Sum: 3581
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: Starting routing table calculation
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: Starting routing table calculation for area 0.0.0.0
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: Starting routing table calculation for inter-area (area 0.0.0.0)
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: Starting routing table calculation for ext routes
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: Starting routing table synchronisation
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: LSUPD packet sent to 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     length   112
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     router   10.42.0.2
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 0, Seq: 80000044, Sum: 3581
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: LSACK packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     length   44
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     router   10.42.0.1
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 0, Seq: 80000044, Sum: 3581
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: LSACK packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     length   44
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     router   10.42.0.3
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp:     LSA      Type: 0001, Id: 10.42.0.2, Rt: 10.42.0.2, Age: 1, Seq: 80000044, Sum: 3581
>>>>> 25-10-2013 15:59:58 <TRACE> as65342_igp: HELLO packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 16:00:01 <TRACE> as65342_igp: HELLO packet sent via gre1
>>>>> 25-10-2013 16:00:01 <TRACE> as65342_igp: HELLO packet sent via gre0
>>>>> 25-10-2013 16:00:03 <TRACE> as65342_igp: HELLO packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 16:00:03 <TRACE> as65342_igp: HELLO packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 16:00:06 <TRACE> as65342_igp: HELLO packet sent via gre0
>>>>> 25-10-2013 16:00:06 <TRACE> as65342_igp: HELLO packet sent via gre1
>>>>> 25-10-2013 16:00:07 <TRACE> as65342_igp: HELLO packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 16:00:07 <TRACE> as65342_igp: HELLO packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 16:00:11 <TRACE> as65342_igp: HELLO packet sent via gre1
>>>>> 25-10-2013 16:00:11 <TRACE> as65342_igp: HELLO packet sent via gre0
>>>>> 25-10-2013 16:00:12 <TRACE> as65342_igp: HELLO packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 16:00:12 <TRACE> as65342_igp: HELLO packet received from 10.42.4.1 via gre0
>>>>> 25-10-2013 16:00:16 <TRACE> as65342_igp: HELLO packet sent via gre0
>>>>> 25-10-2013 16:00:16 <TRACE> as65342_igp: HELLO packet sent via gre1
>>>>> 25-10-2013 16:00:17 <TRACE> as65342_igp: HELLO packet received from 10.42.8.2 via gre1
>>>>> 25-10-2013 16:00:17 <TRACE> as65342_igp: HELLO packet received from 10.42.4.1 via gre0
>>>>> ^C
>>>>> neutralino [~]#
>>>>>
>>>
>> diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c
>> index 3d30036..48edbdc 100644
>> --- sysdep/bsd/krt-sock.c
>> +++ sysdep/bsd/krt-sock.c
>> @@ -694,10 +694,10 @@ krt_read_addr(struct ks_msg *msg)
>>   #ifndef IPV6
>>       if (masklen == (BITS_PER_IP_ADDRESS - 2))
>>         ifa.opposite = ipa_opposite_m2(ifa.ip);
>> -#endif
>>   
>> -    if (!(iface->flags & IF_MULTIACCESS))
>> -      ifa.opposite = ifa.brd;
>> +    /* Do not trust kernel on PtP masks */
>> +    ifa.brd = ipa_or(ifa.prefix, ipa_not(ipa_mkmask(masklen)));
>> +#endif
>>     }
>>     else if (!(iface->flags & IF_MULTIACCESS) && ipa_nonzero(ifa.brd))
>>     {
>




More information about the Bird-users mailing list