Re: BGP communities

2020-04-06 Thread Alexander Zubkov
I think you have check for (0,3) ~ bgp_community when you piping towards as3 peer. This: export where bgp_out(2); Looks like to be for piping towards as2 peer. And this filter should pass such communities of course. On Mon, Apr 6, 2020 at 10:32 PM Fabiano D'Agostino wrote: > > Thank you I was abl

Re: bird 2.0: show only IPv4 or IPv6 routes from birdc

2020-04-06 Thread Ondrej Zajicek
On Mon, Apr 06, 2020 at 01:39:45PM -0700, Craig Leres wrote: > I also found: > > show route table master4 > show route table master6 > > I'd rather not depend on the names of default routing tables. I suppose I > could explicitly import the kernel routes into v4 and v6 tables but routing

bird 2.0: show only IPv4 or IPv6 routes from birdc

2020-04-06 Thread Craig Leres
We've been using bird 1.6.8 to advertise nullzero routes from a FreeBSD box to our routers for awhile. (We use quagga to the same for IPv4.) We're in the process of upgrading to 2.0.7 and will use bird for IPv4 and IPv6. I'm so far unable to come up with good ways of dumping only IPv4 or IPv4

Re: BGP communities

2020-04-06 Thread Fabiano D'Agostino
Thank you I was able to solve in this way: My testing network is made up of router server (as1), router2(as2), router3 (as3). The goal: as2's routes don't have to be announced to as3 route server conf: function bgp_out(int peerID) { if(0,peerID) ~ bgp_community then return false; return true;

Re: BGP communities

2020-04-06 Thread Alexander Zubkov
You have to configure export filter with something like: bgp_community.add((x,y)); This is for community written as x:y on most hardware routers. On Mon, Apr 6, 2020 at 8:57 PM Fabiano D'Agostino wrote: > > Thanks for your helping, > How do I set in my router (AS2) the community to the exported r

Re: BGP communities

2020-04-06 Thread Fabiano D'Agostino
Thanks for your helping, How do I set in my router (AS2) the community to the exported routes? I don't understand this. Il giorno lun 6 apr 2020 alle ore 20:26 Alexander Zubkov ha scritto: > OK. So you have some route x.x.x.x/y that you receive from AS2 by > protocol bgp pb_0002_as2? > > 1) it

Re: BFD state stuck in INIT

2020-04-06 Thread Nisha Nair
Hello all, Any suggestions or help on this issue? Thanks in advance, Nisha On Fri, Apr 3, 2020 at 12:45 PM Nisha Nair wrote: > Hello all, > > I am using bird 1.6.3 on OpenWRT to use BFD. This is our setup: > > Ubuntu m/c(BIRD running, BFD configured, interface enp2s0) > --

Re: BGP communities

2020-04-06 Thread Alexander Zubkov
OK. So you have some route x.x.x.x/y that you receive from AS2 by protocol bgp pb_0002_as2? 1) it is received via bgp pb_0002_as2 into table t_0002_as2 2) it is piped from table t_0002_as2 to master4 with filter f_export_to_master (missing in your config) 3) it is piped from table master4 to t_000

Re: BGP communities

2020-04-06 Thread Fabiano D'Agostino
This is the bird.conf of the route server: https://pastebin.com/qwp6nBtz This is the bird.conf of one router: https://pastebin.com/trwgKG92 Why does AS3 still receive routes from AS2? What am I missing? Thanks, Il giorno lun 6 apr 2020 alle ore 18:13 Alexander Zubkov ha scritto: > It is really

Re: BGP communities

2020-04-06 Thread Alexander Zubkov
It is really hard to guess what routes you have actually in your bird's table and how your bird is configured. > I just edited the bird.conf of the route server, should I also edit the > bird.conf of the routers which are peering with the route server? Filters on peers can affect only communitie

Re: BGP communities

2020-04-06 Thread Fabiano D'Agostino
Does 'show route where' exist as command? Because I have syntax error. Anyway I set up my route server as here: https://www.slideshare.net/apnic/bird-routing-daemon But I am having the problem described here: https://bird.network.cz/pipermail/bird-users/2010-September/001620.html I just edited the

Re: BGP communities

2020-04-06 Thread Alexander Zubkov
Have you tried to check that in cli like: show route where bgp_out(...) And check that required route has all needed communities: show route all x.x.x.x/y On Mon, Apr 6, 2020 at 5:35 PM Fabiano D'Agostino wrote: > > Hey, > thank you! I think I am having the same problem they had here: > https://b

Re: BGP communities

2020-04-06 Thread Alexander Zubkov
bgp_community is a special variable that contains route attribute for bgp routes: https://bird.network.cz/?get_doc&v=20&f=bird-6.html#bgp-attr On Mon, Apr 6, 2020 at 5:18 PM Cybertinus wrote: > > Hello Fabiano, > > > BGP Communities are basically tags you add to a prefix that is received from, >

Re: BGP communities

2020-04-06 Thread Fabiano D'Agostino
Hey, thank you! I think I am having the same problem they had here: https://bird.network.cz/pipermail/bird-users/2010-September/001620.html But I didn't understand how they solved. Regards, Fabiano Il giorno lun 6 apr 2020 alle ore 17:16 Cybertinus ha scritto: > Hello Fabiano, > > > BGP Commun

Re: BGP communities

2020-04-06 Thread Cybertinus
Hello Fabiano, BGP Communities are basically tags you add to a prefix that is received from, or send to, a peer. And in Bird you can do whatever you want with these communities. A community by itself has no meaning and has no influence on the routing decision whatsoever. It is the meaning you ad

Re: BGP communities

2020-04-06 Thread Fabiano D'Agostino
and how these kind of checks are handled? if (myas,peeras) ~ bgp_community what is bgp_community? Thanks, Il giorno lun 6 apr 2020 alle ore 15:32 Fabiano D'Agostino < fabiano.dagostin...@gmail.com> ha scritto: > Thank you, but "if the route does not come from BGP then false" > here I have: > pr

Re: [BGP] MRAI connection-based implementation review

2020-04-06 Thread Maria Matějka
Hello! Use this list to send a patch set as it comes from git format-patch. You can also use git send-email to send it. Maria On April 6, 2020 12:22:22 PM GMT+02:00, Mattia Milani wrote: >Hello to everyone, in the past months I have implemented the MRAI timer > >in the BGP protocol and I woul

Re: BGP communities

2020-04-06 Thread Fabiano D'Agostino
Thank you, but "if the route does not come from BGP then false" here I have: protocol pipe a { table master; mode transparent; peer table a; import all; export where bgp_out(x); => this becomes false, what does this mean? #export all; } Thanks, Il giorno lun 6 apr 2020 all

[BGP] MRAI connection-based implementation review

2020-04-06 Thread Mattia Milani
Hello to everyone, in the past months I have implemented the MRAI timer in the BGP protocol and I would like to ask you guys how can I submit this code in order to receive a review form someone more expert than me? My implementation is on a connection-based approach timer and now I'm working o

Re: BGP communities

2020-04-06 Thread Bernd Naumann
On 05.04.20 23:08, Fabiano D'Agostino wrote: Good evening, could someone explain me the meaning of these lines? function bgp_out(int peeras) { if ! (source = RTS_BGP ) then return false; if peeras > 65535 then return true; ### communities do not support AS32 if (0,peeras) ~ bgp_community then re