Advertisement
Guest User

Untitled

a guest
Aug 19th, 2020
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. log syslog all;
  2. function is_default() {
  3. return net ~ [ 0.0.0.0/0 ];
  4. }
  5. protocol direct if_int {
  6. check link;
  7. interface "ext0*";
  8. interface "int0*";
  9. interface "vip0*";
  10. }
  11. protocol device {
  12. scan time 10;
  13. }
  14. protocol kernel {
  15. scan time 10;
  16. merge paths 8;
  17. persist;
  18. export filter {
  19. if net != 0.0.0.0/0 then {
  20. accept;
  21. }
  22. reject;
  23. };
  24. }
  25.  
  26. protocol static {
  27. check link;
  28. route 10.0.0.0/8 recursive 203.0.113.1;
  29. route 10.255.2.0/24 recursive 203.0.113.1;
  30. import filter {
  31. krt_prefsrc = 10.8.49.68;
  32. accept;
  33. };
  34. }
  35. protocol rip r1 {
  36. debug all;
  37. ecmp 8;
  38. interface "en*", "eth*" {
  39. update time 10;
  40. metric 1;
  41. poison reverse no;
  42. check link;
  43. };
  44. import filter {
  45. if is_default() then {
  46. accept;
  47. }
  48. reject;
  49. };
  50. export filter {
  51. if ifname ~ "ext0*" then {
  52. rip_metric = 1;
  53. accept;
  54. }
  55. if ifname ~ "int0*" then {
  56. rip_metric = 1;
  57. accept;
  58. }
  59. if ifname ~ "vip0*" then {
  60. rip_metric = 1;
  61. accept;
  62. }
  63. reject;
  64. };
  65. }
  66.  
  67. protocol bfd {
  68. interface "en*", "eth*" {
  69. multiplier 3;
  70. };
  71. neighbor 10.28.133.68;
  72. neighbor 10.28.133.130;
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement