Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@vr1 log]# cat /etc/bird.conf
- # Configure logging
- log syslog all;
- log stderr all;
- # Override router ID
- router id 10.1.1.10; # <Configurable, if not set use public IP>
- # This pseudo-protocol performs synchronization between BIRD's routing
- # tables and the kernel. If your kernel supports multiple routing tables
- # (as Linux 2.2.x does), you can run multiple instances of the kernel
- # protocol and synchronize different kernel tables with different BIRD tables.
- protocol kernel {
- learn; # Learn all alien routes from the kernel
- persist; # Don't remove routes on bird shutdown
- scan time 20; # Scan kernel routing table every 20 seconds
- import all; # Default is import all
- export all; # Default is export none
- # kernel table 5; # Kernel table to synchronize with (default: main)
- }
- # This pseudo-protocol watches all interface up/down events.
- protocol device {
- scan time 10; # Scan interfaces every 10 seconds
- }
- # Static routes (again, there can be multiple instances, so that you
- # can disable/enable various groups of static routes on the fly).
- #protocol static {
- # disabled; # Disable by default
- # table testable; # Connect to a non-default table
- # preference 1000; # Default preference of routes
- # debug { states, routes, filters, interfaces, events, packets };
- # debug all;
- # route 0.0.0.0/0 via 198.51.100.13;
- # route 198.51.100.0/25 unreachable;
- # route 10.0.0.0/8 unreachable;
- # route 10.1.1.0:255.255.255.0 via 198.51.100.3;
- # route 10.1.2.0:255.255.255.0 via 198.51.100.3;
- # route 10.1.3.0:255.255.255.0 via 198.51.100.4;
- # route 10.2.0.0/24 via "arc0";
- #}
- protocol direct {
- interface "eth*"; # Restrict network interfaces it works with
- }
- #
- filter export_OSPF {
- # redistribute connected
- if ( source = RTS_DEVICE ) then {
- print "net accepted:", net;
- ospf_metric2 = 20;
- accept;
- }
- # redistribute static
- if ( source = RTS_STATIC_DEVICE ) then {
- print "net accepted:", net;
- ospf_metric2 = 20;
- accept;
- }
- if ( source = RTS_STATIC ) then {
- print "net accepted:", net;
- ospf_metric2 = 20;
- accept;
- }
- reject;
- }
- protocol ospf OspfProc {
- tick 2;
- export filter export_OSPF;
- rfc1583compat yes;
- area 0 { # <configurable, integer, area 0 is a backbone area>
- interface "eth0" { # <public interface>
- hello 10; # <configurable>
- retransmit 5; # <configurable>
- cost 10;
- transmit delay 1; # <configurable>
- dead count 4; # <configurable, hello*dead count = dead seconds
- wait 40;
- type broadcast;
- authentication cryptographic; # <configurable, cryptographic = MD5 or simple = plaintext>
- password "area0key"; # <configurable, ospf key>
- };
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement