<div dir="ltr">Hello,<div>I'm not able to import route from BGP (CentOS 7). In log file I read "<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">Got UPDATE" but "import updates" is always 0. With TCPDUMP I see that BGP receive the routes</span></div><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"><br></span></div><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">Rr</span></div><div><br></div><div><div>------------------------------------------------------------</div><div># more bird.conf</div><div>log syslog all;<br></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><div> persist; # Don't remove routes on bird shutdown</div><div> scan time 20; # Scan kernel routing table every 20 seconds</div><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><div> import filter all;</div><div>}</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">------------------------------------------------------------</div><br class="gmail-Apple-interchange-newline">
<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">------------------------------------------------------------</div><br class="gmail-Apple-interchange-newline"># tail -f /var/log/bird.logg<br></div><div>2018-04-11 17:46:53 <TRACE> kernel1 < interface lo goes up</div><div>2018-04-11 17:46:53 <TRACE> kernel1 < interface eth0 goes up</div><div>2018-04-11 17:46:53 <TRACE> kernel1 < interface eth1 goes up</div><div>2018-04-11 17:46:53 <TRACE> kernel1: State changed to up</div><div>2018-04-11 17:46:53 <TRACE> bgp1: Started</div><div>2018-04-11 17:46:53 <TRACE> bgp1: Connect delayed by 5 seconds</div><div>2018-04-11 17:46:53 <TRACE> kernel1: Scanning routing table</div><div>2018-04-11 17:46:53 <TRACE> kernel1: <a href="http://0.0.0.0/0">0.0.0.0/0</a>: [alien] ignored</div><div>2018-04-11 17:46:53 <TRACE> kernel1: <a href="http://192.168.44.0/24">192.168.44.0/24</a>: [alien] ignored</div><div>2018-04-11 17:46:53 <TRACE> kernel1: Pruning table master</div><div>2018-04-11 17:46:57 <TRACE> bgp1: Connecting to 192.168.200.1 from local address 192.168.200.6</div><div>2018-04-11 17:46:57 <TRACE> bgp1: Connected</div><div>2018-04-11 17:46:57 <TRACE> bgp1: Sending OPEN(ver=4,as=64521,hold=240,id=c0a8c806)</div><div>2018-04-11 17:46:57 <TRACE> bgp1: Connection closed</div><div>2018-04-11 17:46:57 <TRACE> bgp1: Connect delayed by 5 seconds</div><div>2018-04-11 17:47:03 <TRACE> device1: Scanning interfaces</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Connecting to 192.168.200.1 from local address 192.168.200.6</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Connected</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Sending OPEN(ver=4,as=64521,hold=240,id=c0a8c806)</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Got OPEN(as=64520,hold=90,id=a3a2e686)</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Sending KEEPALIVE</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Got KEEPALIVE</div><div>2018-04-11 17:47:03 <TRACE> bgp1: BGP session established</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Connected to table master</div><div>2018-04-11 17:47:03 <TRACE> bgp1: State changed to feed</div><div>2018-04-11 17:47:03 <TRACE> bgp1: State changed to up</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Sending End-of-RIB</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE</div><div>2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE</div><div>2018-04-11 17:47:03 <TRACE> ...</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">------------------------------------------------------------</div><br class="gmail-Apple-interchange-newline">
<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">------------------------------------------------------------</div><br class="gmail-Apple-interchange-newline"># birdc show protocols all bgp1</div><div>BIRD 1.4.5 ready.</div><div>name proto table state since info</div><div>bgp1 BGP master up 17:47:03 Established</div><div> Preference: 100</div><div> Input filter: ACCEPT</div><div> Output filter: REJECT</div><div> Routes: 0 imported, 0 exported, 0 preferred</div><div> Route change stats: received rejected filtered ignored accepted</div><div> Import updates: 0 0 0 0 0</div><div> Import withdraws: 0 0 --- 0 0</div><div> Export updates: 0 0 0 --- 0</div><div> Export withdraws: 0 --- --- --- 0</div><div> BGP state: Established</div><div> Neighbor address: 192.168.200.1</div><div> Neighbor AS: 64520</div><div> Neighbor ID: 163.162.230.134</div><div> Neighbor caps: restart-aware</div><div> Session: external</div><div> Source address: 192.168.200.6</div><div> Hold timer: 62/90</div><div> Keepalive timer: 22/30</div></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">------------------------------------------------------------</div><br class="gmail-Apple-interchange-newline">
<br></div><div><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">------------------------------------------------------------</span><br class="gmail-Apple-interchange-newline">
# tcpdump -i eth1 tcp port 179 -vvv -XX</div></div><div><div>17:37:51.260061 IP (tos 0x0, ttl 1, id 49246, offset 0, flags [DF], proto TCP (6), length 1353)</div><div> 192.168.200.1.bgp > vm-1.59873: Flags [P.], cksum 0xad25 (correct), seq 61:1362, ack 69, win 210, options [nop,nop,TS val 1643220008 ecr 25496328], length 1301: BGP</div><div> Update Message (2), length: 66</div><div> Origin (1), length: 1, Flags [T]: Incomplete</div><div> 0x0000: 02</div><div> Next Hop (3), length: 4, Flags [T]: 192.168.200.1</div><div> 0x0000: c0a8 c801</div><div> Multi Exit Discriminator (4), length: 4, Flags [O]: 100</div><div> 0x0000: 0000 0064</div><div> AS Path (2), length: 4, Flags [T]: 64520</div><div> 0x0000: 0201 fc08</div><div> Multi-Protocol Reach NLRI (14), length: 14, Flags [OE]:</div><div> AFI: IPv4 (1), SAFI: Unicast (1)</div><div> nexthop: 192.168.200.1, nh-length: 4, no SNPA</div><div> <a href="http://163.162.230.199/32">163.162.230.199/32</a></div><div> 0x0000: 0001 0104 c0a8 c801 0020 a3a2 e6c7</div></div><div>....</div></div>