Browse files

bird: WIP, hardcoded addr, v4only yet

  • Loading branch information...
1977er committed Jan 6, 2019
1 parent 176b356 commit 452ac83eb6786b5ef9c4fd50c5880cd85d5ce468
@@ -0,0 +1,7 @@

- name: Restart bird
service: name=bird state=restarted

- name: Restart bird6
service: name=bird6 state=restarted
@@ -0,0 +1,27 @@
- name: Install bird
apt: name=bird update_cache=yes

- name: Generate bird config
notify: Restart bird
src: bird.conf.j2
dest: /etc/bird/bird.conf

- name: Generate bird config
notify: Restart bird
src: bird.conf.j2
dest: /etc/bird/bird.conf

- name: Enable bird
command: systemctl enable bird

- name: Start bird
command: systemctl start bird

- name: Enable bird6
command: systemctl enable bird6

- name: Start bird6
command: systemctl start bird6
@@ -0,0 +1,58 @@
# This is a minimal configuration file, which allows the bird daemon to start
# but will not cause anything else to happen.
# Please refer to the documentation in the bird-doc package or BIRD User's
# Guide on for more information on configuring BIRD and
# adding routing protocols.

# Change this into your BIRD router ID. It's a world-wide unique identification
# of your router, usually one of router's IPv4 addresses.
router id;

log syslog all;

table ffnw;
# The Device protocol is not a real routing protocol. It doesn't generate any
# routes and it only serves as a module for getting information about network
# interfaces from the kernel.
protocol device {
scan time 10;

protocol direct {
interface "gre-ffnw-ber";
table ffnw;

# The Kernel protocol is not a real routing protocol. Instead of communicating
# with other routers in the network, it performs synchronization of BIRD's
# routing tables with the OS kernel.
protocol kernel {
table ffnw;
kernel table 23;
metric 64; # Use explicit kernel route metric to avoid collisions
# with non-BIRD routes in the kernel routing table
scan time 15;
import all;
export all; # Actually insert routes into the kernel routing table
device routes;

protocol bgp {
table ffnw;
local as 65511;
neighbor as 206313;
source address;

import all;
export filter {
if net ~ then accept;
else reject;

next hop self;
multihop 64;
default bgp_local_pref 200;
default bgp_med 1;
@@ -0,0 +1 @@

0 comments on commit 452ac83

Please sign in to comment.