-
-
Notifications
You must be signed in to change notification settings - Fork 120
/
Copy pathbird6.rs4.conf
85 lines (78 loc) · 1.44 KB
/
bird6.rs4.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
log "/var/log/bird6.log" all;
router id 1.1.1.4;
#
# Act as an OSPF router. Use `internal` table for this.
#
table internal;
protocol device {
scan time 10;
table internal;
}
protocol kernel {
persist;
table internal;
import none;
export all;
}
protocol ospf INTERNAL {
table internal;
import all;
export all;
area 0.0.0.0 {
networks {
2001:db8:1::/64;
};
interface "eth0";
};
}
#
# Be a route server, connected to edge routers
#
# Connect to routers
template bgp INFRABGP {
export all;
import none;
local as 65002;
rs client;
}
protocol bgp ER2 from INFRABGP {
neighbor 2001:db8:1::2 as 65003;
}
protocol bgp ER3 from INFRABGP {
neighbor 2001:db8:1::3 as 65003;
}
protocol bgp DR6 from INFRABGP {
neighbor 2001:db8:1::6 as 65003;
}
protocol bgp DR7 from INFRABGP {
neighbor 2001:db8:1::7 as 65003;
}
protocol bgp DR8 from INFRABGP {
neighbor 2001:db8:1::8 as 65003;
}
# Only import loopback IPs
filter only_loopbacks
{
if net ~ [ 2001:db8:30::/64{128,128} ] then accept;
reject;
}
# General template for an EXABGP node
template bgp EXABGP {
local as 65002;
import filter only_loopbacks;
export none;
route limit 10;
rs client;
hold time 6;
multihop 10;
igp table internal;
}
protocol bgp W1 from EXABGP {
neighbor 2001:db8:6::11 as 65001;
}
protocol bgp W2 from EXABGP {
neighbor 2001:db8:7::12 as 65001;
}
protocol bgp W3 from EXABGP {
neighbor 2001:db8:8::13 as 65001;
}