-
Notifications
You must be signed in to change notification settings - Fork 0
/
bgp6.conf
114 lines (92 loc) · 2.97 KB
/
bgp6.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
define IBGP_PASSWORD = "IBGP PASSWORD";
################################################################################
# BGP templates #
################################################################################
template bgp general_bgp {
local as AS_LOCAL;
enable route refresh on;
graceful restart time 300;
med metric on;
}
template bgp general_ebgp {
local as AS_LOCAL;
enable route refresh on;
graceful restart time 300;
med metric on;
next hop self;
}
template bgp ibgp from general_bgp {
password IBGP_PASSWORD;
source address IBGP_SOURCE;
next hop self;
import filter ibgp_in;
export filter ibgp_out;
}
##########################################
# Upstream BGP templates #
##########################################
template bgp global_transit from general_ebgp {
import filter global_transit_in;
export filter global_transit_out;
}
template bgp metro_transit from general_ebgp {
import filter metro_transit_in;
export filter metro_transit_out;
}
##########################################
# Peering BGP templates #
##########################################
template bgp global_peer from general_ebgp {
import filter global_peer_in;
export filter global_peer_out;
}
template bgp metro_peer from general_ebgp {
import filter metro_peer_in;
export filter metro_peer_out;
}
template bgp px_global_peer from general_ebgp {
import filter px_global_peer_in;
export filter global_peer_out;
}
template bgp px_metro_peer from general_ebgp {
import filter px_metro_peer_in;
export filter metro_peer_out;
}
template bgp px_global_backup_peer from general_ebgp {
import filter px_global_backup_peer_in;
export filter global_peer_out;
}
template bgp px_metro_backup_peer from general_ebgp {
import filter px_metro_backup_peer_in;
export filter metro_peer_out;
}
template bgp route_server from general_ebgp {
import filter route_server_in;
export filter metro_peer_out;
}
##########################################
# Downstream BGP templates #
##########################################
template bgp ebgp_community from general_ebgp {
export filter community_out;
# export filter {
# if net = ::/0 then accept;
# reject;
# };
}
template bgp bilateral_metro_transit from general_ebgp {
import filter drain;
export filter bilateral_metro_transit_out;
}
template bgp metro_transit_customer from general_ebgp {
import filter drain;
export filter metro_transit_customer_out;
}
template bgp bilateral_global_transit from general_ebgp {
import filter drain;
export filter bilateral_global_transit_out;
}
template bgp global_customer from general_ebgp {
import filter drain;
export filter global_transit_customer_out;
}