-
Notifications
You must be signed in to change notification settings - Fork 2
/
gobgpd.rt2.conf
55 lines (46 loc) · 1.39 KB
/
gobgpd.rt2.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
[global.config]
as = 65020
router-id = "10.10.0.20"
[zebra]
[zebra.config]
enabled = true
url = "unix:/var/run/quagga/zserv.api"
redistribute-route-type-list = ["connect"]
version = 2
[[neighbors]]
[neighbors.config]
neighbor-address = "10.10.0.10"
peer-as = 65010
[[neighbors]]
[neighbors.config]
neighbor-address = "10.20.0.10"
peer-as = 65010
[[neighbors]]
[neighbors.config]
neighbor-address = "10.10.0.30"
peer-as = 65030
# Prefixes to announce
[[defined-sets.prefix-sets]]
prefix-set-name = "local-net"
[[defined-sets.prefix-sets.prefix-list]]
ip-prefix = "172.20.20.0/24"
masklength-range = "24..24"
# Neighbors to announce Prefixes
[[defined-sets.neighbor-sets]]
neighbor-set-name = "all-neighbors"
neighbor-info-list = ["10.10.0.10", "10.20.0.10", "10.10.0.30"]
# Export Policy
[[policy-definitions]]
name = "export-policy"
[[policy-definitions.statements]]
name = "export-local-net"
[policy-definitions.statements.conditions.match-prefix-set]
prefix-set = "local-net"
[policy-definitions.statements.conditions.match-neighbor-set]
neighbor-set = "all-neighbors"
[policy-definitions.statements.actions]
route-disposition = "accept-route"
[global.apply-policy.config]
export-policy-list = ["export-policy"]
default-import-policy = "accept-route"
default-export-policy = "reject-route"