Ahoj, potrebuji rozjet iBGP mezi dvema servery. Jako routovaciho daemona pouzivam Bird v2. Bohuzel se mi nepropisuji routy z Birda do routovaci tabule OS.
# ip ro sho
10.2.3.0/24 dev enp0s16 proto kernel scope link src 10.2.3.2 metric 102
# birdc show route
BIRD 2.15.1 ready.
Table master4:
0.0.0.0/0 unicast [ibgp1 16:02:20.063] * (100) [i]
via 10.2.3.1 on enp0s16
10.6.1.0/24 unicast [ibgp1 16:02:20.063] * (100) [i]
via 10.2.3.1 on enp0s16
10.2.3.0/24 unicast [direct1 16:02:15.406] * (240)
dev enp0s16
unicast [kernel1 16:02:15.406] (10)
dev enp0s16
unicast [ibgp1 16:02:20.063] (100) [i]
via 10.2.3.1 on enp0s16
Podle dokumentace se o tento proces stara kernel protocol. Pro nej mam nastaveno import all coz by melo zajistit importovani vsech rout z dalsich protokolu a export none; Exportuji se direct tedy neni nutne exportovt kernel. Pro BGP jsem nastavil import all a export all ovsem tady uz jsem ve stavu kde experimentuji. Nastveni birda:
/etc/bird.conf
log "/var/log/bird.log" { debug, trace, info, remote, warning, error, auth, fatal, bug };
debug protocols all;
protocol device {
scan time 10;
}
protocol direct {
ipv4;
interface "enp0s16";
}
protocol kernel {
ipv4 {
import all;
export none;
};
scan time 10;
learn all;
}
protocol static {
ipv4;
}
protocol bgp ibgp1 {
local as 65000;
neighbor 10.2.3.1 as 65000;
ipv4 {
import all;
export all;
};
}
V logu birda neni nic co by napovedelo, proc se neprovede sync do kernelu. Sekci static bych taky mohl prozatim vypustit, ale ponechavam ji pro dalsi pokusy.