<div dir="ltr">Hello,<div><br></div><div>I am having trouble advertising my loopback interface into ospf as passive.</div><div><br></div><div><div>root@nms001] # birdc</div><div>BIRD 1.6.3 ready.</div><div>bird> show route</div><div><a href="http://10.192.111.0/24">10.192.111.0/24</a> dev bond0 [direct1 2018-03-05] * (240)</div><div><a href="http://10.250.0.0/32">10.250.0.0/32</a> dev lo [direct1 2018-03-26] * (240)</div></div><div><br></div><div>I am currently advertising the route into the ospf domain using a filter as a workaround but this advertises as an External route (Type 5 LSA).</div><div>I was wondering if there is a way to advertise the interface route as a Type1 LSA.</div><div><br></div><div>Output from OSPF router in the same Area0</div><div><div>user@host> show ospf database</div><div><br></div><div> OSPF database, Area 0.0.0.0</div><div> Type ID Adv Rtr Seq Age Opt Cksum Len</div><div>Router 10.192.1.61 10.192.1.61 0x80001d93 1028 0x22 0x4d67 96</div><div>Router 10.192.1.62 10.192.1.62 0x80001d90 2565 0x22 0xb3f7 96</div><div>Router 10.192.1.63 10.192.1.63 0x80001d8e 2537 0x22 0x1889 96</div><div>Router 10.192.1.64 10.192.1.64 0x80001d76 2558 0x22 0xa805 96</div><div>Router 10.192.1.65 10.192.1.65 0x80001d74 2568 0x22 0xd96 96</div><div>Router 10.192.1.66 10.192.1.66 0x80001d7b 524 0x22 0x5f31 96</div><div>Router *10.192.1.67 10.192.1.67 0x8000167c 2942 0x22 0xae29 444</div><div>Router 10.192.1.68 10.192.1.68 0x80001671 2947 0x22 0x9523 420</div><div>Router 10.192.1.69 10.192.1.69 0x80001d7c 2559 0x22 0x9cde 96</div><div>Router 10.192.1.70 10.192.1.70 0x80001981 2567 0x22 0xfe6f 96</div><div>Router 10.192.1.71 10.192.1.71 0x8000198b 658 0x22 0x8f8d 96</div><div>Router 10.192.1.72 10.192.1.72 0x80001984 174 0x22 0xb999 96</div><div>Router 10.192.1.73 10.192.1.73 0x80001995 2567 0x22 0xf73e 96</div><div>Router 10.192.1.74 10.192.1.74 0x80001d7b 2559 0x22 0x80bf 96</div><div>Router 10.192.1.75 10.192.1.75 0x800013a7 1196 0x22 0xa66b 96</div><div>Router 10.192.1.76 10.192.1.76 0x800013a3 1342 0x22 0xffa 96</div><div>Router 10.192.1.77 10.192.1.77 0x80000060 839 0x22 0x3e09 72</div><div>Router 10.192.1.81 10.192.1.81 0x8000003e 55 0x22 0xf6a4 84</div><div>Router 10.192.1.82 10.192.1.82 0x8000003d 2943 0x22 0x147d 84</div><div>Router 10.192.111.11 10.192.111.11 0x8000072f 493 0x2 0x8e79 36</div><div>Network 10.192.111.1 10.192.1.71 0x8000044a 658 0x22 0x67de 32</div><div> OSPF AS SCOPE link state database</div><div> Type ID Adv Rtr Seq Age Opt Cksum Len</div><div>Extern *0.0.0.0 10.192.1.67 0x800015a3 1463 0x22 0x816a 36</div><div>Extern 0.0.0.0 10.192.1.68 0x8000120d 1465 0x22 0xb1d2 36</div><div>Extern 10.250.0.0 10.192.111.11 0x80000338 663 0x2 0x779f 36</div></div><div><br></div><div>Bird configuration:</div><div><div>root@nms001] # cat /etc/bird.conf</div><div><br></div><div>router id 10.192.111.11;</div><div><br></div><div>filter loopback {</div><div><span style="white-space:pre"> </span>if net ~ <a href="http://10.250.0.0/32">10.250.0.0/32</a> then accept;</div><div><span style="white-space:pre"> </span>else reject;</div><div>}</div><div><br></div><div>protocol direct {</div><div><span style="white-space:pre"> </span>interface "bond0", "lo*";<span style="white-space:pre"> </span># Restrict network interfaces it works with</div><div>}</div><div><br></div><div>protocol kernel {</div><div><span style="white-space:pre"> </span>learn;<span style="white-space:pre"> </span># Learn all alien routes from the kernel</div><div><span style="white-space:pre"> </span>persist;<span style="white-space:pre"> </span># Don't remove routes on bird shutdown</div><div><span style="white-space:pre"> </span>scan time 20;<span style="white-space:pre"> </span># Scan kernel routing table every 20 seconds</div><div><span style="white-space:pre"> </span>import none;<span style="white-space:pre"> </span># Default is import all</div><div><span style="white-space:pre"> </span>export all;<span style="white-space:pre"> </span># Default is export none</div><div>}</div><div><br></div><div>protocol device {</div><div><span style="white-space:pre"> </span>scan time 10;<span style="white-space:pre"> </span># Scan interfaces every 10 seconds</div><div>}</div><div><br></div><div>############</div><div>### OSPF ###</div><div>############</div><div>protocol ospf MyOSPF {</div><div> tick 2;</div><div> import none;</div><div> export filter loopback;</div><div> area 0.0.0.0 {</div><div> stub no;</div><div> interface "bond0" {</div><div> hello 10;</div><div> retransmit 6;</div><div> cost 10;</div><div> transmit delay 5;</div><div> dead count 4;</div><div> wait 50;</div><div> type broadcast;</div><div> };</div><div> };</div><div>}</div></div><div><br></div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">root@nms001] # birdc</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">BIRD 1.6.3 ready.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">bird> show route</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><a href="http://10.192.111.0/24">10.192.111.0/24</a> dev bond0 [direct1 2018-03-05] * (240)</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><a href="http://10.250.0.0/32">10.250.0.0/32</a> dev lo [direct1 2018-03-26] * (240)</div><div><br></div><div><div class="gmail_signature"><div dir="ltr"><p style="font-family:arial,helvetica,sans-serif;font-size:x-small;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><br></p></div></div></div>
</div></div>