bgp.conf 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. # Gitoyen <contact@gitoyen.net>
  2. #
  3. # vim: set ts=4:sw=4
  4. #
  5. # Default configuration for all bgp templates
  6. #
  7. template bgp tpl_bgp {
  8. # Use MED for routes received by different ASes
  9. med metric;
  10. }
  11. #
  12. # iBGP: Backbone
  13. #
  14. template bgp ibgp from tpl_bgp {
  15. direct;
  16. gateway direct;
  17. local as 20766;
  18. next hop self;
  19. import where bgp_import(20766,"core",0,100);
  20. export where bgp_export(20766,"core");
  21. }
  22. protocol bgp core_xray from ibgp {
  23. description "X-Ray - iBGP";
  24. neighbor 2001:910::4 as 20766;
  25. }
  26. protocol bgp core_vodka from ibgp {
  27. description "Vodka - iBGP";
  28. neighbor 2001:910::7 as 20766;
  29. }
  30. #
  31. # Member: FDN
  32. #
  33. template bgp tpl_fdn from tpl_bgp {
  34. local as 20766;
  35. description "Livraison FDN";
  36. import where bgp_import(65055,"member",50000,500);
  37. export where bgp_export(65055,"default");
  38. }
  39. protocol bgp member_fdn1 from tpl_fdn {
  40. neighbor 2001:910:0:800::213 as 65055;
  41. }
  42. protocol bgp member_fdn2 from tpl_fdn {
  43. neighbor 2001:910:0:800::214 as 65055;
  44. }
  45. #
  46. # Member: Lorraine Data Network
  47. #
  48. template bgp tpl_ldn from tpl_bgp {
  49. local as 20766;
  50. description "Livraison Lorraine Data Network";
  51. import where bgp_import(60197,"member",40000,500);
  52. export where bgp_export(60197,"full");
  53. }
  54. protocol bgp member_ldn1 from tpl_ldn {
  55. # cannibalon
  56. neighbor 2001:910:0:171::197 as 60197;
  57. }
  58. protocol bgp member_ldn2 from tpl_ldn {
  59. # eternium
  60. neighbor 2001:910:0:171::198 as 60197;
  61. }
  62. #
  63. # Member: Neutrinet
  64. #
  65. template bgp tpl_neutrinet from tpl_bgp {
  66. local as 20766;
  67. description "Livraison Neutrinet";
  68. import where bgp_import(204059,"member",40000,500);
  69. export where bgp_export(204059,"members");
  70. }
  71. protocol bgp member_neutrinet from tpl_neutrinet {
  72. neighbor 2001:910:0:108::238 as 204059;
  73. }
  74. #
  75. # Transit: Absolight
  76. #
  77. template bgp tpl_absolight from tpl_bgp {
  78. local as 20766;
  79. description "Transit Absolight";
  80. import where bgp_import(29608,"transit",10004,500);
  81. export where bgp_export(29608,"members");
  82. }
  83. protocol bgp transit_absolight from tpl_absolight {
  84. neighbor 2a01:678:1000:1::1 as 29608;
  85. description "Transit Absolight";
  86. }
  87. #
  88. # Transit: Ielo (th2)
  89. #
  90. template bgp tpl_ielo {
  91. local as 20766;
  92. description "Transit Ielo (th2)";
  93. import where bgp_import(29075,"transit",10003,500);
  94. export where bgp_export(29075,"members");
  95. }
  96. protocol bgp transit_ielo from tpl_ielo {
  97. neighbor 2a02:2178:3:5::1 as 29075;
  98. description "Transit Ielo (th2)";
  99. }
  100. #
  101. # Peering: Grenode
  102. #
  103. template bgp tpl_grenode from tpl_bgp {
  104. local as 20766;
  105. description "Peering Grenode";
  106. import where bgp_import(51083,"peering",30000,500);
  107. export where bgp_export(51083,"members");
  108. }
  109. protocol bgp peering_grenode1 from tpl_grenode {
  110. neighbor 2001:910:0:116::222 as 51083;
  111. }
  112. #
  113. # Peering: FranceIX
  114. #
  115. template bgp tpl_franceix_rs from tpl_bgp {
  116. local as 20766;
  117. import where bgp_import(51706,"peering",26000,210);
  118. export where bgp_export(51706,"members");
  119. import limit 100000;
  120. }
  121. template bgp tpl_franceix_peers from tpl_bgp {
  122. local as 20766;
  123. import where bgp_import(51706,"peering",26000,200);
  124. export where bgp_export(51706,"members");
  125. import limit 10000;
  126. }
  127. protocol bgp franceix_rs1 from tpl_franceix_rs {
  128. neighbor 2001:7f8:54::250 as 51706;
  129. description "FranceIX Route Server 1";
  130. }
  131. protocol bgp franceix_rs2 from tpl_franceix_rs {
  132. neighbor 2001:7f8:54::251 as 51706;
  133. description "FranceIX Route Server 2";
  134. }
  135. protocol bgp franceix_6939 from tpl_franceix_peers {
  136. neighbor 2001:7f8:54::10 as 6939;
  137. description "FranceIX / AS-HURRICANE";
  138. import limit 50000;
  139. }
  140. protocol bgp franceix_20562 from tpl_franceix_peers {
  141. neighbor 2001:7f8:54::68 as 20562;
  142. description "FranceIX / AS-OPENPEERING-EU";
  143. }
  144. protocol bgp franceix_34019 from tpl_franceix_peers {
  145. neighbor 2001:7f8:54::71 as 34019;
  146. description "FranceIX / AS-HIVANE";
  147. }
  148. protocol bgp franceix_42473 from tpl_franceix_peers {
  149. neighbor 2001:7f8:54::85 as 42473;
  150. description "FranceIX / AS-ANEXIA";
  151. }
  152. protocol bgp franceix_197692 from tpl_franceix_peers {
  153. neighbor 2001:7f8:54::133 as 197692;
  154. description "FranceIX / AS-CONOSTIX";
  155. }
  156. protocol bgp franceix_29467 from tpl_franceix_peers {
  157. neighbor 2001:7f8:54::227 as 29467;
  158. description "FranceIX / AS-LUXNETWORK";
  159. }
  160. protocol bgp franceix_197422 from tpl_franceix_peers {
  161. neighbor 2001:7f8:54::233 as 197422;
  162. description "FranceIX / Tetaneutral";
  163. }
  164. protocol bgp franceix_13335 from tpl_franceix_peers {
  165. neighbor 2001:7f8:54::1:49 as 13335;
  166. description "FranceIX / Cloudfare";
  167. }
  168. protocol bgp franceix_2484 from tpl_franceix_peers {
  169. neighbor 2001:7f8:54::20 as 2484;
  170. description "FranceIX / AFNIC";
  171. }
  172. protocol bgp franceix_42 from tpl_franceix_peers {
  173. neighbor 2001:7f8:54::92 as 42;
  174. description "FranceIX / AS-PCH";
  175. }
  176. protocol bgp franceix_3856 from tpl_franceix_peers {
  177. neighbor 2001:7f8:54::91 as 3856;
  178. description "FranceIX / AS-PCH";
  179. }
  180. protocol bgp franceix_39405 from tpl_franceix_peers {
  181. neighbor 2001:7f8:54::220 as 39405;
  182. description "FranceIX / FULLSAVE-AS";
  183. }
  184. #
  185. # Peering: EquinIX
  186. #
  187. # EquinIX: route collector (only for monitoring)
  188. template bgp tpl_equinix_rc from tpl_bgp {
  189. local as 20766;
  190. import where bgp_import(65517,"peering",22000,310);
  191. export where bgp_export(65517,"members");
  192. import limit 10;
  193. }
  194. protocol bgp equinix_rc1 from tpl_equinix_rc {
  195. neighbor 2001:7f8:43::6:5517:1 as 65517;
  196. description "EquinIX Route Collector 1";
  197. }
  198. # EquinIX: Route server
  199. template bgp tpl_equinix_rs from tpl_bgp {
  200. local as 20766;
  201. import where bgp_import(24115,"peering",22000,310);
  202. export where bgp_export(24115,"members");
  203. import limit 100000;
  204. }
  205. template bgp tpl_equinix_peers from tpl_bgp {
  206. local as 20766;
  207. import where bgp_import(24115,"peering",22000,300);
  208. export where bgp_export(24115,"members");
  209. import limit 10000;
  210. }
  211. protocol bgp equinix_rs1 from tpl_equinix_rs {
  212. neighbor 2001:7f8:43:0:ffff:ffff:ffff:1 as 24115;
  213. description "EquinIX Route Server 1";
  214. }
  215. protocol bgp equinix_rs2 from tpl_equinix_rs {
  216. neighbor 2001:7f8:43:0:ffff:ffff:ffff:2 as 24115;
  217. description "EquinIX Route Server 2";
  218. }
  219. protocol bgp equinix_6939 from tpl_equinix_peers {
  220. neighbor 2001:7f8:43::6939:1 as 6939;
  221. description "EquinIX / AS-HURRICANE";
  222. import limit 26000;
  223. }
  224. protocol bgp equinix_21371_1 from tpl_equinix_peers {
  225. neighbor 2001:07f8:43::2:1371:1 as 21371;
  226. description "EquinIX / AS-EQUINIX-EU 1";
  227. import limit 100;
  228. }
  229. protocol bgp equinix_21371_2 from tpl_equinix_peers {
  230. neighbor 2001:07f8:43::2:1371:2 as 21371;
  231. description "EquinIX / AS-EQUINIX-EU 2";
  232. import limit 100;
  233. }
  234. protocol bgp equinix_198507 from tpl_equinix_peers {
  235. neighbor 2001:7f8:43::19:8507:1 as 198507;
  236. description "EquinIX / AS-QUANTIC";
  237. import limit 50;
  238. }
  239. protocol bgp equinix_2486 from tpl_equinix_peers {
  240. neighbor 2001:7f8:43::2486:1 as 2486;
  241. description "EquinIX / AS-AFNIC";
  242. import limit 50;
  243. }
  244. protocol bgp equinix_43142 from tpl_equinix_peers {
  245. neighbor 2001:7f8:43::4:3142:1 as 43142;
  246. description "EquinIX / AS-Adelinovius";
  247. import limit 250;
  248. }
  249. protocol bgp equinix_49463 from tpl_equinix_peers {
  250. neighbor 2001:7f8:43::4:9463:1 as 49463;
  251. description "EquinIX / AS-LNCSA";
  252. import limit 25;
  253. }
  254. protocol bgp equinix_16276 from tpl_equinix_peers {
  255. neighbor 2001:7f8:43::1:6276:1 as 16276;
  256. description "EquinIX / AS-OVH";
  257. import limit 200;
  258. }
  259. protocol bgp equinix_4651 from tpl_equinix_peers {
  260. neighbor 2001:7f8:43::4651:1 as 4651;
  261. description "EquinIX / CAT TELECOM THIX";
  262. import limit 1000;
  263. }
  264. protocol bgp equinix_200780 from tpl_equinix_peers {
  265. neighbor 2001:7f8:43::20:780:1 as 200780;
  266. description "EquinIX / APPLIWAVE";
  267. import limit 25;
  268. }