Re: Setting ONLINK flag for arbitrary routes

2018-04-29 Thread Ondrej Zajicek
On Sun, Apr 29, 2018 at 10:54:06PM +0200, Toke Høiland-Jørgensen wrote: > Hi > > Is it possible to set the ONLINK flag for arbitrary routes? > > The use case is a common setup in mesh networks: All devices have a /32 > assigned to the interface and advertise this as the nexthop for v4 > routes. T

Re: [PATCH 2/3] babel: Short-circuit route selection for routes we originate ourselves

2018-04-30 Thread Ondrej Zajicek
On Mon, Apr 30, 2018 at 05:15:18PM +0200, Toke Høiland-Jørgensen wrote: > Routes that are originated by this Babel instance doesn't have an entry in > e->selected, which means that the best route selection logic will always > pick another route when an update arrives for the same prefix. This will

Re: [PATCH 1/3] babel: Fix type of route entry router ID

2018-04-30 Thread Ondrej Zajicek
On Mon, Apr 30, 2018 at 05:15:17PM +0200, Toke Høiland-Jørgensen wrote: > The router ID being assigned to routes was a uint, which discards the upper > 32 bits. This also has the nice side effect of echoing the wrong router ID > back to other routers. Thanks for bugfix. -- Elen sila lumenn' omen

Re: OSPF wireguard fallback

2018-05-03 Thread Ondrej Zajicek
On Thu, May 03, 2018 at 08:47:31AM +, chrono wrote: > Ahoy all, > > I'm struggling a little to set wireguard as a fallback link > in conjunction with two MPLS links. In my tests BIRD would > not route traffic through wg0 when I took the other two > interfaces down. The setup is rather simple,

Re: Received: No supported AFI/SAFI

2018-05-03 Thread Ondrej Zajicek
On Wed, May 02, 2018 at 11:19:30PM +0200, Rwakagabo Janvier wrote: > Hi All > > Can anyone help to understand why this error Received: No supported AFI/SAFI, > i am using BIRD 1.4.0 to peer with my neighbours, other sessions are > established except 1 peer with below error (Peer AAA) > > devi

Re: mrtdump-core

2018-05-03 Thread Ondrej Zajicek
On Wed, May 02, 2018 at 07:18:06PM +0200, Bjorn Carlsson wrote: > Any plans to merge those updates into version 2? Hi Yes, we have plans to implement that during Q2 or Q3 of 2018. It is not a straightforward merge as there are some more changes to the MRT table code to be done. -- Elen sila lum

Re: [PATCH 3/3] babel: Add option to randomise router ID

2018-05-03 Thread Ondrej Zajicek
On Tue, May 01, 2018 at 12:41:01PM +0200, Toke Høiland-Jørgensen wrote: > Toke Høiland-Jørgensen writes: > > > When a Babel node restarts, it loses its sequence number, which can cause > > its routes to be rejected by peers until the state is cleared out by other > > nodes in the network (which c

Re: OSPF wireguard fallback

2018-05-03 Thread Ondrej Zajicek
On Thu, May 03, 2018 at 08:47:31AM +, chrono wrote: > Ahoy all, > > I'm struggling a little to set wireguard as a fallback link > in conjunction with two MPLS links. In my tests BIRD would > not route traffic through wg0 when I took the other two > interfaces down. The setup is rather simple,

Re: OSPF wireguard fallback

2018-05-03 Thread Ondrej Zajicek
On Thu, May 03, 2018 at 02:54:41PM +0200, Ondrej Zajicek wrote: > On Thu, May 03, 2018 at 08:47:31AM +, chrono wrote: > > Ahoy all, > > > > I'm struggling a little to set wireguard as a fallback link > > in conjunction with two MPLS links. In my tests BIRD wou

Re: OSPF wireguard fallback

2018-05-03 Thread Ondrej Zajicek
On Thu, May 03, 2018 at 12:43:23PM +, chrono wrote: > Hi Ondrej, > > thanks for the quick reply. > > > > What makes me wonder is why wg0 is coming up as stubnet here, > > > while the MPLS links come up as network (stubnet 172.23.3.0/29 > > > metric 10) > > > and 172.23.3.0/29 (wg0 net) not be

Re: OSPF wireguard fallback

2018-05-03 Thread Ondrej Zajicek
On Thu, May 03, 2018 at 01:39:31PM +, chrono wrote: > > Also i saw that your config files do not have 'log' option, so you have > > no logging. You should enable logging and see if there are no error > > messages. > > Ah, interesting: > > 2018-05-03 15:37:32 MyOSPF: HELLO packet sent via wg0

Re: [PATCH 3/3] babel: Add option to randomise router ID

2018-05-03 Thread Ondrej Zajicek
On Mon, Apr 30, 2018 at 05:15:19PM +0200, Toke Høiland-Jørgensen wrote: > When a Babel node restarts, it loses its sequence number, which can cause > its routes to be rejected by peers until the state is cleared out by other > nodes in the network (which can take on the order of minutes). > > Ther

Re: [PATCH] babel: Set onlink flag for IPv4 routes with unreachable next hop

2018-05-09 Thread Ondrej Zajicek
On Mon, May 07, 2018 at 08:57:43PM +0200, Toke Høiland-Jørgensen wrote: > Toke Høiland-Jørgensen writes: > > > If the next hop of a route is not a reachable address, the route should be > > installed as onlink. This enables a configuration common in mesh networks > > where the mesh interface is a

Re: ROA 2.x

2018-05-09 Thread Ondrej Zajicek
On Mon, May 07, 2018 at 02:35:17PM +0300, Mikhail Mayorov wrote: > Hi all! > > In version 1.x I used rtconfig for build import/export BGP check. > It was separate files for every protocol included in main config file. > > roa4 table isp1_v4 { > roa4 95.174.96.0/19 max 24 as 49037; > roa4 185.230.

Re: BGP manage advertisement

2018-05-09 Thread Ondrej Zajicek
On Wed, May 09, 2018 at 01:09:48PM +0200, Mattia Milani wrote: > Hello all, > Sorry but searching on the wiki i didn't find anyting about that. > My question is, bird implements the MRAI minimum rout adverisement interval > timer? what in the RFC 4271 is called "MinRouteAdverisementIntervalTimer" >

Re: BGP next hop

2018-05-09 Thread Ondrej Zajicek
On Wed, May 09, 2018 at 07:38:31AM +, Arvin Gan wrote: > Hi all, > >I notice below description in user guide, my understand is source > address mainly used for BGP session for TCP connection ,don't understand > why this source is also used as next_hop_addr calculation. Hi Generally, BGP s

Re: Constant delete / add route after upgrade to 1.6.3

2018-05-09 Thread Ondrej Zajicek
On Tue, May 08, 2018 at 08:29:06PM +, Xavier Trilla wrote: > Hi Maria, > > For what I'm seeing, looks like every time birds gets a route update via BGP > the route is replaced, I enabled debug in kernel protocol and I'm seeing this: > > 2018-05-08 22:20:32 icewall_01_BGP > added [best] 80.8

Re: [PATCH 3/3] babel: Add option to randomise router ID

2018-05-09 Thread Ondrej Zajicek
On Thu, May 03, 2018 at 03:14:58PM +0200, Toke Høiland-Jørgensen wrote: > Ondrej Zajicek writes: > > Ignoring global setting is OK, i just wonder whether some global > > EUI-64-based unique ID should not be provided directly by the nest > > That might be convenient, yeah.

Re: BGP manage advertisement

2018-05-09 Thread Ondrej Zajicek
On Wed, May 09, 2018 at 01:24:13PM +, Mattia Milani wrote: > And you have a plane to inculude it in the next release? No. Perhaps sometimes in the future, but no definite plan. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org) OpenPGP encrypted e-mail

Re: [PATCH 2/3] babel: Short-circuit route selection for routes we originate ourselves

2018-05-09 Thread Ondrej Zajicek
On Tue, May 01, 2018 at 01:22:47PM +0200, Toke Høiland-Jørgensen wrote: > This behaviour relies on the fact that the route was initially learned > from the kernel, so from the nest's perspective it has very low > preference. I'm not sure that is actually desirable in Babel's case? Why > are routes

Re: [PATCH 3/3] babel: Add option to randomise router ID

2018-05-09 Thread Ondrej Zajicek
On Wed, May 09, 2018 at 04:29:54PM +0200, Toke Høiland-Jørgensen wrote: > Ondrej Zajicek writes: > > > On Thu, May 03, 2018 at 03:14:58PM +0200, Toke Høiland-Jørgensen wrote: > >> Ondrej Zajicek writes: > >> > Ignoring global setting is OK, i just wonder whethe

Re: BGP manage advertisement

2018-05-09 Thread Ondrej Zajicek
On Wed, May 09, 2018 at 04:35:11PM +0200, Mattia Milani wrote: > > No. Perhaps sometimes in the future, but no definite plan. > > > > yeah but on your site, > http://bird.network.cz/?get_doc&v=20&f=bird-6.html#ss6.3 that is the user's > guide 2.0, there is this written: > > Supported standards >

Re: [PATCH] filter: Add .srclen attribute to filter on source prefix length

2018-05-16 Thread Ondrej Zajicek
On Sun, May 13, 2018 at 10:59:51PM +0200, Toke Høiland-Jørgensen wrote: > This adds a new attribute to expose the source prefix length in the same > way as the destination prefix length, via a new .srclen attribute. Hi I generalized the patch and merged that - instead of 'srclen' it adds 'src' op

Re: ROA 2.x

2018-05-16 Thread Ondrej Zajicek
On Fri, May 11, 2018 at 11:14:47PM +0300, Mikhail Mayorov wrote: > > HI > > > > There are no explicit commands to add/delete ROA records dynamically by > > birdc. For static ROA records like in your example you can use a static > > protocol connected to roa4 table to fill static ROA records. > >

Re: Package repositories

2018-05-23 Thread Ondrej Zajicek
On Mon, May 14, 2018 at 09:12:30AM +0200, Jan-Philipp Litza wrote: > Hi list, > > the prebuilt packages under [1] seem to be a bit outdated. While Fedora > and CentOS at least have 1.6.4 available, Debian only has 1.6.3, and > there is not a single package for 2.0. Hi We added Debian packages fo

Re: BIRD - Config Support for RFC 3107 - Carrying Label Information in BGP

2018-05-23 Thread Ondrej Zajicek
On Wed, May 23, 2018 at 06:02:30PM +, LAKSHMANAN, THIRUVAZHIYA wrote: > In the BIRD 2.0 user guide, I see the support for RFC 3107 - Carrying > Label information in BGP. We want to configure a VM with BIRD agent > working like a PE for adding MPLS labels for IPv4 and IPv6 unicast > routes. Do w

Re: BIRD - Config Support for RFC 3107 - Carrying Label Information in BGP

2018-05-23 Thread Ondrej Zajicek
On Wed, May 23, 2018 at 07:40:26PM +, Thiruvazhiyan Lakshmanan wrote: > Hi Ondrej, > Thanks for the reply! How about incoming labels coming from 3107 neighbor? > Can BIRD program the kernel table with mpls label for next-hop loopback? Yes, incoming routes with labels received from RFC 3107 ne

Re: Static route bgp_next_hop attribute.

2018-05-29 Thread Ondrej Zajicek
On Tue, May 29, 2018 at 02:23:30PM +0300, oldnick nsp wrote: > Hi all! > > I'm trying to use Bird to announce route with predefined bgp next hop and > to avoid filter manipulation on this route to set next-hop on it. My goal > is to put route configuration into separate include file with fewer lin

Re: BGP origin attribute

2018-05-31 Thread Ondrej Zajicek
On Thu, May 31, 2018 at 03:14:40AM +, Arvin Gan wrote: > Hi All, > I notice the origin attribute in function bgp_update_attrs , if route > source is BGP, I think it should set as ORIGIN_IGP, not INCOMPLETE, > according to RFC or Cisco device . It seems there is mistake on Line 1443 in > a

Re: BGP origin attribute

2018-06-01 Thread Ondrej Zajicek
On Fri, Jun 01, 2018 at 09:39:04AM +0200, Olivier Benghozi wrote: > But as a mandatory attribute, how can it be conceptually allowed to remove > this attribute between BGP and BGP ? Most attributes can be defined and undefined in configurable filters, regardless of their meaning. After export fil

Re: BGP origin attribute

2018-06-01 Thread Ondrej Zajicek
On Fri, Jun 01, 2018 at 09:37:56AM +0200, Olivier Benghozi wrote: > > > Le 1 juin 2018 à 05:05, Arvin Gan a écrit : > > > > I also notice the explanation from Cisco is all redistributed route are > > INCOMPLETE. What's your opinion ? That it does nor really matter. > And on Juniper side, all

Re: route withdrawals are not sent upon protocol removal

2018-06-04 Thread Ondrej Zajicek
On Thu, May 31, 2018 at 03:42:12PM +0100, Thomás S. Bregolin wrote: > Hello, > > > bird (all versions) does not send BGP route withdrawals when a protocol is > removed, only when the filter changes or the protocol is disabled. Is this > intentional? If not, could it be a configurable option to se

Re: BIRD router/route server functions

2018-06-05 Thread Ondrej Zajicek
On Tue, Jun 05, 2018 at 09:29:08AM +, Rae Ho (ITSC) wrote: > Dear Quan Zhou, Thanks. Rae Hi Your setup looks OK. You could use tcpdump on ens160 to see if there are BGP connection attempts in both directions. Also, is there anything interesting in BIRD logs? You should also upgrade BIRD, ve

Re: route withdrawals are not sent upon protocol removal

2018-06-06 Thread Ondrej Zajicek
On Wed, Jun 06, 2018 at 01:33:53PM +0100, Thomás S. Bregolin wrote: > Hello, > > > On Tue, Jun 5, 2018 at 3:43 PM, Thomás S. Bregolin > wrote: > > > On Tue, Jun 5, 2018 at 2:13 PM, Jan Maria Matejka > > wrote: > > > >> Could you please try the attached script or try to create some reproducer >

Re: dependent ospf areas

2018-06-06 Thread Ondrej Zajicek
On Tue, Jun 05, 2018 at 09:41:18PM +0500, Илья Шипицин wrote: > hello, > > we use BIRD with 2 ospf areas: external and internal. > can someone give an advice how to implement dependent filters? > > i.e. "if there are no neighbors on internal, so do not export anything on > external"? > > and "if

Re: route withdrawals are not sent upon protocol removal

2018-06-06 Thread Ondrej Zajicek
On Wed, Jun 06, 2018 at 03:17:37PM +0100, Thomás S. Bregolin wrote: > On Wed, Jun 6, 2018 at 2:25 PM, Ondrej Zajicek > wrote: > > > On Wed, Jun 06, 2018 at 01:33:53PM +0100, Thomás S. Bregolin wrote: > > [...] > > > I've attached a modified version of t

Re: route withdrawals are not sent upon protocol removal

2018-06-06 Thread Ondrej Zajicek
On Wed, Jun 06, 2018 at 03:49:57PM +0100, Thomás S. Bregolin wrote: > I see. It's not BIRD on the other side. In this instance I'm using a QFX > with JUNOS 15. But I believe I've seen the issue with Cisco and Arista > routers, too. Will have to confirm, though. > > I have this in neighboor caps: >

Re: BIRD - Config Support for RFC 3107 - Carrying Label Information in BGP

2018-06-08 Thread Ondrej Zajicek
On Fri, Jun 08, 2018 at 04:03:41PM +, Thiruvazhiyan Lakshmanan wrote: > Hi Ondrej, > Thanks for your reply. What is the recommended linux kernel verison for mpls > if BIRD acts as a PE. > > We have VM with Red Hat Enterprise Linux Server 7.3 (Maipo) > Kernel 3.10.0-693.2.2.el7.x86_64 on an x

Re: Babel + IPv4 = parse error

2018-06-10 Thread Ondrej Zajicek
On Sun, Jun 10, 2018 at 11:22:17AM +0200, Julian Schuh wrote: > Hi all, > > for a current project I’m planning on using Babel as a lightweight, > dual-stack routing protocol for a couple of simple tasks. For a proof of > concept I’ve been using BIRD, and a plan to continue using BIRD at least in

Re: Babel + IPv4 = parse error

2018-06-10 Thread Ondrej Zajicek
On Sun, Jun 10, 2018 at 02:48:45PM +0200, Toke Høiland-Jørgensen wrote: > Ondrej Zajicek writes: > > > On Sun, Jun 10, 2018 at 11:22:17AM +0200, Julian Schuh wrote: > >> Hi all, > >> > >> for a current project I’m planning on using Babel as a lightweight,

Re: BIRD - Config Support for RFC 3107 - Carrying Label Information in BGP

2018-06-11 Thread Ondrej Zajicek
On Mon, Jun 11, 2018 at 04:21:10PM +, Thiruvazhiyan Lakshmanan wrote: > Hi Ondrej, > Thanks for your reply. The link which is provided in your emails > details about the static MPLS route entry to the MPLS route table. When > we have our VM with the latest kernel, whether BIRD can program the

Re: BGP keepalive_time

2018-06-12 Thread Ondrej Zajicek
On Tue, Jun 12, 2018 at 01:54:07AM +, Arvin Gan wrote: > Hi all, > > When I used bird, found a question that BGP session received OPEN > message, hold_time is updated with min(config_hold_time, peer_hold_time), > but keepalive_time is not updated if keepalive_time is not zero, that > may

Re: BGP make client (default) announcement depend on ibgp/upstream peers being "up"

2018-06-12 Thread Ondrej Zajicek
On Tue, Jun 12, 2018 at 08:00:10AM +0200, Patrick Schaaf wrote: > Hi, > > new bird / BGP user here, please bear with me :) > > Consider a scenario with a bird box acting as (one of several > possible) gateway for a set of clients, while having an iBGP and/or > upstream BGP connection where the "r

