Coder Social home page Coder Social logo

Comments (9)

Ibrahinv avatar Ibrahinv commented on June 13, 2024 2

Thank you very much, with this last change the bgp peer remains in UP. Excellent support ¡

from mrtparse.

Ibrahinv avatar Ibrahinv commented on June 13, 2024 1

I share it. @t2mune
1.-
home@ubuntu:/opt/exabgp-4.2.6$ exabgp --ver
ExaBGP : 4.2.16
Python : 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0]
Uname : Linux ubuntu 5.11.0-38-generic #42~20.04.1-Ubuntu SMP Tue Sep 28 20:41:07 UTC 2021 x86_64
Root : /home/home/.local
home@ubuntu:/opt/exabgp-4.2.6$


2.-ExaBGP configuration

template {
neighbor cogent {
local-as 200;
family {
ipv4 unicast;
ipv6 unicast;
}
}
}

neighbor 192.168.1.112 {
inherit cogent;
router-id 192.168.1.111;
local-address 192.168.1.111;
peer-as 22000;
#graceful-restart;

auto-flush false;
group-updates true;
}

process fullbgp {
#run /usr/bin/python3 /opt/exabgp-4.2.6/fullbgptable.py;
run /usr/bin/pypy /opt/exabgp-4.2.6/fullbgptable_2.py;
encoder text;

Full BGP table was get it after apply:
mrt2exabgp -G -P -4 192.168.1.111 ./latest-bview.gz > fullbgptable_2.py
sed -i -e "s/as-path \[/as-path [200 /" fullbgptable_2.py

3.- I tested in IoS-XR version
cisco IOS XRv Series

I tried in Junos too:
Model: vmx
Junos: 21.2R1.10

4.-
RP/0/0/CPU0:ios#sh run router bgp
router bgp 22000
bgp router-id 100.100.100.1
address-family ipv4 unicast
!
address-family ipv6 unicast
!
neighbor 192.168.1.111
remote-as 200
address-family ipv4 unicast
route-policy permit-all in
route-policy permit-all out

Thanks a lot.

from mrtparse.

t2mune avatar t2mune commented on June 13, 2024 1

@Ibrahinv

I was able to reproduce it.
No KEEPALIVE message are sent from ExaBGP, and BGP session is down by sending NOTIFICATION message (Hold Timer Expired) from IOS-XR.
To fix it, environment value exabgp.api.ack needs to be False when running ExaBGP.

env exabgp.api.ack=false exabgp exabgp.conf
RP/0/0/CPU0:ios#show bgp summary 
Tue Oct 26 19:10:09.459 UTC
BGP router identifier 100.100.100.1, local AS number 22000
BGP generic scan interval 60 secs
Non-stop routing is enabled
BGP table state: Active
Table ID: 0xe0000000   RD version: 6183209
BGP main routing table version 6183209
BGP NSR Initial initsync version 2 (Reached)
BGP NSR/ISSU Sync-Group versions 0/0
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.


Process       RcvTblVer   bRIB/RIB   LabelVer  ImportVer  SendTblVer  StandbyVer
Speaker         6183209    6183209    6183209    6183209     6183209           0

Neighbor        Spk    AS MsgRcvd MsgSent   TblVer  InQ OutQ  Up/Down  St/PfxRcd
192.168.1.111     0   200  414306      96  6183209    0    0 00:28:07     887057

RP/0/0/CPU0:ios#show route summary
Tue Oct 26 19:10:12.389 UTC
Route Source                     Routes     Backup     Deleted     Memory(bytes)
connected                        2          0          0           320          
local                            2          0          0           320          
dagr                             0          0          0           0            
bgp 22000                        887057     0          0           141929120    
Total                            887061     0          0           141929760    

RP/0/0/CPU0:ios#

@thomas-mangin

Thanks again !!

from mrtparse.

t2mune avatar t2mune commented on June 13, 2024

Hi,

Thank you for using mrtparse !!

There seems to be a problem with AS-Path advertised by ExaBGP.
If you use eBGP, you must include AS 200 in AS-Path as described in RFC4271.
To do so, you need to edit as follows:

sed -i -e "s/as-path \\[/as-path [200 /" fullbgptable.py

from mrtparse.

t2mune avatar t2mune commented on June 13, 2024

If you can't resolve next-hop advertised, you also need to override next-hop like below:

mrt2exabgp -G -P -4 192.168.1.111 ./latest-bview.gz > fullbgptable.py.

from mrtparse.

Ibrahinv avatar Ibrahinv commented on June 13, 2024

Yess ¡¡ whith both I can get announce to router and I already got to see the prefixes in the router RIB. However I only receive about 331K prefixes, but then the exaBGP server stops and then the BGP peer goes down.
Is this a bug? How to make to keep it in UP for a longer time?

from mrtparse.

thomas-mangin avatar thomas-mangin commented on June 13, 2024

It is probably due as your session is set up with treat-as-withdraw, so the bad routes will be discarded (instead of tearing the session down). Just guessing.

👋 @t2mune

was this code written for ExaBGP 3 or 4? - I am asking due to this:
https://github.com/Exa-Networks/exabgp/wiki/Migration-from-3.4-to-4.0

from mrtparse.

t2mune avatar t2mune commented on June 13, 2024

@Ibrahinv

Can you share the following information? I try to reproduce.

  1. ExaBGP version
  2. ExaBGP configuration
  3. IOS-XR version
  4. IOS-XR configuration

from mrtparse.

t2mune avatar t2mune commented on June 13, 2024

@thomas-mangin

Thank you for your support !!
I didn't care about the difference between versions:cry:, so I'd like to read the document.

from mrtparse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.