<div dir="ltr">

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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;float:none;display:inline">Ok. I have installed bird via epel on Centos</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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">The router sending BGP announcement is Juniper Open Contrail Virtual Router (on Openstack). I downloaded and installed the 2.0.2 and used this config:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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"><div>------------------------------<wbr>------------------------------<wbr>-------------------------</div><div># more /usr/local/etc/bird.conf</div><span class="gmail-im" style="color:rgb(80,0,80)"><div>log syslog all;</div><div>log stderr all;</div><div>log "/var/log/bird.logg" all;</div><div>debug protocols all;</div><div><br></div><div>protocol kernel {</div></span><div>        ipv4 {</div><div>             import all;</div><div>             export all;</div><div>        };</div><div>        persist;</div><div>        scan time 20;</div><span class="gmail-im" style="color:rgb(80,0,80)"><div>}</div><div><br></div><div>protocol device {</div><div>        scan time 10;           # Scan interfaces every 10 seconds</div><div>}</div><div><br></div><div>router id 192.168.200.6;</div><div><br></div><div>protocol bgp bgp1 {</div><div>       local as 64521;</div><div>       neighbor 192.168.200.1 as 64520;</div></span><div>       ipv4 {</div><div>          import all;</div><div>          export all;</div><div>       };</div><div>}</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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"><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">------------------------------<wbr>------------------------------<wbr>-------------------------</div><br class="gmail-m_1619480852344994683gmail-Apple-interchange-newline"></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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">And finally I see all routes:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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"><div><span 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;float:none;display:inline">------------------------------<wbr>------------------------------<wbr>-------------------------</span><br class="gmail-m_1619480852344994683gmail-Apple-interchange-newline">[root@vm-1 bird-2.0.2]# birdc show route</div><div>BIRD 2.0.2 ready.</div><div>Table master4:</div><div><a href="http://163.162.35.131/32" target="_blank" style="color:rgb(17,85,204)">163.162.35.131/32</a>    unicast [bgp1 20:48:36.342] * (100) [AS64520?]<br></div><div>        via 192.168.200.1 on eth1</div><div><a href="http://163.162.35.80/32" target="_blank" style="color:rgb(17,85,204)">163.162.35.80/32</a>     unicast [bgp1 20:48:36.342] * (100) [AS3269i]</div><div>        via 192.168.200.1 on eth1</div><div><a href="http://100.64.3.28/32" target="_blank" style="color:rgb(17,85,204)">100.64.3.28/32</a>       unicast [bgp1 20:48:36.342] * (100) [AS64520?]</div><div>        via 192.168.200.1 on eth1</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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">...</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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"><span 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;float:none;display:inline">------------------------------<wbr>------------------------------<wbr>-------------------------</span><br class="gmail-m_1619480852344994683gmail-Apple-interchange-newline"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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">Rr</div>

