Re: [PATCH] bgp: Implement RFC 9234

2022-07-11 Thread Ondrej Zajicek
On Tue, Jun 28, 2022 at 12:37:08PM +0300, Eugene Bogomazov wrote: > Hello everyone, > > The current changes were sufficient to add the described AFI/SAFI check. > Role/OTC rules now only apply to the unicast session. I've checked this on > a stand with a mixture of multicast and unicast sessions

Re: [PATCH] bgp: Implement RFC 9234

2022-06-27 Thread Ondrej Zajicek
On Mon, Jun 27, 2022 at 07:07:53PM +0200, Maria Matejka wrote: > Hello! > > On 6/27/22 1:21 PM, Eugene Bogomazov wrote: > > Hi, > > > > I checked BIRD v2.0.10 and didn't find the channel argument in > > bgp_preexport. So AFI/SAFI checks still can't be added there. When will > > it appear? And

Re: OSPF & merge external on

2022-06-25 Thread Ondrej Zajicek
On Sat, Jun 25, 2022 at 10:00:14PM +0300, Mikhail Mayorov wrote: > Hello! > > I would like use ECMP for 0.0.0.0/0. This route announced on 10.10.97.33, > 10.10.97.72, 10.10.97.73 as LSA5. Below I have given the output of the > command on the router 10.10.97.67. > I expected to see a default route

Re: [PATCH] bgp: Implement RFC 9234

2022-06-14 Thread Ondrej Zajicek
On Tue, Jun 14, 2022 at 01:35:36PM +0300, Eugene Bogomazov wrote: > TL;DR: What are the best ways to include AFI/SAFI channel check during > attribute creation? Hi > RFC 9234 specifically clarifies that it can only be applied on IPv4/IPv6 > unicast sessions. On all other sessions the OTC

Re: Is there a way to merge communities from the same prefixes?

2022-06-07 Thread Ondrej Zajicek
On Mon, Jun 06, 2022 at 04:20:19AM -0700, Valery Lutoshkin wrote: > Hi all! > > > I use bird2 (2.0.9) as RS for BGP prefix aggregation - several peers send > me their prefixes, I aggregate them and send the result to the system. > > > But there is an obvious issue - when peers send me the same

Re: Feature request: CARP awareness in BIRD?

2022-06-03 Thread Ondrej Zajicek
On Thu, Jun 02, 2022 at 04:16:53PM +0200, Thomas Steen Rasmussen wrote: > Hello :) > > I am using BIRD on FreeBSD and it is working okay, apart from missing CARP > awareness. I am wondering if anyone knows if work has been done in this area > already? > > Ideally BIRD would understand CARP

Re: [PATCH] bgp: Implement RFC 9234

2022-06-02 Thread Ondrej Zajicek
On Tue, May 31, 2022 at 02:38:07PM +0300, Eugene Bogomazov wrote: > Hello, > > RFC 9234 provides a new mechanism for route leak detection and prevention. > > In the attachment you can find a patch which introduces this functionality > for BIRD 2.0.9. Hello Thanks for the patch, i will check it

Re: Using Babel.router_id in filters

2022-05-30 Thread Ondrej Zajicek
On Mon, May 30, 2022 at 11:57:31AM -0300, James Oakley wrote: > Hi, > > I would like to write a filter for a Babel protocol where I set a value based > on the Babel router ID. I can see Babel.router_id in the route attributes, > but > it does not look like this is exposed to filters. Only

Re: BIRD 3.0-alpha0

2022-05-30 Thread Ondrej Zajicek
On Fri, May 27, 2022 at 12:07:48PM -0300, Douglas Fischer wrote: > During your talk(on video) I thought that splitting conf files, mostly > variables like prefix-list and AS-Path Regex that are unique by each peer, > cloud be a way to reduce the workload of parsing configs on reconfiguration. > >

Re: Way to store ROA info so we can accept but view?

2022-05-30 Thread Ondrej Zajicek
On Mon, May 30, 2022 at 02:52:21PM +0200, Job Snijders wrote: > Hi Douglas, > > Rejecting a route *and* tagging it with a community is not what causes > problems: because you are *rejecting* the route (for example because > bogon, or rpki-invalid), there is no routing churn problem further >

Re: [PATCH] RPKI: Display cache server port on show protocol

2022-05-27 Thread Ondrej Zajicek
On Mon, May 09, 2022 at 08:21:27PM +0200, Luiz Amaral wrote: > Hello, > > Recently I needed to check the address and port for my cache server, > only to find out that the "show protocol all rpki1" output omitted the port. > > This small patch appends the port after the cache server address on

Re: [PATCH] RPKI: Implement VRF support

2022-05-27 Thread Ondrej Zajicek
On Mon, May 09, 2022 at 08:15:06PM +0200, Luiz Amaral wrote: > Hello, > > I made a small patch that adds VRF support to the RPKI protocol. I did > some basic testing with and without VRF and it worked as expected. > Please let me know if I missed anything. Hello Thanks, merged. -- Elen sila

Re: [PATCH] babel: Don't try to remove multicast seqno request objects from neighbour list

2022-05-26 Thread Ondrej Zajicek
On Thu, May 12, 2022 at 02:12:13PM +0200, Toke Høiland-Jørgensen wrote: > The Babel seqno request code keeps track of which seqno requests are > outstanding for a neighbour by putting them onto a per-neighbour list. When > reusing a seqno request, it will try to remove this node, but if the seqno

