ospf.conf.j2 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. define FFDO_subnet_new =
  2. [
  3. 10.0.0.0/12{12,24}
  4. ];
  5. define FFDO_subnet_old =
  6. [
  7. 10.233.0.0/18+
  8. ];
  9. define AS31371_nets =
  10. [
  11. 91.204.4.0/22+,
  12. 195.160.168.0/23+,
  13. 193.43.221.0/24+
  14. ];
  15. define AS35675_nets =
  16. [
  17. 193.43.220.0/23+
  18. ];
  19. protocol ospf ospf6 {
  20. import where net ~ FFDO_subnet_old ||
  21. net ~ AS31371_nets ||
  22. net ~ AS35675_nets;
  23. export filter {
  24. if net ~ FFDO_subnet_new ||
  25. net ~ AS35675_nets
  26. then {
  27. if ifname != "lo"
  28. then ospf_metric1 = 10;
  29. accept;
  30. }
  31. else reject;
  32. };
  33. area 0.0.0.0 {
  34. interface {{ loopback_ipv4 }} { stub yes; cost 1; };
  35. interface "eth1" {
  36. cost 10;
  37. type broadcast;
  38. hello 10;
  39. retransmit 5;
  40. dead 40;
  41. wait 10;
  42. };
  43. };
  44. };