mirror of
https://git.dn42.dev/wiki/wiki.git
synced 2024-11-27 11:23:37 +01:00
28 lines
862 B
Markdown
28 lines
862 B
Markdown
|
Bird is a commonly used BGP daemon. This page provides configuration and help to run Bird for dn42.
|
||
|
|
||
|
# Simplest configuration possible
|
||
|
|
||
|
TODO
|
||
|
|
||
|
## Source address selection
|
||
|
|
||
|
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).
|
||
|
|
||
|
To specify the source address, you use the `krt_prefsrc` attribute, for instance in the export filter of the kernel protocol:
|
||
|
|
||
|
protocol kernel {
|
||
|
export filter {
|
||
|
krt_prefsrc = 2001:db8:42::1;
|
||
|
accept;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
(this also works for IPv4)
|
||
|
|
||
|
# Example advanced configurations
|
||
|
|
||
|
Paste your own config template here.
|
||
|
|
||
|
## External links
|
||
|
|
||
|
http://danrimal.net/doku.php?id=wiki:bgp:bird:sample_configs2
|