Re: [PATCH] Netlink: Propagate ecmp nexthop weight to kernel for inet6 routes

2022-05-22 Thread Ondrej Zajicek
On Sun, May 22, 2022 at 10:28:12PM +0200, d...@darkboxed.org wrote: > After looking at this more I realise now how bird is splitting multiple > ipv6 nexthops into sequences of route updates for the same prefix. > > Consequently the code doing this should also be removed. Though it seems it >

Re: Add ip rule support

2022-05-02 Thread Ondrej Zajicek
On Mon, May 02, 2022 at 05:06:48PM +0800, Huiyuze Zhi wrote: > Hi there, > I'm having some issues with using bird2 to carry downstream. I have > two different types of upstream. One can take downstream and the other > cannot. I use bgp_large_community (141011, 3, xxx) to mark every prefix

Re: [PATCH] babel: Send out low-interval hello on shutdown

2022-04-26 Thread Ondrej Zajicek
On Sat, Apr 23, 2022 at 10:31:26PM +0200, Toke Høiland-Jørgensen wrote: > Ondrej Zajicek writes: > > BTW, when we added CI tests for Babel authentication, we noticed that it > > has rather slow convergence after reconfiguration. The reason is that > > when authentication

Re: [babel] RFT: Babel RTT extension in Bird

2022-04-26 Thread Ondrej Zajicek
On Fri, Apr 22, 2022 at 08:06:24PM +0200, Juliusz Chroboczek wrote: > > Did not yet checked the code how smoothing is done here, but seems to me > > that considering: > > > > 1) There is baseline RTT from distance / speed of propagation > > 2) There is one-side noise from congestion > > 3) The

Re: BGP selection

2022-04-26 Thread Ondrej Zajicek
On Tue, Apr 26, 2022 at 10:57:16AM +0800, Alexandre Corso wrote: > Hello, > > I found a strange behaviour on my BIRD route reflector: > > BIRD version: 2.0.7 > Topology: > -- vrr01_ny2_nyc > RR1|| > -- vrr01_pa4_par CORE1 > > > I have one route

Re: RFT: Babel RTT extension in Bird

2022-04-22 Thread Ondrej Zajicek
On Fri, Apr 22, 2022 at 01:48:46AM +0200, Toke Høiland-Jørgensen wrote: > Hi everyone > > I've implemented the Babel RTT extension specified in > draft-ietf-babel-rtt-extension in Bird. I've tested that it talks to > babeld on a single link and that the two implementations agree on each > others'

Re: [PATCH] Doc: fix mating -> matching in flowspec section

2022-04-22 Thread Ondrej Zajicek
Thanks, merged. On Wed, Apr 20, 2022 at 11:26:06AM +0200, Vincent Bernat wrote: > --- > doc/bird.sgml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/doc/bird.sgml b/doc/bird.sgml > index 9c4a6f68a447..1580facd8155 100644 > --- a/doc/bird.sgml > +++ b/doc/bird.sgml > @@

Re: [PATCH] babel: Send out low-interval hello on shutdown

