Advertisement
Guest User

Untitled

a guest
May 26th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. [root@vr1 log]# cat /etc/bird.conf
  2. # Configure logging
  3. log syslog all;
  4. log stderr all;
  5.  
  6. # Override router ID
  7. router id 10.1.1.10; # <Configurable, if not set use public IP>
  8.  
  9. # This pseudo-protocol performs synchronization between BIRD's routing
  10. # tables and the kernel. If your kernel supports multiple routing tables
  11. # (as Linux 2.2.x does), you can run multiple instances of the kernel
  12. # protocol and synchronize different kernel tables with different BIRD tables.
  13. protocol kernel {
  14. learn; # Learn all alien routes from the kernel
  15. persist; # Don't remove routes on bird shutdown
  16. scan time 20; # Scan kernel routing table every 20 seconds
  17. import all; # Default is import all
  18. export all; # Default is export none
  19. # kernel table 5; # Kernel table to synchronize with (default: main)
  20. }
  21.  
  22. # This pseudo-protocol watches all interface up/down events.
  23. protocol device {
  24. scan time 10; # Scan interfaces every 10 seconds
  25. }
  26.  
  27. # Static routes (again, there can be multiple instances, so that you
  28. # can disable/enable various groups of static routes on the fly).
  29. #protocol static {
  30. # disabled; # Disable by default
  31. # table testable; # Connect to a non-default table
  32. # preference 1000; # Default preference of routes
  33. # debug { states, routes, filters, interfaces, events, packets };
  34. # debug all;
  35. # route 0.0.0.0/0 via 198.51.100.13;
  36. # route 198.51.100.0/25 unreachable;
  37. # route 10.0.0.0/8 unreachable;
  38. # route 10.1.1.0:255.255.255.0 via 198.51.100.3;
  39. # route 10.1.2.0:255.255.255.0 via 198.51.100.3;
  40. # route 10.1.3.0:255.255.255.0 via 198.51.100.4;
  41. # route 10.2.0.0/24 via "arc0";
  42. #}
  43.  
  44. protocol direct {
  45. interface "eth*"; # Restrict network interfaces it works with
  46. }
  47.  
  48. #
  49. filter export_OSPF {
  50. # redistribute connected
  51. if ( source = RTS_DEVICE ) then {
  52. print "net accepted:", net;
  53. ospf_metric2 = 20;
  54. accept;
  55. }
  56. # redistribute static
  57. if ( source = RTS_STATIC_DEVICE ) then {
  58. print "net accepted:", net;
  59. ospf_metric2 = 20;
  60. accept;
  61. }
  62.  
  63. if ( source = RTS_STATIC ) then {
  64. print "net accepted:", net;
  65. ospf_metric2 = 20;
  66. accept;
  67. }
  68.  
  69. reject;
  70. }
  71.  
  72.  
  73. protocol ospf OspfProc {
  74. tick 2;
  75. export filter export_OSPF;
  76. rfc1583compat yes;
  77. area 0 { # <configurable, integer, area 0 is a backbone area>
  78. interface "eth0" { # <public interface>
  79. hello 10; # <configurable>
  80. retransmit 5; # <configurable>
  81. cost 10;
  82. transmit delay 1; # <configurable>
  83. dead count 4; # <configurable, hello*dead count = dead seconds
  84. wait 40;
  85. type broadcast;
  86. authentication cryptographic; # <configurable, cryptographic = MD5 or simple = plaintext>
  87. password "area0key"; # <configurable, ospf key>
  88. };
  89. };
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement