1
mirror of https://git.dn42.dev/wiki/wiki.git synced 2024-11-19 04:07:25 +01:00

Updated Bird (markdown)

This commit is contained in:
Mic92 2017-05-09 09:01:01 +00:00
parent a5f292a80f
commit 98e0eada8a

View File

@ -40,7 +40,7 @@ include "/etc/bird/local6.conf";
# filter helpers
#################
include "/etc/bird/filter6.conf";
##include "/etc/bird/filter6.conf";
# Kernel routing tables
########################
@ -111,7 +111,8 @@ function is_self_net() {
function is_valid_network() {
return net ~ [
'fd00::/8' # ULA address space as per RFC 4193
fd00::/8{48,80} # ULA address space as per RFC 4193
]
}
```
@ -151,7 +152,7 @@ include "/etc/bird/local4.conf";
# filter helpers
#################
include "/etc/bird/filter4.conf";
##include "/etc/bird/filter4.conf";
# Kernel routing tables
########################
@ -267,6 +268,13 @@ You can add cron entries to periodically update the tables:
*/15 * * * * curl -sfSLR {-o,-z}/var/lib/bird/bird_roa_dn42.conf https://dn42.tech9.io/roa/bird_roa_dn42.conf && chronic birdc configure
```
Debian version:
```
*/15 * * * * curl -sfSLR -o/var/lib/bird/bird6_roa_dn42.conf -z/var/lib/bird/bird6_roa_dn42.conf https://dn42.tech9.io/roa/bird6_roa_dn42.conf && birdc6 configure
*/15 * * * * curl -sfSLR -o/var/lib/bird/bird_roa_dn42.conf -z/var/lib/bird/bird_roa_dn42.conf https://dn42.tech9.io/roa/bird_roa_dn42.conf && birdc configure
```
## Filter configuration
In your import filter add the following to reject invalid routes:
@ -336,4 +344,4 @@ bird> show route export <somepeer> # shows the route you export to someone
# External Links
* detailed bird configuration from Mic92: https://github.com/Mic92/bird-dn42
* more bgp commands: http://danrimal.net/doku.php?id=wiki:bgp:bird:postupy
* more bgp commands: http://danrimal.net/doku.php?id=wiki:bgp:bird:postupy