2022-04-22 Thread Ondrej Zajicek
On Wed, Apr 20, 2022 at 01:43:21AM +0200, Toke Høiland-Jørgensen wrote: > When shutting down a Babel instance we send a wildcard retraction to make > sure all peers can quickly switch to other route origins. Add another small > optimisation borrowed from babeld: sending a Hello message (along with

Re: bgp keepalive & hold timers

2022-04-19 Thread Ondrej Zajicek
On Mon, Apr 18, 2022 at 04:43:32AM +0200, Alexander Zubkov wrote: > For example bird can check that the hold timer proposed by a peer is > at least 2 times greater than the local keepalive timer as in the > attached patch. Hi Thanks for the patch. You are right, it would be a good idea to check

Re: [PATCH] krt: Dump routing tables separetely on linux to avoid congestion

2022-04-19 Thread Ondrej Zajicek
On Sat, Apr 16, 2022 at 07:28:59PM +0200, Toke Høiland-Jørgensen wrote: > Daniel Gröber writes: > > > When dumping the routing table bird currently doesn't set the rtm_table > > netlink field to select any particular one but rather wants to get all at > > once. > > > > This can be problematic

Re: [PATCH] babel: Fix compilation when LOCAL_DEBUG is set in packets.c

2022-04-19 Thread Ondrej Zajicek
On Tue, Apr 19, 2022 at 01:24:09AM +0200, Toke Høiland-Jørgensen wrote: > The debug output was not updated with the rest of the code, so packets.c > fails to compile if LOCAL_DEBUG is set. Thanks, will merge. > > Signed-off-by: Toke Høiland-Jørgensen > --- > proto/babel/packets.c | 2 +- > 1

Re: bgp link bandwidth extended community question

2022-04-19 Thread Ondrej Zajicek
On Tue, Apr 19, 2022 at 12:45:29AM -0700, gautham devalapalli wrote: > Hello, > > I am using BIRD 2.0.8 to establish a bgp session with a nexus switch. I am > trying to set bgp ext community link bandwidth. Since this is not > explicitly supported I am following the thread below to set it as

Re: Scaling BFD support

2022-04-01 Thread Ondrej Zajicek
On Fri, Apr 01, 2022 at 08:44:50AM -0300, Douglas Fischer wrote: > The question raised by colleague Irene reminded me of a topic that may or > may not be the focus of BIRD's development. > > I imagine that the biggest supporters of SMP/Multi-Core/Thread-Safe > evolution on BIRD are Operators of

Re: BFD: Socket Error Operation not permitted on bird 2.0.8

2022-04-01 Thread Ondrej Zajicek
On Fri, Apr 01, 2022 at 10:48:19AM +0200, Irene Lalioti wrote: > Hello dear community, > > I would like to pose a question regarding the error I receive concerning BFD > : socket operation not permitted. > > The bfd is configured with multiplier 3; interval 300ms; idle tx interval 1 > sec; Hi

Re: Bird setting TTL to 1 at the end of a passive BGP session opening

2022-04-01 Thread Ondrej Zajicek
On Fri, Apr 01, 2022 at 03:57:12PM +0200, Alexander Zubkov wrote: > Not exactly. Yes, the session is handled by the kernel. But it should > be possible to set the TTL before listening to the socket. Looks like > bird just do not use the TTL for the listening BGP sessions before it > gets incoming

Re: [PATCH] Filter: Add support for setting TCP congestion control algorithm

2022-03-25 Thread Ondrej Zajicek
On Thu, Mar 17, 2022 at 05:32:02PM -0600, Trisha Biswas wrote: > Add support for setting the TCP congestion control algorithm per > destination by > > modifying route attributes in BIRD. Previously supported kernel route > attributes > > in BIRD were all integer values. Subsequently, this also

Re: Filter based on BGP protocol status ...

2022-03-25 Thread Ondrej Zajicek
On Thu, Mar 24, 2022 at 01:46:26PM +, Xavier Trilla wrote: > Hi Alexander, > > Ok, I'm trying to wrap my head around this, so the idea is to filter based on > route reachability, forcing recursive routes? I agree with Alexander, that is a pretty elegant way to solve this issue. > >Add

Re: [PATCH] Lib: accept 240.0.0.0/4 as a valid range

2022-03-16 Thread Ondrej Zajicek
On Wed, Mar 16, 2022 at 08:52:00PM +0100, Vincent Bernat wrote: > ❦ 16 March 2022 20:21 +01, Ondrej Zajicek: > > > Updated BIRD to accept 240/4 as 'site' scope. We went with slightly > > different patch: > > > > https://gitlab.nic.cz/labs/bird/-/commit/269bfff9bf

Re: [PATCH] Lib: accept 240.0.0.0/4 as a valid range

2022-03-16 Thread Ondrej Zajicek
On Mon, Mar 14, 2022 at 10:02:25AM +0100, Vincent Bernat wrote: > 240.0.0.0/4 is marked as reserved and considered invalid by BIRD. At > work, we are using this range internally since all RFC 1918 are full > and 100.64.0.0/10 is already used too. BIRD complains loudly for each > interface using

Re: operator to prepend bgp path multiple times

2022-03-14 Thread Ondrej Zajicek
On Mon, Mar 14, 2022 at 05:30:48PM +0100, Alexander Zubkov wrote: > Hello, > > Wow, I see in the next branch we now have recursive functions > supported. So this function became easier to implement in a config. At > least I do not want to have it out of the box now. Hi Yes, i recently immersed

Re: birdc configure exits with 0 on error

2022-03-11 Thread Ondrej Zajicek
On Fri, Mar 11, 2022 at 07:48:18AM +0100, Vincent Bernat wrote: > ❦ 11 March 2022 04:07 +01, Ondrej Zajicek: > > > With this, we likely do not need "ExecReload=/usr/sbin/bird -p" from your > > patch? > > (But the remaining changes for RPM are ok.) > >

Re: birdc configure exits with 0 on error

2022-03-10 Thread Ondrej Zajicek
On Thu, Mar 10, 2022 at 07:38:56PM +0100, Vincent Bernat wrote: > Hey! > > "birdc configure" (or any command in fact) exits with 0 on error. This > is a bit annoying as when using "systemctl reload bird", we get no > notification there is an error. > > Looking at the source code, it seems there

Re: Can pagination be disabled on the Bird console?

2022-03-09 Thread Ondrej Zajicek
On Wed, Mar 09, 2022 at 01:44:05PM +, Adrian Brooks wrote: > Hello, > > Is it possible to configure the Bird console so that the output isn't > interrupted with '-More-' statements please? (similar to the Cisco 'terminal > length 0' command) > > I'm using Expect in a Python script to

Re: constant for empty prefix set

2022-03-04 Thread Ondrej Zajicek
On Wed, Feb 23, 2022 at 07:09:33PM +0100, Alexander Zubkov wrote: > On Wed, Feb 23, 2022, 17:43 Ondrej Zajicek wrote: > > > On Wed, Feb 23, 2022 at 03:46:53PM +0100, Alexander Zubkov wrote: > > > Updated patch. Again full and incremental. > > > > Thanks, will l

Re: flowspec route specification

2022-02-27 Thread Ondrej Zajicek
On Mon, Feb 28, 2022 at 02:02:58AM +0200, Alexander Shikov wrote: > Hello! > > I'm trying to inject flowspec routes from bird to Juniper MX box: > > route flow4 { dst 109.68.40.15/32; proto 17; dport 53; } { > bgp_ext_community.add( (generic, 0x8006, 0x0 ) ); > }; > > route flow4 {

Re: BIRD version 2.0.9

2022-02-27 Thread Ondrej Zajicek
On Sun, Feb 27, 2022 at 04:44:10AM -0500, Ross Tajvar wrote: > Thanks for all your hard work! > > When can we expect to see packages built? I've been using the OBS > repository, but the packages there are still 2.0.8: > https://build.opensuse.org/package/show/home:CZ-NIC:bird-latest/bird Hi I

Re: 2.0.9 protocol babel issue

2022-02-26 Thread Ondrej Zajicek
On Tue, Feb 22, 2022 at 09:24:17PM +0800, Aihui Sun wrote: > ip link add dev gz-hk type wireguard > wg setconf gz-hk /etc/wireguardconf/gz-hk.conf > ip link set gz-hk up > ip addr add fdc8:dc88:ee11:213::192/128 peer fdc8:dc88:ee11:192::213/128 dev > gz-hk > ip addr add 169.254.213.192/32 peer

Re: 2.0.9 babel interfaces removed after configure

2022-02-26 Thread Ondrej Zajicek
On Fri, Feb 25, 2022 at 02:55:35AM +0100, Johannes Kimmel wrote: > Hi, > > with bird 2.0.9 previously configured babel interfaces are removed after > `birdc configure`. Thanks, fixed: https://gitlab.nic.cz/labs/bird/-/commit/fcb4dd0c831339c4374ace17d8f2ae6ebfeed279 -- Elen sila lumenn'

Re: 2.0.9 babel interfaces removed after configure

2022-02-24 Thread Ondrej Zajicek
On Fri, Feb 25, 2022 at 02:55:35AM +0100, Johannes Kimmel wrote: > Hi, > > with bird 2.0.9 previously configured babel interfaces are removed after > `birdc configure`. > > ... > > As you can see, without changing the config file, the babel interface > disappears after reconfiguring bird. > > It

Re: constant for empty prefix set

2022-02-23 Thread Ondrej Zajicek
On Wed, Feb 23, 2022 at 03:46:53PM +0100, Alexander Zubkov wrote: > Updated patch. Again full and incremental. Thanks, will look at it. > > One solution would be a global constant empty trie, so you can just set > > pointer to that. Alternative would be just have NULL like in T_SET, > > but

Re: constant for empty prefix set

2022-02-22 Thread Ondrej Zajicek
On Tue, Feb 22, 2022 at 08:18:35PM +0100, Alexander Zubkov wrote: > Adding new pathches (v2 - full patch, v1-v2 - incremental from previous): > > 1) Modified as_path_filter function - added additional parameter to > choose between using set or key parameter. Now empty set does not work > like a