Re: Route Reflector issue

2018-06-12 Thread Ondrej Zajicek
On Tue, Jun 12, 2018 at 08:00:50AM +0530, knet solutions wrote: > Hi, > > I am implementing this below topology (BGP IGP), > > > R1R2--R3 > (192.168.2.2) 192.168.2.1/1.1 192.168.1.2 > > Here >

Re: Route Reflector issue

2018-06-12 Thread Ondrej Zajicek
On Tue, Jun 12, 2018 at 01:59:47PM +0200, Ondrej Zajicek wrote: > On Tue, Jun 12, 2018 at 08:00:50AM +0530, knet solutions wrote: > > Hi, > > > > I am implementing this below topology (BGP IGP), > > > > > > R1R2-

Re: BIRD - Config Support for RFC 3107 - Carrying Label Information in BGP

2018-06-14 Thread Ondrej Zajicek
On Wed, Jun 13, 2018 at 09:33:56PM +, Thiruvazhiyan Lakshmanan wrote: > Hi Ondrej, > > Thanks for your reply. I have upgraded the kernel on my VM and now I am > getting the 3107 routes in the mtab4 table in the bird. But the routes are > not programed to mpls Kernel table. Maybe I am missing

Re: BIRD - Config Support for RFC 3107 - Carrying Label Information in BGP

2018-06-14 Thread Ondrej Zajicek
On Thu, Jun 14, 2018 at 06:13:57PM +, Thiruvazhiyan Lakshmanan wrote: > Thanks Ondrej, > > With your suggested changes, I notice both Kernel and BGP uses single > table (master4) and both have the routes. However, the routes shown in > the bird has labels attached to them, the routes shown in

Re: BIRD - Config Support for RFC 3107 - Carrying Label Information in BGP

2018-06-15 Thread Ondrej Zajicek
On Fri, Jun 15, 2018 at 02:27:52PM +, Thiruvazhiyan Lakshmanan wrote: > Thanks for your reply. > > When I tried to add " ip route add 192.168.1.0/24 encap mpls 100 via inet > 10.10.101.1" I get "Error: either "to" is duplicate, or "encap" is a garbage." > > root@ubuntu4-4-VM1:/proc/sys/net#

Re: running two bird daemons which listen on loopback IP

2018-06-19 Thread Ondrej Zajicek
On Tue, Jun 19, 2018 at 05:34:06PM +0200, Pavlos Parissis wrote: > Hi, > > For testing purposes I want to run two bird instances which listen on two > different IPs. Those IP > addresses are assigned to loopback interface(Linux box). I have configured > BGP but each daemon is > waiting the other

Re: Flowspec Extended communities

2018-06-21 Thread Ondrej Zajicek
On Thu, Jun 21, 2018 at 08:23:37PM +0200, Tim Weippert wrote: > Hi List, > > i do some testing on Bird as FlowSpec Controller. > ... > With this approach i can successfully drop all flow4 entries on a > cisco ASR 1001-X. But how would i add several flow routes to the flow > table and deside diffe

Re: BGP channel add/remove

2018-06-26 Thread Ondrej Zajicek
On Fri, Jun 22, 2018 at 09:23:02AM +, Arvin Gan wrote: > Hi All, > I am using Bird 2.0.2 version, I create a BGP instance with one channel IPV4, > that all work normally. Then I modified configuration file and add new > channel IPV6, and using command "configure" under birdc , found the new

Re: BGP channel add/remove

2018-06-27 Thread Ondrej Zajicek
On Mon, Jun 25, 2018 at 07:23:09AM +, Arvin Gan wrote: > Hi All, > After investigate the codes for command "configure", found that when > delete/add channel, the function proto_configure_channel() always return > value "1" , that mean the same is true in function bgp_reconfigure(), l

Re: BGP channel add/remove

2018-06-27 Thread Ondrej Zajicek
On Tue, Jun 26, 2018 at 10:43:59AM +, Arvin Gan wrote: > Hi Ondrej, >Thanks for your response. >As my code investigated, the function proto_configure_channel() always > return value "1" , that mean the same is true in function bgp_reconfigure(), > line 917 of proto.c will ignore

Re: BGP channel add/remove

2018-06-27 Thread Ondrej Zajicek
On Tue, Jun 26, 2018 at 01:28:08PM +0200, Martin Mares wrote: > Hi, > > > Perhaps we should trigger restart when BGP channels are added/removed > > and keep current behavior for 'configure soft'. > > yes, please. "configure" was always intended to switch to a new > configuration, even in cases w

Re: BGP hostentry update

