2021-10-26 21:33:38 +00:00
|
|
|
Setup BIRD with BGP
|
|
|
|
Use with network role for loopback/dummy interface configuraton
|
2021-10-26 15:53:11 +00:00
|
|
|
|
2021-10-26 15:55:17 +00:00
|
|
|
BIRD config example:
|
2021-10-25 09:56:39 +00:00
|
|
|
|
2021-10-26 21:33:38 +00:00
|
|
|
bird_interface: "dummy0"
|
2021-10-25 09:56:39 +00:00
|
|
|
bird:
|
|
|
|
bgp:
|
|
|
|
common:
|
|
|
|
storage04.s3.msk2.example.com:
|
|
|
|
routerid: 10.101.42.14
|
|
|
|
storage05.s3.msk2.example.com:
|
|
|
|
routerid: 10.101.42.15
|
|
|
|
storage06.s3.msk2.example.com:
|
|
|
|
routerid: 10.101.42.16
|
|
|
|
storage07.s3.msk2.example.com:
|
|
|
|
routerid: 10.101.42.17
|
|
|
|
static:
|
|
|
|
- name: STATIC1
|
|
|
|
networks:
|
|
|
|
storage04.s3.msk2.example.com:
|
2021-10-26 21:33:38 +00:00
|
|
|
- ip: "10.110.42.1/32"
|
2021-10-25 09:56:39 +00:00
|
|
|
bgp_local_pref: "100"
|
2021-10-26 21:47:25 +00:00
|
|
|
interface: "{{ bird_interface }}"
|
2021-10-26 21:33:38 +00:00
|
|
|
- ip: "10.110.42.21/32"
|
2021-10-25 09:56:39 +00:00
|
|
|
bgp_local_pref: "100"
|
2021-10-26 21:47:25 +00:00
|
|
|
interface: "{{ bird_interface }}"
|
2021-10-25 09:56:39 +00:00
|
|
|
storage05.s3.msk2.example.com:
|
2021-10-26 21:33:38 +00:00
|
|
|
- ip: "10.110.42.1/32"
|
2021-10-25 09:56:39 +00:00
|
|
|
bgp_local_pref: "100"
|
2021-10-26 21:47:25 +00:00
|
|
|
interface: "{{ bird_interface }}"
|
2021-10-26 21:33:38 +00:00
|
|
|
- ip: "10.110.42.21/32"
|
2021-10-25 09:56:39 +00:00
|
|
|
bgp_local_pref: "100"
|
2021-10-26 21:47:25 +00:00
|
|
|
interface: "{{ bird_interface }}"
|
2021-10-25 09:56:39 +00:00
|
|
|
storage06.s3.msk2.example.com:
|
2021-10-26 21:33:38 +00:00
|
|
|
- ip: "10.110.42.1/32"
|
2021-10-25 09:56:39 +00:00
|
|
|
bgp_local_pref: "100"
|
2021-10-26 21:47:25 +00:00
|
|
|
interface: "{{ bird_interface }}"
|
2021-10-26 21:33:38 +00:00
|
|
|
- ip: "10.110.42.21/32"
|
2021-10-25 09:56:39 +00:00
|
|
|
bgp_local_pref: "100"
|
2021-10-26 21:47:25 +00:00
|
|
|
interface: "{{ bird_interface }}"
|
2021-10-25 09:56:39 +00:00
|
|
|
storage07.s3.msk2.example.com:
|
2021-10-26 21:33:38 +00:00
|
|
|
- ip: "10.110.42.1/32"
|
2021-10-25 09:56:39 +00:00
|
|
|
bgp_local_pref: "100"
|
2021-10-26 21:47:25 +00:00
|
|
|
interface: "{{ bird_interface }}"
|
2021-10-26 21:33:38 +00:00
|
|
|
- ip: "10.110.42.21/32"
|
2021-10-25 09:56:39 +00:00
|
|
|
bgp_local_pref: "100"
|
2021-10-26 21:47:25 +00:00
|
|
|
interface: "{{ bird_interface }}"
|
2021-10-25 09:56:39 +00:00
|
|
|
bgp:
|
|
|
|
- name: SW06
|
|
|
|
remote_asnum: 4200200000
|
|
|
|
local_asnum: 4200200000
|
|
|
|
confederation: 209684
|
|
|
|
remote_addr: "10.127.2.6"
|
|
|
|
export:
|
|
|
|
- STATIC1
|
|
|
|
- name: SW10
|
|
|
|
remote_asnum: 4200200000
|
|
|
|
local_asnum: 4200200000
|
|
|
|
confederation: 209684
|
|
|
|
remote_addr: "10.127.2.10"
|
|
|
|
export:
|
|
|
|
- STATIC1
|