Re: constant for empty prefix set

2022-02-21 Thread Ondrej Zajicek
On Tue, Feb 22, 2022 at 03:02:55AM +0100, Alexander Zubkov wrote: > > Also to your previous question: > > > > > > I also think now - why at all do we need a typed empty set? I think it > > > > is possible to add an untyped empty set, that will act as a "joker" > > > > with any types. It should fit

Re: constant for empty prefix set

2022-02-21 Thread Ondrej Zajicek
On Mon, Feb 21, 2022 at 11:01:25PM +0100, Alexander Zubkov wrote: > Made some example changes to allow the use of an empty set, which > works with all types and prefixes too. Its value has type T_SET with > NULL pointer to the tree. Looks goot at the first sight. Hi Is assigning [] to variable

Re: Inserting fulltable into kernel FIB makes bird crazy

2022-02-18 Thread Ondrej Zajicek
On Sat, Feb 19, 2022 at 12:44:11AM +0100, Alarig Le Lay wrote: > Hello, > > I gave the 2.0.9 git snapshot (71c9484b00b4428ae6c7d7c8eea6d96073683a54) > a try tonight, and it seems to fix the issue for me. I’ve not tested on > 5.10 though, as the LTS is now 5.15. > However, I did test 5.15 with

Re: BIRD incorrectly(?) detects whether a peer is directly connected

2022-02-17 Thread Ondrej Zajicek
On Wed, Feb 16, 2022 at 03:32:55AM +0100, Arsen Arsenović wrote: > Good evening! > > When configuring BGP on a site BIRD fails to recognize whether an IP is > directly connected. It appears to scan over the list of interfaces and > check whether their subnets contain the target IP instead of

Re: Bird BFD is not compliant to RFC5881

2022-02-17 Thread Ondrej Zajicek
On Thu, Feb 17, 2022 at 01:09:33PM +0100, Christian Bruns wrote: > Hi all, > > we experienced issues with non-functional BFD Sessions. Debugging yielded > that bird does not use RFC compliant BFD Port ranges. > RFC 5881 states: "" The source port MUST be in the range 49152 through > 65535. "";

Re: constant for empty prefix set

2022-02-14 Thread Ondrej Zajicek
On Thu, Feb 10, 2022 at 02:09:59PM +0100, Alexander Zubkov wrote: > Hi, > > Let me remind about this once again. Hi Sorry for ignoring your previous mail, i needed to focus on finishing things for 2.0.9, now i can continue with your patches. 1) UDP logging - I have no principal issue with

Re: Route Flapping and Bird - RFD and MRAI

