bird: IPv4 backbone L3 routing
This commit is contained in:
parent
76be7b5db5
commit
6fd416051e
7
roles/bird/handlers/main.yml
Normal file
7
roles/bird/handlers/main.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Restart bird
|
||||||
|
service: name=bird state=restarted
|
||||||
|
|
||||||
|
- name: Restart bird6
|
||||||
|
service: name=bird6 state=restarted
|
14
roles/bird/tasks/main.yml
Normal file
14
roles/bird/tasks/main.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Install bird
|
||||||
|
apt: package={{ item }}
|
||||||
|
with_items:
|
||||||
|
- bird
|
||||||
|
- bird6
|
||||||
|
|
||||||
|
- name: Configure bird
|
||||||
|
template: src=bird.conf.j2 dest=/etc/bird/bird.conf
|
||||||
|
notify: Restart bird
|
||||||
|
|
||||||
|
- name: Enable bird
|
||||||
|
service: name=bird state=started enabled=yes
|
29
roles/bird/templates/bird.conf.j2
Normal file
29
roles/bird/templates/bird.conf.j2
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
log syslog all;
|
||||||
|
|
||||||
|
router id {{ ansible_default_ipv4.address }};
|
||||||
|
|
||||||
|
timeformat protocol iso long;
|
||||||
|
|
||||||
|
protocol device {
|
||||||
|
scan time 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
protocol kernel {
|
||||||
|
metric 64; # Use explicit kernel route metric to avoid collisions
|
||||||
|
# with non-BIRD routes in the kernel routing table
|
||||||
|
import none;
|
||||||
|
export all; # Actually insert routes into the kernel routing table
|
||||||
|
}
|
||||||
|
|
||||||
|
protocol ospf bbmesh {
|
||||||
|
area 0 {
|
||||||
|
interface "br-*" {
|
||||||
|
stub yes;
|
||||||
|
};
|
||||||
|
interface "tun-*" {
|
||||||
|
type ptp;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
1
site.yml
1
site.yml
@ -11,6 +11,7 @@
|
|||||||
hosts: [gw11.regensburg.freifunk.net, gw21.regensburg.freifunk.net, gw31.regensburg.freifunk.net]
|
hosts: [gw11.regensburg.freifunk.net, gw21.regensburg.freifunk.net, gw31.regensburg.freifunk.net]
|
||||||
roles:
|
roles:
|
||||||
- batman
|
- batman
|
||||||
|
- bird
|
||||||
- fastd
|
- fastd
|
||||||
- mesh-interfaces
|
- mesh-interfaces
|
||||||
- exit-ipv4
|
- exit-ipv4
|
||||||
|
Loading…
Reference in New Issue
Block a user