BGP: Only possible to set neigbor once

Alexander Zubkov green at qrator.net
Sat Dec 30 15:33:13 CET 2023


Hi,

>From my understanding, there can be only one neighbor here, but you can set
different parts of it with multiple directives, i.e.:

neighbor 10.0.1.1;
neighbor as 65000;

But two different IPs would be two neighbors and you must have two separate
bgp protocols for that. Or a dynamic protocol that spawns specific
protocols.

Regards,
Alexander

On Sat, Dec 30, 2023, 14:42 Nico Schottelius via Bird-users <
bird-users at network.cz> wrote:

>
> Hello again,
>
> in the bird documentation for BGP it says:
>
>
> --------------------------------------------------------------------------------
>  neighbor [ip | range prefix] [port number] [as number] [internal|external]
>
> ...
> Like local parameter, this parameter may also be used multiple times
> with different sub-options.
> ...
>
>
> --------------------------------------------------------------------------------
>
> That is however not possible, as can be seen :
>
>
> --------------------------------------------------------------------------------
> blind:/home/nico# bird -c ./bird.conf
> bird: ./bird.conf:3:28 Only one neighbor per BGP instance is allowed
> blind:/home/nico# cat bird.conf
> protocol bgp client1  {
>         neighbor 10.0.1.1 as 65000;
>         neighbor 10.0.1.2 as 65000;
>
>     ipv4;
> }
>
> --------------------------------------------------------------------------------
>
> So my question is, is
>
>  - a) the documentation wrong
>  - b) the code wrong or
>  - c) the reader wrong?
>
> Best regards,
>
> Nico
>
> p.s.: tested on bird 2.14
>
> --
> Sustainable and modern Infrastructures by ungleich.ch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20231230/d306ca2d/attachment.htm>


More information about the Bird-users mailing list