2022-02-14 Thread Ondrej Zajicek
On Mon, Feb 14, 2022 at 10:48:40AM -0300, Douglas Fischer wrote: > Passing by here to drop another ping on the MRAI - Minimum Route > Advertisement Interval in the BIRD, and also on the RFD - > Route-Flap-Dampening. Hi Several people ask us recently about MRAI / route flap damping, we will

Re: [PATCH] RFC: Add netlink KRT dump filters on Linux

2022-01-14 Thread Ondrej Zajicek
On Mon, Jan 10, 2022 at 11:47:57PM +0100, Tomas Hlavacek wrote: > Add netlink KRT dump filter on Linux to avoid PMTU cache records from FNHE > table dump along with KRT. > > Linux Kernel added FNHE table dump to the netlink API in patch > >

Re: Bird as BGP flow-spec announcement filter

2022-01-10 Thread Ondrej Zajicek
On Mon, Jan 10, 2022 at 06:57:29PM +0100, Blažej Krajňák wrote: > Hi, > > great to hear that. Are these new changes publicly available to test? > I could not find on Gitlab. Hi It is branch oz-trie-table ( https://gitlab.nic.cz/labs/bird/-/tree/oz-trie-table ), commit

Re: BGP strict bind socket error

2022-01-08 Thread Ondrej Zajicek
On Wed, Dec 29, 2021 at 06:11:32PM +0100, Alexander Zubkov wrote: > Yes, probably it is ok to use it by default, at least in our case we > use it always-on (as in attached patch). Only in this case it may be > better to lower the log level for it then for the cases when it does > not work. > With

Re: [BIRD 2.0.x] Netlink: ignore dead routes

2022-01-08 Thread Ondrej Zajicek
On Sat, Jan 01, 2022 at 08:10:01PM +0100, Alexander Zubkov wrote: > I made a patch for that. It works at least for my test case. I had to > add additional parameter to nl_parse_multipath() function to pass > information about this exception for dead routes. But may be there are > better ways to do

Re: netlink filtering to avoid clostly FNHE table dumps on Linux

2022-01-07 Thread Ondrej Zajicek
On Sat, Jan 08, 2022 at 12:03:52AM +0100, Tomas Hlavacek wrote: > Hi! > > The large table that BIRD pulled from the kernel was a FNHE table > where Linux collects PMTU records for *all* destination IPs that are > routed to the tunnel (which does not seem to be right and I will > discuss it in

Re: bird bug: can not parse the full-length IPv6 address

2022-01-01 Thread Ondrej Zajicek
On Sat, Jan 01, 2022 at 10:07:12PM +0100, Alexander Zubkov wrote: > Hi, > > I found a funny bug, when made some tests. I found out that if you try > to give bird a full-length IPv6-address, like: > ::::::: > ::::::: > You will get an

Re: BIRD 2.0 on FreeBSD, multihop with multiple fibs

2022-01-01 Thread Ondrej Zajicek
On Fri, Dec 31, 2021 at 05:23:13PM +, Dominic Blais wrote: > Hi, > > I've had my load of issues with bird 2 on FreeBSD. I used BSDRP like 3 years > ago and after an update I started having big issues related to bird. > > I think BSDRP released version 1.98 with a fix for that.. don't know

Re: Possibility to treat /32 and /128 non-gateway routes as onlink on BSD?

2021-12-27 Thread Ondrej Zajicek
ain and again. > ... > For some time now I am using a local patch (on top of bird 2.0.8) that > essentially implements the suggestion that was emerging from the > discussion: > > On Mon, Apr 19, 2021 at 09:41:33PM +0200, Ondrej Zajicek wrote: > > I see the problem as BIRD i

Re: [BIRD 2.0.x] Netlink: ignore dead routes

2021-12-27 Thread Ondrej Zajicek
On Mon, Dec 27, 2021 at 02:51:34PM +0100, Alexander Zubkov wrote: > Hi all, > > I'll pop up this old discussion. I've found a bug with bird handling > its routes when ignore_routes_with_linkdown is enabled. And I suspect > it is related to this patch. > The problem is that bird does not replace

Re: [patch] Add contextual out-of-bound checks in RTR Prefix PDU handler

2021-12-18 Thread Ondrej Zajicek
On Sun, Nov 14, 2021 at 07:26:44PM +0100, Job Snijders wrote: > Ping :-) Thanks, merged. Sorry for keeping it open for so long. btw, the original 2-condition patch was ok, because condition addr.roaX.pxlen <= IPX_MAX_PREFIX_LENGTH is deduced from transitivity. > On Fri, 17 Sep 2021 at 21:34,

Re: Incorrect handling of primary/secondary IP address status.

2021-12-17 Thread Ondrej Zajicek
On Fri, Dec 17, 2021 at 06:57:44PM +0100, Alexander wrote: > On 2021-12-17 18:26, Ondrej Zajicek wrote: > > > That is interesting. If i remember correctly, in the past Linux removed > > all secondary addresses (ones from the same net) when the primary > > address

Re: Incorrect handling of primary/secondary IP address status.

2021-12-17 Thread Ondrej Zajicek
On Fri, Dec 17, 2021 at 05:41:40PM +0100, Alexander wrote: > Hi, > > Looks like bird (2.0.8 on Linux) incorrectly handles primary/secondary IP > address status. > > For example, this is initial state (output from "show interfaces"): > > enp6s20 up (index=2 master=switch) > MultiAccess

Re: [PATCH] Filter: picking community elements and finding min/max element

2021-12-16 Thread Ondrej Zajicek
On Thu, Dec 16, 2021 at 02:41:28PM +0100, Alexander Zubkov wrote: > Hi everyone! > > I made a couple of patches to do some interesting stuff with communities. > The first patch allows to pick a component from a standard or a large > community: > > (10, 20, 30) @ 2 --> 20 > > And the second

Re: Invalid NEXT_HOP attribute for OSPF known route

2021-12-16 Thread Ondrej Zajicek
On Thu, Dec 16, 2021 at 04:41:09PM +0100, Nico Schottelius wrote: > > > Ondrej Zajicek writes: > >> > I expect it is in multihop / > >> > gateway-recursive mode, as it is default for IBGP? > >> > >> It's in direct mode for all links,

Re: Invalid NEXT_HOP attribute for OSPF known route

2021-12-16 Thread Ondrej Zajicek
On Thu, Dec 16, 2021 at 02:37:00PM +0100, Nico Schottelius wrote: > > Ondrej Zajicek writes: > > Yes, this is kind of confusing error message (as i noted in response > > to Simon Ruderich). > > If there is one thing I'd suggest to improve first: print out the > spec

Re: using BIRD as route reflector - add paths option not working?

2021-12-15 Thread Ondrej Zajicek
On Wed, Dec 15, 2021 at 04:34:39PM -0500, m...@routerpro.ca wrote: > Hello, > > I am using bird as a RR and have set the add paths tx; option, however I am > still only seeing best path being advertised. Hello That is strange, it should work. > 3 routes present , with one marked as BEST: > >

Re: Invalid NEXT_HOP attribute for OSPF known route

2021-12-15 Thread Ondrej Zajicek
On Tue, Dec 14, 2021 at 08:35:48PM +0100, Nico Schottelius wrote: > > Hello, > > every year or then bird is putting me into the Invalid NEXT_HOP > message. Hello Yes, this is kind of confusing error message (as i noted in response to Simon Ruderich). > TL;DR: > Why does bird on

Re: [PATCH] BGP: Log value of invalid NEXT_HOP in bgp_apply_next_hop()

2021-12-15 Thread Ondrej Zajicek
On Sat, Dec 11, 2021 at 09:22:46AM +0100, Simon Ruderich wrote: > --- > Hello, > > while debugging "Invalid NEXT_HOP attribute" messages in my setup > I had to recompile bird2 with additional debug output to > determine which BAD_NEXT_HOP line was triggered and with which > NEXT_HOP value. After

Re: OSPF/general question: Using v6 next-hop for v4 routes

2021-12-06 Thread Ondrej Zajicek
On Mon, Dec 06, 2021 at 09:18:30AM +0100, Sebastian Hahn wrote: > Hi there, > > I've been trying to remove v4 transit nets from my setup. This seems to > work well for BGP (both eBGP and iBGP) - I have routes for all external > v4 addresses with the appropriate next hop set. For my internal

Re: Displayed update timestamps vary by 1 second for the exact same update

2021-11-26 Thread Ondrej Zajicek
On Fri, Nov 26, 2021 at 07:51:21AM +1100, bir...@sensation.net.au wrote: > Hi all, > > If I do several consecutive "show route" queries, the timestamp keeps > changing back and forth, by about a second. Example: > > 0.0.0.0/0 via x.x.x.x on em2.100 [aapt 05:20:28] * (100) [AS2764i] >

Re: [PATCH] doc: bgp: remove "advertise ipv4"

2021-11-13 Thread Ondrej Zajicek
On Sat, Nov 06, 2021 at 10:38:39AM +0100, Simon Ruderich wrote: > The option was removed in d15b0b0a ("BGP redesign", 2016-12-07) but the > documentation wasn't updated. Thanks, will merge. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org) OpenPGP

Re: Contributing to BIRD

2021-11-13 Thread Ondrej Zajicek
On Fri, Nov 12, 2021 at 09:38:31PM +0100, Jan Prukner wrote: > > Hello everybody, > > my name is Jan, I am a backend developer. I'd like to get to know BIRD's > codebase. > > My main motivation is to improve my C language skills. I used BIRD some time > ago and am interested in networking. >

Re: How to make OSPF routes not more important than "connected routes"

2021-11-13 Thread Ondrej Zajicek
On Sat, Nov 13, 2021 at 08:03:52AM +0100, Lukas Haase wrote: > Hello, > > This is probably fairly trivial but how can I tell bird (or Linux) that > "connected routes" should have higher precedence than the routes from OSPF > (even if they may be more specific)? > > I have the following issue:

Re: Redistribution from BGP protocol to OSPF is not working

2021-11-01 Thread Ondrej Zajicek
On Mon, Nov 01, 2021 at 02:34:57PM +0100, keyvan ghadimi wrote: > export where: > we already have one BGP, and want to import its origin routes into our > OSPF. so we still need to write another export policy? Import/export are per protocol/channel and from point-of-view of the routing table.

Re: Redistribution from BGP protocol to OSPF is not working

2021-11-01 Thread Ondrej Zajicek
On Mon, Nov 01, 2021 at 09:12:38AM +0100, keyvan ghadimi wrote: > Hi, > > I have Three routers in my network like the below diagram. > RTR01 has a BGP to RTR02 and RTR02 has an OSPF to RTR03. I wrote a filter > to redistribute origin routes from BGP protocol to OSPF in RTR02 but it's > not

Re: BFD+BGP behavior difference between bird 1.6 and 2.0

2021-10-29 Thread Ondrej Zajicek
On Thu, Oct 28, 2021 at 02:31:56PM +0300, Kseniya Blashchuk wrote: > Hello! > After upgrading to 2.0 I have noticed that "bgp on" in BGP peer > configuration creates a separate BFD session, however it wasn't like that > in bird 1.6, we had to specify neighbors in BFD section. Now for bird 2.0 > it

Re: Bird 2.0.8 - Automatic RPKI reload behaviour

2021-10-29 Thread Ondrej Zajicek
On Wed, Oct 27, 2021 at 06:53:20AM +0200, Tiago Felipe Goncalves wrote: > Hello, > > >From Bird doc: > "BIRD offers crude automatic re-validating of affected routes after RPKI > update, see option rpki reload. > ... > In contrast to to other filter operators, this status for the same route may

Re: Broadcast RIP to each broadcast address on interface with multiple aliases

2021-10-23 Thread Ondrej Zajicek
On Tue, Oct 19, 2021 at 03:38:47AM +1100, bir...@sensation.net.au wrote: > Hi all, > > I want to broadcast a last-resort old-school default route via RIPv1. The > following config works: > > filter default_route { > if net ~ [ 0.0.0.0/0 ] then { > accept; > } > reject; > } > #

Re: How to make bird now its own connectivity (OSPF)

2021-10-23 Thread Ondrej Zajicek
On Sat, Oct 23, 2021 at 01:38:37PM +0200, Maximilian Wilhelm wrote: > > Why does no protocol in Bird want to take responsibility for the router's > > own connectivity? > > How on earth is this supposed to work? > > OSPF does that :) > > I would propose a configuration for R1 like > > protocol

Re: bird adversites a direct route from an interface without carrier

2021-10-21 Thread Ondrej Zajicek
On Thu, Oct 21, 2021 at 02:47:12PM +0200, Alarig Le Lay wrote: > Hi, > > On Tue 19 Oct 2021 13:48:53 GMT, Ondrej Zajicek wrote: > > Hi > > > > You use route from Direct protocol exported to OSPF. Contrary to other > > protocols, default value of 'check

Re: Bird just doesn't want to find OSPF neighbors although they are there and can communicate

2021-10-20 Thread Ondrej Zajicek
On Wed, Oct 20, 2021 at 05:33:03AM +0200, Lukas Haase wrote: > Hi Ondrej, > > > On Tue, Oct 19, 2021 at 07:49:09AM +0200, Lukas Haase wrote: > > > I have googled like crazy but haven't found both pages yet. > > > Maybe I should use DuckDuckGo finally. > > > While those didn't fix the problem yet

Re: OSPFv3 between BIRD2 and RouterOS (Mikrotik)

2021-10-19 Thread Ondrej Zajicek
On Tue, Oct 19, 2021 at 07:55:08PM +0200, Kees Meijs | Nefos wrote: > Hi list, > > First of all: I'm very sorry if this has been discussed before. > > Anyway, we're experiencing possible (configuration) incompatibiliy between > BIRD2 and Mikrotik RouterOS. To be precise, we're on BIRD 2.0.7 and

Re: Bird just doesn't want to find OSPF neighbors although they are there and can communicate

2021-10-19 Thread Ondrej Zajicek
On Tue, Oct 19, 2021 at 07:49:09AM +0200, Lukas Haase wrote: > I have googled like crazy but haven't found both pages yet. > Maybe I should use DuckDuckGo finally. > While those didn't fix the problem yet they are helpful. Thanks! > > > Have you tried setting the type to 'ptmp' or 'ptp' instead

Re: bird adversites a direct route from an interface without carrier

2021-10-19 Thread Ondrej Zajicek
On Tue, Oct 19, 2021 at 12:35:20PM +0200, Alarig Le Lay wrote: > Hello Ondrej, > > On Mon 18 Oct 2021 17:39:44 GMT, Ondrej Zajicek wrote: > > On Mon, Oct 11, 2021 at 01:20:52PM +0200, Alarig Le Lay wrote: > > > Hi, > > > > > > On one router I h

Re: bird adversites a direct route from an interface without carrier

2021-10-18 Thread Ondrej Zajicek
On Mon, Oct 11, 2021 at 01:20:52PM +0200, Alarig Le Lay wrote: > Hi, > > On one router I have an interface that used to be connected to another > machine, so the state is NO-CARRIER: > core01-arendal ~ # ip addr show enp1s0 > 2: enp1s0: mtu 1500 qdisc mq state DOWN > group default qlen 1000 >

Re: bgp_large_community wildcard in conditional

2021-10-18 Thread Ondrej Zajicek
On Sun, Oct 17, 2021 at 05:06:41PM -0400, Ross Tajvar wrote: > This worked, thank you! > > It may be better to throw a syntax error and refuse to load (or reload) the > configuration than to just accept it but to log errors at runtime...after I > made this change, my filter started rejecting all

Re: Bird just doesn't want to find OSPF neighbors although they are there and can communicate

2021-10-18 Thread Ondrej Zajicek
On Mon, Oct 18, 2021 at 02:01:07AM +0200, Lukas Haase wrote: > Hi, > > I am having big trouble getting Bird/OSPF working. I broke it down to a > simple setup: > Point-to-point wireguard link between Node1 (192.168.56.224/31) and Node2 > (192.168.56.225/31) using nbma. > There were nothing but

Re: bgp_large_community wildcard in conditional

2021-10-17 Thread Ondrej Zajicek
y from bgp_large_community is a member of set [(1,2,*)]. > On Thu, Oct 29, 2020 at 2:49 PM Ondrej Zajicek > wrote: > > > On Thu, Oct 29, 2020 at 10:00:58AM -0400, Brooks Swinnerton wrote: > > > Hello, > > > > > > I was wondering if it's possible to

Re: OSPF on OpenBSD

2021-09-29 Thread Ondrej Zajicek
On Wed, Sep 29, 2021 at 09:35:13AM +0200, Bastien Durel wrote: > Hello, > > I'm trying to use bird to replace ospfd on OpenBSD, but it seems to > have a strange effect on the networking stack :( > > I've tried multiple times, from OpenBSD 6.6 to 6.9, with bird2 (2.0.8 > now) > > ... > > On

Re: Bird2 not distributing IPv6 address on dummy to OSPF

2021-09-28 Thread Ondrej Zajicek
On Tue, Sep 28, 2021 at 11:04:28AM +0200, Blažej Krajňák wrote: > Hello everyone, > > I just found that neighbour router Mikrotik has the LSA in table. So I > incorrectly mentioned that Bird2 is not advertising route. But that > route does not appear in Mikrotik routing table. I compared the same

Re: IBGP cannot import prefixs with its as_path

2021-09-22 Thread Ondrej Zajicek
On Mon, Sep 20, 2021 at 11:18:04PM +0800, 智慧雨泽 wrote: > Hi, > I use ibgp to transport full tables in my network. iBGP delete my > ASN but I use my ASN to identify my prefixes. > So I added this code to my ibgp import filter > if bgp_path ~ [= =] then { >

Re: RFC 5575 feasibility check

2021-09-22 Thread Ondrej Zajicek
On Tue, Sep 21, 2021 at 06:34:31PM +0300, Alexander Shikov wrote: > Hello! > > RFC5575 and newer RFC8955 define validation procedure for flowspec > routes received by BGP protocol. While testing flowspec in bird 2.0.8 I've > found strange behavior: > > So the question, is feasibility check

Re: default protocol preference values

2021-09-07 Thread Ondrej Zajicek
On Tue, Sep 07, 2021 at 04:33:26PM +, Ponikierski, Grzegorz wrote: > Thanks for providing that. I was thinking about the same but couldn't find it > in the manual. Yes, we should put it there. > Additional question is do I see it correctly that bird in comparison to > Cisco/Juniper does

Re: Sync with userspace instead of kernel

2021-09-05 Thread Ondrej Zajicek
On Sun, Sep 05, 2021 at 05:08:09PM -0400, Cody Doucette wrote: > Hi, > > I was able to achieve this with a few small custom changes to bird: > > https://github.com/cjdoucette/bird/commits/gatekeeper > > I don’t know if this ability has been added to the bird mainline since I > did this. Hi

Re: BGP on GRE Idle

2021-08-03 Thread Ondrej Zajicek
On Sun, Aug 01, 2021 at 11:32:42PM +0800, 智慧雨泽 wrote: > Hi,My configuration file can work normally on the wireguard tunnel, but GRE > does not work. > > Server1 > > 11: home_1_vpn: mtu 1280 qdisc noqueue > state UNKNOWN group default qlen 1000 >link/none >inet 5.101.92.125/32 scope

Re: [PATCH] Bus error on ARMv7 when using OSPF

2021-08-03 Thread Ondrej Zajicek
On Tue, Aug 03, 2021 at 09:34:36AM +0100, Matthew Reeve wrote: > Hi Ondrej, > > just wondering if you'd had a chance to look at this any further yet please? Hi Sorry, not yet. Will check it soon. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org)

Re: default protocol preference values

2021-08-03 Thread Ondrej Zajicek
On Tue, Aug 03, 2021 at 10:00:45AM +0300, Kseniya Blashchuk wrote: > Hello! > I could not find any information about default protocol preference values > (administrative distance) for bird. Can anybody please help with it? Are > there any default values for OSFP, BGP, static, etc.? Or is it better

Re: Handling IPv6 BGP routes with :: next-hop

2021-08-03 Thread Ondrej Zajicek
On Tue, Aug 03, 2021 at 10:13:09AM +0300, Alexander Shikov wrote: > Hello! > > Yesterday we noticed a strange behavior of Bird 1.6.8 with handling > one IPv6 BGP route: > > >birdc6 show route for 2a09:8387::: all > BIRD 1.6.8 ready. > 2a09:8387:::/48 via 2001:7f8:63::f2 on bge0

Re: ospf external type 2 and igp_metric

2021-07-29 Thread Ondrej Zajicek
On Thu, Jul 29, 2021 at 03:14:39PM -0400, Dave Johnson wrote: > > > Hi, > > I'm trying to get igp_metric to work for iBGP based on an OSPF > metric. > > > Here's my setup: > > I would like to make use of the iBGP igp_metric as a tie-breaker if > BGP gets down that far in the route selection

<    1   2   3   4   5   6   7   8   9   10   >