-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbird.conf
130 lines (103 loc) · 2.23 KB
/
bird.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
log "/var/log/bird.log" all;
debug protocols all;
router id 10.100.14.109;
ipv4 table bgp4;
ipv6 table bgp6;
protocol direct {
ipv4;
ipv6;
interface "-eno1*","-lo*", "*";
}
protocol device {
scan time 10;
}
protocol pipe v4 {
table bgp4;
peer table master4;
}
protocol pipe v6 {
table bgp6;
peer table master6;
}
protocol kernel {
ipv4 {
import none;
export none;
};
kernel table 254; # Kernel table to synchronize with (default: main)
}
protocol kernel {
ipv6 {
import none;
export none;
};
kernel table 254;
}
protocol kernel kernel_bgp4 {
kernel table 200;
learn;
persist;
ipv4 {
table bgp4;
import all;
export all;
};
}
protocol kernel kernel_bgp6 {
kernel table 201;
ipv6 {
table bgp6;
import all;
export all;
};
}
protocol static static_bgp4 {
ipv4 {
table bgp4;
};
route 10.47.142.0/24 via "eno2";
}
protocol static static_bgp6 {
ipv6 {
table bgp6;
};
route 2001:dc8:142::/48 via "eno2";
}
template bgp AHI_v4 {
debug all;
local as 65000;
source address 10.100.14.109;
ipv4 {
table bgp4;
import all;
export where proto = "static_bgp4";
};
graceful restart on;
}
template bgp AHI_v6 {
debug all;
local as 65000;
source address 2001:de8:47::109;
ipv6 {
table bgp6;
import all;
export where proto = "static_bgp6";
};
graceful restart on;
}
protocol bgp AHI_01 from AHI_v4 {
neighbor 10.100.14.1 as 64000;
multihop;
}
protocol bgp AHI_02 from AHI_v4 {
neighbor 10.100.14.254 as 64000;
multihop;
}
protocol bgp AHI_01_v6 from AHI_v6 {
neighbor 2001:de8:47::1 as 64000;
multihop;
}
protocol bgp AHI_02_v6 from AHI_v6 {
neighbor 2001:de8:47::254 as 64000;
multihop;
}