<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi all,<div class="">New user here</div><div class=""><br class=""><div class="">I am trying to get 2 ebgp neighbours on bird to peer with a remote bgp endpoint on frr node.</div><div class="">One between 10.100.101.1 <—> 10.100.1.1 and other between 10.100.102.1 <—> 10.100.1.1</div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier New" class=""> ┌──────────────────┐ ┌─────────────┐</font></div><div class=""><font face="Courier New" class=""> 10.100.101.1 │ │ensp5s0 │ │</font></div><div class=""><font face="Courier New" class=""> loop1 * Bird │◄──────────────────────►┘ Frr │</font></div><div class=""><font face="Courier New" class=""> │ 2.0.10 │10.100.1.2 10.100.1.1 │</font></div><div class=""><font face="Courier New" class=""> loop2 * │ │ │</font></div><div class=""><font face="Courier New" class=""> 10.100.102.1 │ │ │ │</font></div><div class=""><font face="Courier New" class=""> └──────────────────┘ └─────────────┘</font></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I find that only the first ebgp neighbour comes up and moves to "Established” state whereas the second ebgp neighbour remains in “Idle” state. </div><div class="">However if I restart the bgp neighbour in “Established” state, the other bgp neighbour comes up and moves to “Established” state, but the restarted one remains in Idle state. </div><div class=""><br class=""></div><div class="">Is there any limitation that I can’t have 2 neighbours to the same peer? Or do I have to ensure that the 2 neighbours use different tables?</div><div class=""><br class=""></div><div class="">I have already disabled rp_filter</div><div class="">sysctl -w net.ipv4.conf.all.rp_filter=0</div><div class=""><br class=""></div><div class="">Regards</div><div class="">Prem</div><div class=""><br class=""></div><div class=""><font face="FantasqueSansMono-Regular" class="">Config</font></div><div class=""><font face="FantasqueSansMono-Regular" class="">======</font></div><div class=""><font face="FantasqueSansMono-Regular" class=""><div class="">log "/var/log/trex/bird.log" all;</div><div class="">debug protocols all;</div><div class="">router id 10.100.1.2;</div><div class=""><br class=""></div><div class="">protocol device {</div><div class=""># scan time 10;</div><div class=""> interface "loop1";</div><div class=""> interface "loop2";</div><div class=""> interface "enp5s0";</div><div class="">}</div><div class=""><br class=""></div><div class="">protocol bgp bgp_peer1 {</div><div class=""> local 10.100.101.1 as 65001;</div><div class=""> neighbor 10.100.1.1 as 65500;</div><div class=""> ipv4 {</div><div class=""> import all;</div><div class=""> export all;</div><div class=""> };</div><div class="">}</div><div class=""><br class=""></div><div class="">protocol bgp bgp_peer2 {</div><div class=""> local 10.100.102.1 as 65002;</div><div class=""> neighbor 10.100.1.1 as 65500;</div><div class=""> ipv4 {</div><div class=""> import all;</div><div class=""> export all;</div><div class=""> };</div><div class="">}</div><div class=""><br class=""></div><div class="">protocol static bird_cfg_routes {</div><div class=""> ipv4 {</div><div class=""> export all;</div><div class=""> import all;</div><div class=""> };</div><div class=""> route 200.1.1.1/32 via 10.100.2.100;</div><div class="">}</div><div class=""><br class=""></div><div class="">Logs</div><div class="">====</div><div class=""><div class="">bird> show protocols</div><div class="">Name Proto Table State Since Info</div><div class="">device1 Device --- up 13:05:16.761</div><div class="">bgp_peer1 BGP --- up 13:05:21.497 Established</div><div class="">bgp_peer2 BGP --- start 13:05:16.761 Idle</div><div class="">bird_cfg_routes Static master4 up 13:05:16.761</div><div class="">bird></div><div class="">bird></div><div class="">bird></div><div class="">bird> restart bgp_peer1</div><div class="">bgp_peer1: restarted</div><div class="">bird></div><div class="">bird></div><div class="">bird> show protocols</div><div class="">Name Proto Table State Since Info</div><div class="">device1 Device --- up 13:05:16.761</div><div class="">bgp_peer1 BGP --- start 13:07:13.673 Idle</div><div class="">bgp_peer2 BGP --- up 13:07:18.328 Established</div><div class="">bird_cfg_routes Static master4 up 13:05:16.761</div></div><div class=""><br class=""></div><div class=""><div class="">bird> show interfaces</div><div class="">lo up (index=1)</div><div class=""> MultiAccess AdminUp LinkUp Loopback Ignored MTU=65536</div><div class=""> 127.0.0.1/8 (Preferred, scope host)</div><div class=""> ::1/128 (Preferred, scope host)</div><div class="">mgmt0 up (index=2)</div><div class=""> MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500</div><div class=""> 192.168.121.163/24 (Preferred, scope site)</div><div class=""> fe80::b203:e9ff:fe02:100/64 (Preferred, scope link)</div><div class="">enp5s0 up (index=3)</div><div class=""> MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500</div><div class=""> 10.100.1.2/24 (Preferred, scope site)</div><div class="">enp6s0 up (index=4)</div><div class=""> MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500</div><div class=""> 10.100.2.1/24 (Preferred, scope site)</div><div class=""> fc00:64:2::1/120 (Preferred, scope site)</div><div class=""> fe80::b203:e9ff:fe02:102/64 (Preferred, scope link)</div><div class="">loop1 up (index=5)</div><div class=""> MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500</div><div class=""> 10.100.101.1/24 (Preferred, scope site)</div><div class=""> fe80::78f9:91ff:fe2c:83ed/64 (Preferred, scope link)</div><div class="">loop2 up (index=6)</div><div class=""> MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500</div><div class=""> 10.100.102.1/24 (Preferred, scope site)</div><div class=""> fe80::a4fc:34ff:fefd:11ce/64 (Preferred, scope link)</div><div class="">bird></div><div class="">bird></div><div class="">bird> show route all</div><div class="">Table master4:</div><div class="">200.1.1.1/32 unicast [bird_cfg_routes 13:05:16.761] * (200)</div><div class=""> via 10.100.2.100 on enp6s0</div><div class=""> Type: static univ</div><div class="">bird></div></div><div class=""><br class=""></div><div class="">Debugs</div><div class="">======</div><div class=""><div class="">2023-01-21 13:05:16.761 <TRACE> device1: Initializing</div><div class="">2023-01-21 13:05:16.761 <TRACE> bgp_peer1: Initializing</div><div class="">2023-01-21 13:05:16.761 <TRACE> bgp_peer2: Initializing</div><div class="">2023-01-21 13:05:16.761 <TRACE> bird_cfg_routes: Initializing</div><div class="">2023-01-21 13:05:16.761 <TRACE> device1: Starting</div><div class="">2023-01-21 13:05:16.761 <TRACE> device1: Scanning interfaces</div><div class="">2023-01-21 13:05:16.761 <TRACE> device1: State changed to up</div><div class="">2023-01-21 13:05:16.761 <TRACE> bgp_peer1: Starting</div><div class="">2023-01-21 13:05:16.761 <TRACE> bgp_peer1: State changed to start</div><div class="">2023-01-21 13:05:16.761 <TRACE> bgp_peer2: Starting</div><div class="">2023-01-21 13:05:16.761 <TRACE> bgp_peer2: State changed to start</div><div class="">2023-01-21 13:05:16.761 <TRACE> bird_cfg_routes: Starting</div><div class="">2023-01-21 13:05:16.761 <TRACE> bird_cfg_routes: State changed to up</div><div class="">2023-01-21 13:05:16.761 <TRACE> bird_cfg_routes.ipv4 > added [best] 200.1.1.1/32 unicast</div><div class="">2023-01-21 13:05:16.761 <INFO> Started</div><div class="">2023-01-21 13:05:16.762 <TRACE> bgp_peer1: Started</div><div class="">2023-01-21 13:05:16.762 <TRACE> bgp_peer1: Connect delayed by 5 seconds</div><div class="">2023-01-21 13:05:21.495 <TRACE> bgp_peer1: Connecting to 10.100.1.1 from local address 10.100.101.1</div><div class="">2023-01-21 13:05:21.496 <TRACE> bgp_peer1: Connected</div><div class="">2023-01-21 13:05:21.496 <TRACE> bgp_peer1: Sending OPEN(ver=4,as=65001,hold=240,id=0a640102)</div><div class="">2023-01-21 13:05:21.497 <TRACE> bgp_peer1: Got OPEN(as=65500,hold=30,id=192.168.121.230)</div><div class="">2023-01-21 13:05:21.497 <TRACE> bgp_peer1: Sending KEEPALIVE</div><div class="">2023-01-21 13:05:21.497 <TRACE> bgp_peer1: Got KEEPALIVE</div><div class="">2023-01-21 13:05:21.497 <TRACE> bgp_peer1: BGP session established</div><div class="">2023-01-21 13:05:21.497 <TRACE> bgp_peer1: State changed to up</div><div class="">2023-01-21 13:05:21.497 <TRACE> bgp_peer1.ipv4 < added 200.1.1.1/32 unicast</div><div class="">2023-01-21 13:05:23.049 <TRACE> bgp_peer1: Got UPDATE</div><div class="">2023-01-21 13:05:23.049 <TRACE> bgp_peer1: Got END-OF-RIB</div><div class="">2023-01-21 13:05:23.049 <TRACE> bgp_peer1: Sending UPDATE</div><div class="">2023-01-21 13:05:23.049 <TRACE> bgp_peer1: Sending END-OF-RIB</div><div class="">2023-01-21 13:05:30.958 <TRACE> bgp_peer1: Sending KEEPALIVE</div><div class="">2023-01-21 13:05:31.499 <TRACE> bgp_peer1: Got KEEPALIVE</div><div class="">2023-01-21 13:05:38.689 <TRACE> bgp_peer1: Sending KEEPALIVE</div><div class="">2023-01-21 13:05:41.499 <TRACE> bgp_peer1: Got KEEPALIVE</div><div class="">2023-01-21 13:05:46.842 <TRACE> bgp_peer1: Sending KEEPALIVE</div><div class="">2023-01-21 13:05:51.499 <TRACE> bgp_peer1: Got KEEPALIVE</div><div class="">2023-01-21 13:05:54.864 <TRACE> bgp_peer1: Sending KEEPALIVE</div><div class="">2023-01-21 13:06:01.499 <TRACE> bgp_peer1: Got KEEPALIVE</div><div class="">2023-01-21 13:06:03.759 <TRACE> bgp_peer1: Sending KEEPALIVE</div><div class="">2023-01-21 13:06:11.499 <TRACE> bgp_peer1: Got KEEPALIVE</div><div class="">2023-01-21 13:06:11.843 <TRACE> bgp_peer1: Sending KEEPALIVE</div><div class="">2023-01-21 13:06:16.764 <TRACE> device1: Scanning interfaces</div></div><div class="">...</div><div class="">...</div><div class="">...</div><div class=""><div class="">2023-01-21 13:07:13.673 <INFO> Restarting protocol bgp_peer1</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer1: Shutting down</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer1: Shutdown requested</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer1: State changed to stop</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer1: BGP session closed</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer1: Sending NOTIFICATION(code=6.4)</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer1: Down</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer1: State changed to flush</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer2: Started</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer2: Connect delayed by 5 seconds</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer1: State changed to down</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer1: Starting</div><div class="">2023-01-21 13:07:13.673 <TRACE> bgp_peer1: State changed to start</div><div class="">2023-01-21 13:07:16.761 <TRACE> device1: Scanning interfaces</div><div class="">2023-01-21 13:07:18.326 <TRACE> bgp_peer2: Connecting to 10.100.1.1 from local address 10.100.102.1</div><div class="">2023-01-21 13:07:18.327 <TRACE> bgp_peer2: Connected</div><div class="">2023-01-21 13:07:18.327 <TRACE> bgp_peer2: Sending OPEN(ver=4,as=65002,hold=240,id=0a640102)</div><div class="">2023-01-21 13:07:18.328 <TRACE> bgp_peer2: Got OPEN(as=65500,hold=30,id=192.168.121.230)</div><div class="">2023-01-21 13:07:18.328 <TRACE> bgp_peer2: Sending KEEPALIVE</div><div class="">2023-01-21 13:07:18.328 <TRACE> bgp_peer2: Got KEEPALIVE</div><div class="">2023-01-21 13:07:18.328 <TRACE> bgp_peer2: BGP session established</div><div class="">2023-01-21 13:07:18.328 <TRACE> bgp_peer2: State changed to up</div><div class="">2023-01-21 13:07:18.328 <TRACE> bgp_peer2.ipv4 < added 200.1.1.1/32 unicast</div><div class="">2023-01-21 13:07:19.880 <TRACE> bgp_peer2: Got UPDATE</div><div class="">2023-01-21 13:07:19.880 <TRACE> bgp_peer2: Got END-OF-RIB</div><div class="">2023-01-21 13:07:19.880 <TRACE> bgp_peer2: Sending UPDATE</div><div class="">2023-01-21 13:07:19.880 <TRACE> bgp_peer2: Sending END-OF-RIB</div><div class="">2023-01-21 13:07:27.298 <TRACE> bgp_peer2: Sending KEEPALIVE</div><div class="">2023-01-21 13:07:28.329 <TRACE> bgp_peer2: Got KEEPALIVE</div><div class="">2023-01-21 13:07:36.478 <TRACE> bgp_peer2: Sending KEEPALIVE</div></div></font></div></div></body></html>