[BGP] Set up bgp through the internet on public servers
Yakov Sh.
yman at protonmail.ch
Sat Nov 2 13:36:05 CET 2024
Hi,
Since you have only BGP protocol defined, BIRD knows nothing about any routes that could exist on your system. If you want to import local routes into BIRD you need to add some other protocols, usually it's 'device', 'direct' and 'kernel'.
Yakov Sh.
telegram: @darkyman
Sent with [Proton Mail](https://proton.me/mail/home) secure email.
On Saturday, November 2nd, 2024 at 11:34, Talal Gharsa <g_hisoka at hotmail.com> wrote:
> Hello,
>
> I rent physical hosts from a public cloud provider and i am trying to set up a private network between them.
> For that, i want to configure BGP protocol between them.
> I use Bird 2.15.1 on AlmaLinux 9.2.
> Each host has a public ip that i use as « router id » and « neighbor ».
> I add a private ip 10.1.1.x on lo interface used for BGP.
>
> birdc show protocol command confirm that the bgp session is established. State is « up » and Info column displays « Established ».
> But birdc show route command is empty; it shows only the following message « BIRD 2.15.1 ready. ».
> The routing tables seems to not be shared between the peers.
> There are no errors in the logs (either /var/log/messages nor journalctl).
>
> Do you know if this approach is technically possible?
>
> Herunder the configuration:
> $ cat /etc/bird/bird.conf
> router id <public ip>;
>
> protocol bgp bgp_static {
> local as 65001;
> neighbor <server 2 public ip> as 65001;
> multihop 99;
>
> ipv4 {
> import all;
> export filter {
> if net = 10.1.1.1/32 then accept;
> reject;
> };
> };
>
> debug all;
> }
>
> Many Thanks,
> tg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20241102/08e2a435/attachment.htm>
More information about the Bird-users
mailing list