Comments (9)
Thank you very much, with this last change the bgp peer remains in UP. Excellent support ¡
from mrtparse.
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.
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#
Thanks again !!
from mrtparse.
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.
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.
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.
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.
Can you share the following information? I try to reproduce.
- ExaBGP version
- ExaBGP configuration
- IOS-XR version
- IOS-XR configuration
from mrtparse.
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)
- potential bug: mrt2exabgp.py with BGP4MP_MESSAGE HOT 4
- Enhancement: mrt2exabgp.py (-A|-G) should finish by itself HOT 5
- ExaBGP API grouping format syntax change HOT 6
- mrt2exabgp bails out with CRC error HOT 3
- mrt2bgpdump.py crashes with Updates messages HOT 3
- module 'signal' has no attribute 'SIGPIPE' on jupyter notebook , python 3.6 on windows HOT 3
- TypeError: object of type 'NoneType' has no len() in a Route Views update file HOT 5
- MRTPARSE to exabgp config hangs when using -G & -P flags HOT 1
- IPv4 addresses decoded as IPv6 in print_all.py HOT 3
- Bug in __init__.py line 930 HOT 2
- Error parsing RIPE MRT data HOT 2
- Python3 Error in mrtparse HOT 9
- Key error when converting MRT to JSON HOT 4
- Error in Example mrt2bgpdump HOT 1
- mrt2exabgp mrt2bgpdump key issue for prefix length HOT 4
- AttributeError: 'Reader' object has no attribute 'mrt'
- Replace `val_dict` by a better solution HOT 3
- Extended NLRI Encodings HOT 4
- Upload to pypi HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mrtparse.