ba86b74a47204f5c0090f6c9565c753a11e37fc0
howto/Bird.md
| ... | ... | @@ -1,25 +1,6 @@ |
| 1 | 1 | Bird is a commonly used BGP daemon. This page provides configuration and help to run Bird for dn42. |
| 2 | 2 | |
| 3 | -# Simplest configuration possible |
|
| 4 | - |
|
| 5 | -TODO |
|
| 6 | - |
|
| 7 | -## Source address selection |
|
| 8 | - |
|
| 9 | -Bird, like any other routing daemon, inserts routes into the kernel. If you don't specify a source address on the kernel routes, then the kernel will choose for you (and will often choose an address in a transfer subnet, which is not what you want). |
|
| 10 | - |
|
| 11 | -To specify the source address, you use the `krt_prefsrc` attribute, for instance in the export filter of the kernel protocol: |
|
| 12 | - |
|
| 13 | - protocol kernel { |
|
| 14 | - export filter { |
|
| 15 | - krt_prefsrc = 2001:db8:42::1; |
|
| 16 | - accept; |
|
| 17 | - }; |
|
| 18 | - } |
|
| 19 | - |
|
| 20 | -(this also works for IPv4) |
|
| 21 | - |
|
| 22 | -# Example advanced configurations |
|
| 3 | +# Example configurations |
|
| 23 | 4 | |
| 24 | 5 | * Replace `<AS>` with your Autonomous System Number |
| 25 | 6 | * Replace `<GATEWAY_IP>` with your gateway ip (the internal dn42 ip address you use on the host, where dn42 is running) |