Oh, wonderful, nice configuration. Will try

-----Original Message-----
From: Ondrej Zajicek <santi...@crfreenet.org>
Sent: Monday, February 13, 2023 10:45 AM
To: LIU Chris <chris-zq....@urbanandmainlines.com>
Cc: bird-users@network.cz
Subject: Re: Bird bfd configuration

On Mon, Feb 13, 2023 at 02:56:56PM +0000, LIU Chris wrote:
> Hi Zajicek,
>
> Many thanks for your reply.
> No any problem to set just one BFD instance.  In my case, I have multiple BGP 
> instances,  I set bfd on inside each BGP instance.
> If just one bfd instance,  how do bird correlate with BGP instances ?

The BFD instance knows which BGP instance requested that peer, so it notified 
appropriate BGP instance if something happens with that peer.

> And also, if want to set different min/max Rx interval value for each BGP 
> session in BFD instance configuration, how to distinguish them ?

If they are on different ifaces (like in your example), you can have multiple 
interface statements in one BFD instance.

But in general, you can specify BFD parameters also directly in BGP protocol as 
options of 'bfd' switch:

https://bird.network.cz/?get_doc&v=20&f=bird-6.html#bgp-bfd

protocol bfd {
}

protocol bgp {
  ...
  bfd {
    min rx interval 1000000 us;
    min tx interval 1000000 us;
  };
}


--
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 is even more so."
Thales is in the process of carving out its Transportation activity (GTS) from 
other Thales’ activities. In order to prepare this internal restructuring, a 
new e-mail address has been adopted and your GTS contacts now use 
urbanandmainlines.com. Please note that their Thales e-mail address remains 
also valid.

Reply via email to