Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Main BIRD configuration; generated with Ansible.
- # Implements a 3-node direct connect redundant ring topology using OSPF and loopback interfaces
- # Assumes an interface called "lo:0" which has on it a /32 address which acts as a "cluster address",
- # and on which cluster services run.
- # Assumes two interfaces called "eth2" and "eth3", which form point-to-point links with the adjacent
- # nodes containing /30 subnets.
- # Please log
- log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
- router id {{ ansible_lo_0.ipv4.address }};
- # Keep routes, and refresh the kernel table ever second. Import and export all routes.
- protocol kernel {
- persist;
- scan time 1;
- import all;
- export all;
- }
- # Scan interfaces every second for state changes
- protocol device {
- scan time 1;
- }
- # Static routes. These direct clients inbound from each point-to-point towards the cluster IP.
- # Export to be learned by OSPF neighbours.
- protocol static {
- export all;
- route {{ ansible_lo_0.ipv4.address }}/32 multipath
- via {{ ansible_eth2.ipv4.address }}
- via {{ ansible_eth3.ipv4.address }};
- }
- # BFD monitor. Not 100% sure if this is needed but I started with it (still learning BIRD).
- protocol bfd monitor {
- interface "eth2" {
- interval 1 ms;
- min rx interval 10 ms;
- min tx interval 10 ms;
- idle tx interval 100 ms;
- multiplier 3;
- };
- interface "eth3" {
- interval 1 ms;
- min rx interval 10 ms;
- min tx interval 10 ms;
- idle tx interval 100 ms;
- multiplier 3;
- };
- multihop {
- interval 200 ms;
- multiplier 5;
- };
- }
- # The OSPF ring, with both point-to-point interfaces in area 0 with equal cost.
- protocol ospf ring {
- rfc1583compat yes;
- tick 1;
- import all;
- export all;
- area 0 {
- interface "eth2" {
- cost 1;
- type pointopoint;
- hello 5; retransmit 2; wait 10; dead 20;
- authentication simple; password "testing";
- };
- interface "eth3" {
- cost 1;
- type pointopoint;
- hello 5; retransmit 2; wait 10; dead 20;
- authentication simple; password "testing";
- };
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment