bird: IPv6 backbone L3 routing
This commit is contained in:
parent
6fd416051e
commit
c85fa8d9f1
@ -1,14 +1,18 @@
|
||||
---
|
||||
|
||||
- name: Install bird
|
||||
apt: package={{ item }}
|
||||
with_items:
|
||||
- bird
|
||||
- bird6
|
||||
apt: package=bird
|
||||
|
||||
- name: Configure bird
|
||||
template: src=bird.conf.j2 dest=/etc/bird/bird.conf
|
||||
notify: Restart bird
|
||||
|
||||
- name: Configure bird6
|
||||
template: src=bird6.conf.j2 dest=/etc/bird/bird6.conf
|
||||
notify: Restart bird6
|
||||
|
||||
- name: Enable bird
|
||||
service: name=bird state=started enabled=yes
|
||||
|
||||
- name: Enable bird6
|
||||
service: name=bird6 state=started enabled=yes
|
||||
|
@ -7,7 +7,7 @@ router id {{ ansible_default_ipv4.address }};
|
||||
timeformat protocol iso long;
|
||||
|
||||
protocol device {
|
||||
scan time 10;
|
||||
scan time 10;
|
||||
}
|
||||
|
||||
protocol kernel {
|
||||
|
29
roles/bird/templates/bird6.conf.j2
Normal file
29
roles/bird/templates/bird6.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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user