bird6.conf.j2 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. log syslog all;
  2. router id {{supernode_mesh_ipv4|ipaddr('address')}};
  3. protocol static uplink_hostroute {
  4. import all;
  5. export all;
  6. }
  7. protocol direct {
  8. interface "*";
  9. }
  10. protocol kernel {
  11. persist;
  12. device routes;
  13. scan time 20;
  14. import all;
  15. export all;
  16. kernel table 42;
  17. }
  18. protocol device {
  19. scan time 10;
  20. }
  21. template bgp ibgp {
  22. source address {{supernode_mesh_ipv6|ipaddr('address')}};
  23. local as {{supernode_as}};
  24. import all;
  25. export all;
  26. next hop self;
  27. direct;
  28. gateway direct;
  29. }
  30. template bgp uplink {
  31. local as {{supernode_uplinks[0].as}};
  32. import all;
  33. export all;
  34. next hop self;
  35. direct;
  36. multihop 64;
  37. }
  38. {% for uplink in supernode_uplinks %}
  39. protocol bgp {{uplink.name}} from uplink {
  40. neighbor {{uplink.address_v6|ipaddr('address')}} as {{uplink.as}};
  41. default bgp_med 2;
  42. }
  43. {% endfor %}
  44. {% for meshlink in supernode_mesh_backbones %}
  45. protocol bgp {{meshlink.name}} from ibgp {
  46. neighbor {{meshlink.address_v6}} as {{supernode_as}};
  47. default bgp_med 4;
  48. }
  49. {% endfor %}