<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-11 19:21 GMT+02:00 Jan Maria Matějka <span dir="ltr"><<a href="mailto:jan.matejka@nic.cz" target="_blank">jan.matejka@nic.cz</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
First of all, we don't support this old version. Please upgrade, either to 1.6.4 or to 2.0.2.<br>
<br>
Second, the other side seems to send multiprotocol NLRI to you. BIRD in 1.x versions AFAIK does not support this extension and should not announce it. What is the remote software?<br>
<br>
Writing from my phone with no access to source code, trying to recall it from my memory. I might be wrong.<br>
<br>
Maria<br>
<br>
Quidquid latine dictum sit, altum videtur.<br>
<div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: RICCARDO RUSSO <<a href="mailto:riccardo.russo79@gmail.com">riccardo.russo79@gmail.com</a>><br>
To: <a href="mailto:bird-users@network.cz">bird-users@network.cz</a><br>
Sent: Wed, 11 Apr 2018 6:10 PM<br>
Subject: BGP import route<br>
<br>
Hello,<br>
I'm not able to import route from BGP (CentOS 7). In log file I read "Got<br>
UPDATE" but  "import updates" is always 0. With TCPDUMP I see that BGP<br>
receive the routes<br>
<br>
Rr<br>
<br>
------------------------------<wbr>------------------------------<br>
# more bird.conf<br>
log syslog all;<br>
log stderr all;<br>
log "/var/log/bird.logg" all;<br>
debug protocols all;<br>
<br>
protocol kernel {<br>
        persist;                # Don't remove routes on bird shutdown<br>
        scan time 20;           # Scan kernel routing table every 20 seconds<br>
}<br>
<br>
protocol device {<br>
        scan time 10;           # Scan interfaces every 10 seconds<br>
}<br>
<br>
router id 192.168.200.6;<br>
<br>
protocol bgp bgp1 {<br>
       local as 64521;<br>
       neighbor 192.168.200.1 as 64520;<br>
       import filter all;<br>
}<br>
------------------------------<wbr>------------------------------<br>
<br>
<br>
------------------------------<wbr>------------------------------<br>
<br>
# tail -f /var/log/bird.logg<br>
2018-04-11 17:46:53 <TRACE> kernel1 < interface lo goes up<br>
2018-04-11 17:46:53 <TRACE> kernel1 < interface eth0 goes up<br>
2018-04-11 17:46:53 <TRACE> kernel1 < interface eth1 goes up<br>
2018-04-11 17:46:53 <TRACE> kernel1: State changed to up<br>
2018-04-11 17:46:53 <TRACE> bgp1: Started<br>
2018-04-11 17:46:53 <TRACE> bgp1: Connect delayed by 5 seconds<br>
2018-04-11 17:46:53 <TRACE> kernel1: Scanning routing table<br>
2018-04-11 17:46:53 <TRACE> kernel1: <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a>: [alien] ignored<br>
2018-04-11 17:46:53 <TRACE> kernel1: <a href="http://192.168.44.0/24" rel="noreferrer" target="_blank">192.168.44.0/24</a>: [alien] ignored<br>
2018-04-11 17:46:53 <TRACE> kernel1: Pruning table master<br>
2018-04-11 17:46:57 <TRACE> bgp1: Connecting to 192.168.200.1 from local<br>
address 192.168.200.6<br>
2018-04-11 17:46:57 <TRACE> bgp1: Connected<br>
2018-04-11 17:46:57 <TRACE> bgp1: Sending<br>
OPEN(ver=4,as=64521,hold=240,<wbr>id=c0a8c806)<br>
2018-04-11 17:46:57 <TRACE> bgp1: Connection closed<br>
2018-04-11 17:46:57 <TRACE> bgp1: Connect delayed by 5 seconds<br>
2018-04-11 17:47:03 <TRACE> device1: Scanning interfaces<br>
2018-04-11 17:47:03 <TRACE> bgp1: Connecting to 192.168.200.1 from local<br>
address 192.168.200.6<br>
2018-04-11 17:47:03 <TRACE> bgp1: Connected<br>
2018-04-11 17:47:03 <TRACE> bgp1: Sending<br>
OPEN(ver=4,as=64521,hold=240,<wbr>id=c0a8c806)<br>
2018-04-11 17:47:03 <TRACE> bgp1: Got OPEN(as=64520,hold=90,id=<wbr>a3a2e686)<br>
2018-04-11 17:47:03 <TRACE> bgp1: Sending KEEPALIVE<br>
2018-04-11 17:47:03 <TRACE> bgp1: Got KEEPALIVE<br>
2018-04-11 17:47:03 <TRACE> bgp1: BGP session established<br>
2018-04-11 17:47:03 <TRACE> bgp1: Connected to table master<br>
2018-04-11 17:47:03 <TRACE> bgp1: State changed to feed<br>
2018-04-11 17:47:03 <TRACE> bgp1: State changed to up<br>
2018-04-11 17:47:03 <TRACE> bgp1: Sending End-of-RIB<br>
2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE<br>
2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE<br>
2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE<br>
2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE<br>
2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE<br>
2018-04-11 17:47:03 <TRACE> ...<br>
------------------------------<wbr>------------------------------<br>
<br>
<br>
------------------------------<wbr>------------------------------<br>
<br>
# birdc show protocols all bgp1<br>
BIRD 1.4.5 ready.<br>
name     proto    table    state  since       info<br>
bgp1     BGP      master   up     17:47:03    Established<br>
  Preference:     100<br>
  Input filter:   ACCEPT<br>
  Output filter:  REJECT<br>
  Routes:         0 imported, 0 exported, 0 preferred<br>
  Route change stats:     received   rejected   filtered    ignored<br>
 accepted<br>
    Import updates:              0          0          0          0<br>
  0<br>
    Import withdraws:            0          0        ---          0<br>
  0<br>
    Export updates:              0          0          0        ---<br>
  0<br>
    Export withdraws:            0        ---        ---        ---<br>
  0<br>
  BGP state:          Established<br>
    Neighbor address: 192.168.200.1<br>
    Neighbor AS:      64520<br>
    Neighbor ID:      163.162.230.134<br>
    Neighbor caps:    restart-aware<br>
    Session:          external<br>
    Source address:   192.168.200.6<br>
    Hold timer:       62/90<br>
    Keepalive timer:  22/30<br>
------------------------------<wbr>------------------------------<br>
<br>
<br>
------------------------------<wbr>------------------------------<br>
# tcpdump -i eth1 tcp port 179 -vvv -XX<br>
17:37:51.260061 IP (tos 0x0, ttl 1, id 49246, offset 0, flags [DF], proto<br>
TCP (6), length 1353)<br>
    192.168.200.1.bgp > vm-1.59873: Flags [P.], cksum 0xad25 (correct), seq<br>
61:1362, ack 69, win 210, options [nop,nop,TS val 1643220008 ecr 25496328],<br>
length 1301: BGP<br>
        Update Message (2), length: 66<br>
          Origin (1), length: 1, Flags [T]: Incomplete<br>
            0x0000:  02<br>
          Next Hop (3), length: 4, Flags [T]: 192.168.200.1<br>
            0x0000:  c0a8 c801<br>
          Multi Exit Discriminator (4), length: 4, Flags [O]: 100<br>
            0x0000:  0000 0064<br>
          AS Path (2), length: 4, Flags [T]: 64520<br>
            0x0000:  0201 fc08<br>
          Multi-Protocol Reach NLRI (14), length: 14, Flags [OE]:<br>
            AFI: IPv4 (1), SAFI: Unicast (1)<br>
            nexthop: 192.168.200.1, nh-length: 4, no SNPA<br>
              <a href="http://163.162.230.199/32" rel="noreferrer" target="_blank">163.162.230.199/32</a><br>
            0x0000:  0001 0104 c0a8 c801 0020 a3a2 e6c7<br>
....<br>
</div></div></blockquote></div><br></div>