2018-06-27 Thread Ondrej Zajicek
On Wed, Jun 27, 2018 at 07:25:49AM +, Arvin Gan wrote: > Hi All, > When I using bird 2.0.2 version ,I have an issue route include > "unreachable", but I think this application is reasonable , anyone can help > me ? > /* Recursive route should not depend on another recursive route *

Re: BGP hostentry update

2018-06-27 Thread Ondrej Zajicek
On Wed, Jun 27, 2018 at 11:15:02AM +, Arvin Gan wrote: > Hi Ondrej, > Is any consideration/plan to optimize this limitation ? No hard plan for this. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11

Re: BIRD 2.x and arrays

2018-06-27 Thread Ondrej Zajicek
On Wed, Jun 27, 2018 at 04:11:17PM +0200, Carlo Rengo wrote: > My bad, I’ve posted the log outputs in the opposite order. The first output > is referred to the second configuration (the one that makes us of the array). Hi, it works like it worked in 1.6.x branch. Prefix set [ 192.168.60.0/24 ] ma

Re: BIRD 2.x and arrays

2018-06-27 Thread Ondrej Zajicek
On Wed, Jun 27, 2018 at 04:36:44PM +0200, Carlo Rengo wrote: > Using "[ 192.168.60.0/24+ ]” works, however from the documentation I read the > following regarding the `include` operator: > > Special operators include (~, !~) for "is (not) element of a set" > operation - it can be used on

Re: MP_UNREACH_NLRI RFC8277 compatibility

2018-06-29 Thread Ondrej Zajicek
On Fri, Jun 29, 2018 at 04:26:46PM +0300, Vadim Fedorenko wrote: > Hi! > According to RFC 8277, NLRI for withdrawal contains 3 fields: Length, > Compatibility and Prefix. > "Upon transmission, the Compatibility field SHOULD be set to 0x80.Upon > reception, the value of the Compatibility field M

Re: BIRD - Config Support for RFC 3107 - Carrying Label Information in BGP

2018-06-30 Thread Ondrej Zajicek
ounced with local next hop via MPLS-BGP. Compile BIRD with it. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer i

Re: For developer, required some explanation on code with timer and BGP

2018-07-05 Thread Ondrej Zajicek
On Thu, Jul 05, 2018 at 05:19:33PM +0200, Mattia Milani wrote: > Hello all, this is a message for developer and who know how bird use timer, > and buffer. > Sorry for the length of this mail. > > For first, the protocol i want to modify and upgrade is BGP, i see that > there isn't the timer MRAI i

Re: route withdrawals are not sent upon protocol removal

2018-07-08 Thread Ondrej Zajicek
On Sat, Jul 07, 2018 at 07:08:06PM +0100, Thomás S. Bregolin wrote: > Hello Ondrej, > > I've been going through the BIRD source recently and as I sat down to take > a stab at a patch for this withdrawal thing I bumped into this while going > through nest/rt-table.c: > > https://gitlab.labs.nic.cz

Re: route server community evaluation examples - bug and fix

2018-07-08 Thread Ondrej Zajicek
On Fri, Jul 06, 2018 at 06:35:24PM +, Chris Caputo wrote: > On Mon, 22 Jan 2018, Chris Caputo wrote: > > To see the communities supported by the SIX route servers, refer to: > > > > https://www.seattleix.net/route-servers#communities > > > > Below is how we do it with bird 1.6.3. Not sure

Re: [PATCH] babel: Check TLV framing before dereferencing tlv->type

2018-07-10 Thread Ondrej Zajicek
On Tue, Jul 10, 2018 at 11:56:40PM +0200, Toke Høiland-Jørgensen wrote: > Signed-off-by: Toke Høiland-Jørgensen Hi I think that the current position is correct and the patch is not - the follow-up code ('The end of the common TLV header') checks for full 2-byte TLV header, while BABEL_TLV_PAD1 i

Re: BIRD - 6PE functionality support

2018-07-17 Thread Ondrej Zajicek
On Mon, Jul 16, 2018 at 06:24:19PM +, Thiruvazhiyan Lakshmanan wrote: > Hi, > We are looking for using BIRD in our VM for BGP 3107 functionality with > 6PE support. Basically BIRD should peer with peering router with > ipv6-label-unicast family and advertise its v6 loopback address with the >

Re: [PATCH RFC 2/2] babel: Add HMAC support

2018-07-17 Thread Ondrej Zajicek
On Sun, Jul 15, 2018 at 01:21:40AM +0200, Toke Høiland-Jørgensen wrote: > Martin Mares writes: > > > Hi Toke, > > > > just a random thought: > > > >> + getrandom(n->hmac_nonce, BABEL_HMAC_NONCE_LEN, 0); > > > > I think we cannot rely on getrandom() being available on all systems. > > It probably

Re: [PATCH RFC 2/2] babel: Add HMAC support

2018-07-17 Thread Ondrej Zajicek
On Fri, Jul 13, 2018 at 10:16:16PM +0200, Toke Høiland-Jørgensen wrote: > This implements support for HMAC verification in Babel, as specified by > draft-do-babel-hmac-00. Hi Thanks, will check that. One minor issue i just noticed (other than getrandom()) is that with BABEL_TLV_MAX increase we ha

Re: [PATCH RFC 1/2] babel: Define helper macro for looping through TLVs

2018-07-17 Thread Ondrej Zajicek
On Fri, Jul 13, 2018 at 10:16:16PM +0200, Toke Høiland-Jørgensen wrote: > Since we have several places where we loop over a TLV stream, define a > helper macro to deal with framing checks and looping. OK, but it also makes framing errors silent. I think there should be error message (like there is

Re: After update bird 1.6.3->1.6.4 my filter don't working

2018-07-18 Thread Ondrej Zajicek
On Wed, Jul 18, 2018 at 12:59:42PM +0300, Владислав Гришин wrote: > After update bird not announce prefixes with the same filter in config Hi, works for me (with 1.6.4, your filter and two test routes): BIRD 1.6.4 ready. bird> show route preexport bgp1 10.1.10.0/24 via 10.1.1.10 on ve0 [sta

Re: FreeBSD 11 and mixed BGP password issues?

2018-07-18 Thread Ondrej Zajicek
On Tue, Jul 17, 2018 at 02:12:14PM -0500, Thomas Johnson wrote: > If my limited understanding of the BIRD code is correct, when the > configuration of a BGP protocol instance specifies a password, the > TCP_MD5SIG option is set on the listen socket (and appropriate connect > sockets). Because of th

Re: segmentation fault in radv protocol

2018-07-19 Thread Ondrej Zajicek
On Thu, Jul 19, 2018 at 10:33:35AM +0200, Julian Schuh wrote: > Hi everyone, > > while poking around with bird I stumbled upon a reproducible segmentation > fault in the radv protocol (I think). Hi Thanks for the bugreport, attached patch should fix it. Simple workaround is to disable 'debug' l

Re: Filtering Flowspec Routes from/to BGP Peer

2018-07-23 Thread Ondrej Zajicek
On Mon, Jul 23, 2018 at 03:29:27PM +0200, Tim Weippert wrote: > Hi List, > > i currently search some informations of what filtering is possible in Bird on > Flowspec (flow4/flow6) routes. As i currently understand is, that the BGP > Common Fields (Community, AS_Path, etc.) is accesible and filt

Re: question

2018-07-24 Thread Ondrej Zajicek
On Tue, Jul 24, 2018 at 04:09:51PM +0430, Farhadtoosky wrote: > Hi, > > I'm using the Bird for a project and I need to use command line interface > such as Cisco router for OSPF config. Bird and birdc using .conf file for > configuration. Are there any way for config with CLI? How enable > int

Re: Bird 2 and device routes switch in kernel configuration section

2018-08-03 Thread Ondrej Zajicek
On Fri, Aug 03, 2018 at 03:24:46PM +0200, Julien Dessaux wrote: > Hello, > > I have found something odd will try testing bird 2 with some of my > configurations. It seems that the "device routes on" in the kernel > configuration section doesn't exist anymore. The documentation still > references i

Re: bird 2 and vpn4 mpls

2018-08-08 Thread Ondrej Zajicek
On Mon, Aug 06, 2018 at 11:34:16AM -0500, Chris Herdt wrote: > Following the example at https://github.com/BIRD/bird/ > blob/v2.0.2/doc/bird.conf.example2, I set up a simple bird config (see > below). > > It is working, but I am not certain what the '---' in the table column of > the output of `sh

Re: IPv6 next-hop with incorrect link-local address received

2018-08-10 Thread Ondrej Zajicek
On Fri, Aug 10, 2018 at 12:35:48PM +0200, Sebastian Neuner wrote: > Hi all, > > So now the next-hop in the BGP update looks like this: > > > Next hop network address (32 bytes) > >Next Hop: ::c02::28 > >Next Hop: fe80::28a:96ff:fecc:c10 > > The GUA next-hop is correct and points

Re: IPv6 next-hop with incorrect link-local address received

2018-08-10 Thread Ondrej Zajicek
On Fri, Aug 10, 2018 at 02:43:18PM +0200, Sebastian Neuner wrote: > > And you can use: > > > > bgp_next_hop = bgp_next_hop; > > This actually sets the right next-hop, but for some reason it sets the > route to the wrong interface (i.e. to the Cisco). That is because import filter is processed

Re: Looking for a complete examples of BIRD as a BGP Router

2018-08-10 Thread Ondrej Zajicek
On Fri, Aug 10, 2018 at 01:53:15PM -0300, Felipe N. Oliva wrote: > Hello List! > > I'm new here, let me explain a little about me. I've been using FreeBSD + > OpenBGPd for a long time as a BGP Router, but there are a lot of problems > with de port, because it is very old(just in FreeBSD, okay?). >

Re: Arista Switch BFD issue - custom port

2018-08-14 Thread Ondrej Zajicek
On Mon, Aug 13, 2018 at 03:14:10PM +0200, Jakub Nowacki wrote: > Hi, > > I'm running BIRD on Arista which allows access to Linux bash. I'm having > issue with running multihop BFD session on it and I believe it's related to > port being already binded. > > > bash-4.3# netstat -tulpen | grep 4784

Re: Strange behavior, cannot reach 4th hop

2018-08-14 Thread Ondrej Zajicek
On Fri, Aug 10, 2018 at 10:06:19AM +, TI2015: Kulesza, Dawid wrote: > Hello, > > few days ago I struggled with bird configuration over openvpn. It's > working now. I can see, that every host has proper routes and with birdc > show ospf topology I can see, that every router sees everyone else.

Re: BFD socket bind error upon reboot

2018-08-14 Thread Ondrej Zajicek
On Fri, Aug 10, 2018 at 11:23:56PM +0200, J. Kendzorra wrote: > Hi, > > upon a reboot of a system running BFD I recently noticed BFD breaking > with error "Cannot assign requested address" once the system came back. > Restarting the BFD protocol in question solved the problem. > Hence, apparently

Re: [PATCH RFC 2/2] babel: Add HMAC support

2018-08-14 Thread Ondrej Zajicek
Hi Finally got to finish the review. The code looks OK, comments below. The getrandom() issue and issue with fixed length of indexes and so on was already mentioned before. I am OK with reasonable fixed upper bound, but the code should be able to handle received shorter ones. I have an issue with

Re: [PATCH RFC 2/2] babel: Add HMAC support

2018-08-15 Thread Ondrej Zajicek
On Tue, Aug 14, 2018 at 07:40:02PM +0200, Toke Høiland-Jørgensen wrote: > > IMHO the draft describes this order: > > > > - parse trailer > > - preparse for PC and index > > - verify authentication (HMAC and PC/index) > > - regular parse and processing > > > > You are doing > > > > - parse trailer >

Re: BFD socket bind error upon reboot

2018-08-15 Thread Ondrej Zajicek
On Wed, Aug 15, 2018 at 11:23:33AM +0200, J. Kendzorra wrote: > Hi, > > > Generally, BIRD should not try to use an address before it notices that > > the address is available/active. If BIRD tries to bind the socket before > > that, then it is a bug. > > This seems to be a common pattern for serv

Re: ospf between bird (accel pppoe server) and mikrotik

2018-08-17 Thread Ondrej Zajicek
On Thu, Aug 16, 2018 at 01:37:05PM -0300, Alexandrino Neto wrote: > Hi guys, I'm using bird on a pppoe server (accel) connected directly to a > mikrotik and I need ospf between them to advertise the prefixes of the > pppoe clients. The accel server is already receiving the mikrotik routes > through

Re: route server appears to be selecting preferred routes and not all routes

2018-08-21 Thread Ondrej Zajicek
On Mon, Aug 20, 2018 at 02:59:55PM -0700, Stephen Fromm wrote: > We are running bird as a route server to support a small IX. The > challenge we are having is that it appears that bird is selecting a > preferred route from what is advertised to the route servers and then > advertising back out onl

Re: Fwd: Opaque pipe in bird 2.0?

2018-08-21 Thread Ondrej Zajicek
On Fri, Aug 17, 2018 at 03:41:30PM +0200, Piotr Wydrych wrote: > Bumping up - even if there is no good answer to my question, I think that > the documentation should be fixed :-) Hi Forgot to answer, sorry. The opaque mode was removed, it has some inherent problems and limited applicability. We p

Re: Help with multiple routing tables.

2018-08-21 Thread Ondrej Zajicek
On Mon, Aug 20, 2018 at 11:10:39PM -0600, Grant Taylor wrote: > Hi, > > I need a second set of eyes on the following config. I feel like I've made > a mistake and I'm too tired to see it. > > - main_rib is Linux kernel table #254 and has all locally attached > interfaces. There is no default g

Re: bird2: channel down in direct protocol

2018-08-21 Thread Ondrej Zajicek
On Sun, Aug 19, 2018 at 06:14:52PM +0200, Alarig Le Lay wrote: > Hi, > > I would like to import interfaces routes in my bird instance, so I wrote > this into my configuration: > > protocol direct { > ipv6; > } > > But the channel is down when I look thought birdc: > > bird> show protoco

Re: BGP resolvable issue

2018-08-21 Thread Ondrej Zajicek
On Tue, Aug 21, 2018 at 01:43:58AM +, Arvin Gan wrote: > Ping, anyone known it ?:) > > Thanks > Arvin > > From: Arvin Gan > Sent: Monday, August 13, 2018 5:42 PM > To: bird-users@network.cz > Subject: BGP resolvable issue > > Hi all, >In RFC4271, If the NEXT_HOP attribute of a BGP route

Re: bird2: channel down in direct protocol

2018-08-21 Thread Ondrej Zajicek
On Tue, Aug 21, 2018 at 02:57:31PM +0200, Alarig Le Lay wrote: > Hi, > > On mar. 21 août 14:48:49 2018, Ondrej Zajicek wrote: > > And do you have routes in BIRD? This output are routes from kernel, which > > are here regardless of BIRD. > > I don’t have the routes for

Re: bird2: channel down in direct protocol

2018-08-21 Thread Ondrej Zajicek
On Tue, Aug 21, 2018 at 03:08:39PM +0200, Alarig Le Lay wrote: > On mar. 21 août 15:02:06 2018, Ondrej Zajicek wrote: > > If you restart the protocol does the cahnnel became up? If you restart > > BIRD will the channel be started as down or up? > > The channel is up after ei

Re: Help with multiple routing tables.

2018-08-23 Thread Ondrej Zajicek
On Wed, Aug 22, 2018 at 05:25:33PM -0600, Grant Taylor wrote: > One for each kernel routing table (253 & 254) and the view that RIP has. > > I think that I will need to import from the default_rib (253) into RIP -and- > filter said default from RIP so that it doesn't get into the main_rib (254). >

Re: bug or documentation bug

2018-08-24 Thread Ondrej Zajicek
On Fri, Aug 24, 2018 at 05:58:08PM +0200, Clemens Schrimpe wrote: > Hello - > > the manual explains a global protocol option: > > description "text" > This is an optional description of the protocol. It is displayed as a part of > the output of 'show route all' command. Hello It should be 'sho

Re: Bird does not export routes with different proto

2018-08-26 Thread Ondrej Zajicek
On Sun, Aug 26, 2018 at 09:54:19AM +0200, Kevin Schmitz wrote: > Hi guys, > > i tried to announce routes via ospf first time. Till now i use babel to > get my routes in my table. Now i want to announce the babel routes > trough my ospf as well. > > But here i see, even if import and export filter

Re: Does Bird supports AS_Trans 23456

2018-08-28 Thread Ondrej Zajicek
On Tue, Aug 28, 2018 at 07:57:43AM +, gerta toli wrote: > > Hello everyone, > > Does anyone know or test the AS_Trans 23456 with Bird? We are using > Bird and our ASN is 4 byte, but the peer supports only 2bytes ASN. I told > them to use the AS23456 to peer with me, but it seems Bird doesnt >

Re: Does Bird supports AS_Trans 23456

2018-08-28 Thread Ondrej Zajicek
On Tue, Aug 28, 2018 at 11:48:31AM +, gerta toli wrote: > HI Ondrej, > > > This is my configuration > > protocol bgp eBGP4byteASN { > debug all; >    import all; >    export filter out; >    local as "my-4byteASN"; >    neighbor 192.168.0.1 as 65535; >    source address 192.168.0.2; > } > >

Re: Does Bird supports AS_Trans 23456

2018-08-28 Thread Ondrej Zajicek
On Tue, Aug 28, 2018 at 12:33:38PM +, gerta toli wrote: > I understand what you are saying but they are insisting that they router > doesnt support 4byte ASN. Im not sure what the router and the version they > are using. You can catch the session establishment attempt using tcpdump tool to s

Re: BGP syntax for OR/AND on bgpmask

2018-08-28 Thread Ondrej Zajicek
On Tue, Aug 28, 2018 at 10:43:47AM -0300, heisenbug at xpto wrote: > Hello, > > I'm trying to use logical operators like OR and AND on bgpmask filter, > but I'm not able, Can you please check if the syntax ir wrong or if is > possible to do what I expect to do? The data from output is sanitized. >

Re: Routing Table Dumps

2018-08-29 Thread Ondrej Zajicek
On Tue, Aug 28, 2018 at 01:07:15PM -0500, Joshua J wrote: > Hi, > >I was wondering what the team was doing to support routing table dumps. > I see the PR > https://gitlab.labs.nic.cz/labs/bird/commit/6702b7ad7417bf52ab35102061919b1161204076 Hi I am currently finishing a new MRT dumping code

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