-
Notifications
You must be signed in to change notification settings - Fork 1
/
bird-router.conf
73 lines (57 loc) · 1.29 KB
/
bird-router.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
log stderr all;
debug protocols all;
filter sacredemo {
# the example IPv4 VIP announced by Cilium
if (net ~ 10.10.10.0/24) then
{
accept;
}
};
router id 172.22.102.2;
protocol direct {
disabled;
}
protocol kernel {
persist; # Don't remove routes on bird shutdown
scan time 20; # Scan kernel routing table every 20 seconds
merge paths yes limit 10; # ECMP
ipv4 { # Connect protocol to IPv4 table by channel
import all; # Default is export none
export all; # Default is export none
};
}
# This pseudo-protocol watches all interface up/down events.
protocol device {
scan time 10; # Scan interfaces every 10 seconds
}
protocol bgp users {
local as 64003;
neighbor 172.22.100.3 as 64002;
graceful restart yes;
hold time 180;
ipv4 {
next hop self;
import none;
export filter sacredemo;
};
}
template bgp bgp_cilium {
local 172.22.101.2 as 65002;
passive no;
graceful restart yes;
hold time 180;
ipv4 {
next hop self;
import filter sacredemo;
export none;
};
}
protocol bgp cilium1 from bgp_cilium {
neighbor 172.22.101.101 as 65006;
}
protocol bgp cilium2 from bgp_cilium {
neighbor 172.22.101.102 as 65006;
}
protocol bgp cilium3 from bgp_cilium {
neighbor 172.22.101.103 as 65006;
}